Documentation ¶
Index ¶
- Variables
- func RegisterEdgeServiceServer(s grpc.ServiceRegistrar, srv EdgeServiceServer)
- type EdgeServiceClient
- type EdgeServiceServer
- type Empty
- type TestRequest
- type TestResponse
- func (*TestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TestResponse) GetError() string
- func (x *TestResponse) GetResult() bool
- func (*TestResponse) ProtoMessage()
- func (x *TestResponse) ProtoReflect() protoreflect.Message
- func (x *TestResponse) Reset()
- func (x *TestResponse) String() string
- type UnimplementedEdgeServiceServer
- type UnsafeEdgeServiceServer
Constants ¶
This section is empty.
Variables ¶
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)
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.
func NewEdgeServiceClient ¶
func NewEdgeServiceClient(cc grpc.ClientConnInterface) EdgeServiceClient
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) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
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) PostState(context.Context, *proto.ObjectState) (*Empty, error)
func (UnimplementedEdgeServiceServer) Test ¶
func (UnimplementedEdgeServiceServer) Test(context.Context, *TestRequest) (*TestResponse, error)
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.