proto

package
v0.0.15-r12 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EdgeService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "nocloud.edge.EdgeService",
	HandlerType: (*EdgeServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Test",
			Handler:    _EdgeService_Test_Handler,
		},
		{
			MethodName: "PostState",
			Handler:    _EdgeService_PostState_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/edge/proto/edge.proto",
}

EdgeService_ServiceDesc is the grpc.ServiceDesc for EdgeService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_pkg_edge_proto_edge_proto protoreflect.FileDescriptor

Functions

func RegisterEdgeServiceServer

func RegisterEdgeServiceServer(s grpc.ServiceRegistrar, srv EdgeServiceServer)

Types

type EdgeServiceClient

type EdgeServiceClient interface {
	Test(ctx context.Context, in *TestRequest, opts ...grpc.CallOption) (*TestResponse, error)
	PostState(ctx context.Context, in *proto.ObjectState, opts ...grpc.CallOption) (*Empty, error)
}

EdgeServiceClient is the client API for EdgeService 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.

type EdgeServiceServer

type EdgeServiceServer interface {
	Test(context.Context, *TestRequest) (*TestResponse, error)
	PostState(context.Context, *proto.ObjectState) (*Empty, error)
	// contains filtered or unexported methods
}

EdgeServiceServer is the server API for EdgeService service. All implementations must embed UnimplementedEdgeServiceServer for forward compatibility

type Empty

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

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type TestRequest

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

func (*TestRequest) Descriptor deprecated

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

Deprecated: Use TestRequest.ProtoReflect.Descriptor instead.

func (*TestRequest) ProtoMessage

func (*TestRequest) ProtoMessage()

func (*TestRequest) ProtoReflect

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

func (*TestRequest) Reset

func (x *TestRequest) Reset()

func (*TestRequest) String

func (x *TestRequest) String() string

type TestResponse

type TestResponse struct {
	Result bool   `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	Error  string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*TestResponse) Descriptor deprecated

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

Deprecated: Use TestResponse.ProtoReflect.Descriptor instead.

func (*TestResponse) GetError

func (x *TestResponse) GetError() string

func (*TestResponse) GetResult

func (x *TestResponse) GetResult() bool

func (*TestResponse) ProtoMessage

func (*TestResponse) ProtoMessage()

func (*TestResponse) ProtoReflect

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

func (*TestResponse) Reset

func (x *TestResponse) Reset()

func (*TestResponse) String

func (x *TestResponse) String() string

type UnimplementedEdgeServiceServer

type UnimplementedEdgeServiceServer struct {
}

UnimplementedEdgeServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedEdgeServiceServer) PostState

func (UnimplementedEdgeServiceServer) Test

type UnsafeEdgeServiceServer

type UnsafeEdgeServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeEdgeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EdgeServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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