MCPcopy Create free account
hub / github.com/eth-easl/dirigent / CpiInterfaceClient

Interface CpiInterfaceClient

api/proto/control_plane_interface_grpc.pb.go:21–38  ·  view source on GitHub ↗

CpiInterfaceClient is the client API for CpiInterface service. For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

Source from the content-addressed store, hash-verified

19//
20// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
21type CpiInterfaceClient interface {
22 OnMetricsReceive(ctx context.Context, in *AutoscalingMetric, opts ...grpc.CallOption) (*ActionStatus, error)
23 ListServices(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ServiceList, error)
24 RegisterDataplane(ctx context.Context, in *DataplaneInfo, opts ...grpc.CallOption) (*ActionStatus, error)
25 RegisterService(ctx context.Context, in *ServiceInfo, opts ...grpc.CallOption) (*ActionStatus, error)
26 RegisterNode(ctx context.Context, in *NodeInfo, opts ...grpc.CallOption) (*ActionStatus, error)
27 NodeHeartbeat(ctx context.Context, in *NodeHeartbeatMessage, opts ...grpc.CallOption) (*ActionStatus, error)
28 ReportFailure(ctx context.Context, in *Failure, opts ...grpc.CallOption) (*ActionStatus, error)
29 DeregisterDataplane(ctx context.Context, in *DataplaneInfo, opts ...grpc.CallOption) (*ActionStatus, error)
30 DeregisterNode(ctx context.Context, in *NodeInfo, opts ...grpc.CallOption) (*ActionStatus, error)
31 DeregisterService(ctx context.Context, in *ServiceInfo, opts ...grpc.CallOption) (*ActionStatus, error)
32 ResetMeasurements(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ActionStatus, error)
33 // RAFT leader election
34 RequestVote(ctx context.Context, in *RequestVoteArgs, opts ...grpc.CallOption) (*RequestVoteReply, error)
35 AppendEntries(ctx context.Context, in *AppendEntriesArgs, opts ...grpc.CallOption) (*AppendEntriesReply, error)
36 // HAProxy
37 ReviseHAProxyConfiguration(ctx context.Context, in *HAProxyConfig, opts ...grpc.CallOption) (*ActionStatus, error)
38}
39
40type cpiInterfaceClient struct {
41 cc grpc.ClientConnInterface

Callers 49

OnMetricsReceiveMethod · 0.65
syncDeploymentCacheMethod · 0.65
ListServicesMethod · 0.65
registerDataPlaneMethod · 0.65
RegisterDataplaneMethod · 0.65
DeployserviceFunction · 0.65
registrationHandlerFunction · 0.65
RegisterServiceMethod · 0.65

Implementers 7

CpApiServerapi/control_plane_api_server.go
cpiInterfaceClientapi/proto/control_plane_interface_grpc
UnimplementedCpiInterfaceServerapi/proto/control_plane_interface_grpc
MockCpiInterfaceClientmock/mock_cp_api/mock_cp_api.go
MockCpiInterfaceClientMockRecordermock/mock_cp_api/mock_cp_api.go
MockCpiInterfaceServermock/mock_cp_api/mock_cp_api.go
MockCpiInterfaceServerMockRecordermock/mock_cp_api/mock_cp_api.go

Calls

no outgoing calls

Tested by

no test coverage detected