proto

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func RegisterMeshsyncServer

func RegisterMeshsyncServer(s *grpc.Server, srv MeshsyncServer)

Types

type MeshsyncClient

type MeshsyncClient interface {
	Info(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*controller.ControllerInfo, error)
	Health(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*controller.ControllerHealth, error)
	Sync(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}

MeshsyncClient is the client API for Meshsync service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMeshsyncClient

func NewMeshsyncClient(cc grpc.ClientConnInterface) MeshsyncClient

type MeshsyncServer

MeshsyncServer is the server API for Meshsync service.

type Request

type Request struct {
	// contains filtered or unexported fields
}

Fingerprints can be added to have a dynamic functionality

func (*Request) Descriptor deprecated

func (*Request) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Response

type Response struct {

	// Types that are assignable to Result:
	//	*Response_Message
	//	*Response_Error
	Result isResponse_Result `protobuf_oneof:"result"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

func (*Response) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetError

func (x *Response) GetError() *common.CommonError

func (*Response) GetMessage

func (x *Response) GetMessage() string

func (*Response) GetResult

func (m *Response) GetResult() isResponse_Result

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type Response_Error

type Response_Error struct {
	Error *common.CommonError `protobuf:"bytes,2,opt,name=error,proto3,oneof"`
}

type Response_Message

type Response_Message struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3,oneof"`
}

type UnimplementedMeshsyncServer

type UnimplementedMeshsyncServer struct {
}

UnimplementedMeshsyncServer can be embedded to have forward compatible implementations.

func (*UnimplementedMeshsyncServer) Health

func (*UnimplementedMeshsyncServer) Info

func (*UnimplementedMeshsyncServer) Sync

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL