Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_mutex_mutex_proto protoreflect.FileDescriptor
var MutexService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "mutex.mutexService", HandlerType: (*MutexServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Token", Handler: _MutexService_Token_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "mutex/mutex.proto", }
MutexService_ServiceDesc is the grpc.ServiceDesc for MutexService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMutexServiceServer ¶
func RegisterMutexServiceServer(s grpc.ServiceRegistrar, srv MutexServiceServer)
Types ¶
type EmptyRequest ¶
type EmptyRequest struct {
// contains filtered or unexported fields
}
func (*EmptyRequest) Descriptor
deprecated
func (*EmptyRequest) Descriptor() ([]byte, []int)
Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead.
func (*EmptyRequest) ProtoMessage ¶
func (*EmptyRequest) ProtoMessage()
func (*EmptyRequest) ProtoReflect ¶
func (x *EmptyRequest) ProtoReflect() protoreflect.Message
func (*EmptyRequest) Reset ¶
func (x *EmptyRequest) Reset()
func (*EmptyRequest) String ¶
func (x *EmptyRequest) String() string
type EmptyResponse ¶
type EmptyResponse struct {
// contains filtered or unexported fields
}
func (*EmptyResponse) Descriptor
deprecated
func (*EmptyResponse) Descriptor() ([]byte, []int)
Deprecated: Use EmptyResponse.ProtoReflect.Descriptor instead.
func (*EmptyResponse) ProtoMessage ¶
func (*EmptyResponse) ProtoMessage()
func (*EmptyResponse) ProtoReflect ¶
func (x *EmptyResponse) ProtoReflect() protoreflect.Message
func (*EmptyResponse) Reset ¶
func (x *EmptyResponse) Reset()
func (*EmptyResponse) String ¶
func (x *EmptyResponse) String() string
type MutexServiceClient ¶
type MutexServiceClient interface {
Token(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
}
MutexServiceClient is the client API for MutexService 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 NewMutexServiceClient ¶
func NewMutexServiceClient(cc grpc.ClientConnInterface) MutexServiceClient
type MutexServiceServer ¶
type MutexServiceServer interface { Token(context.Context, *EmptyRequest) (*EmptyResponse, error) // contains filtered or unexported methods }
MutexServiceServer is the server API for MutexService service. All implementations must embed UnimplementedMutexServiceServer for forward compatibility
type UnimplementedMutexServiceServer ¶
type UnimplementedMutexServiceServer struct { }
UnimplementedMutexServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMutexServiceServer) Token ¶
func (UnimplementedMutexServiceServer) Token(context.Context, *EmptyRequest) (*EmptyResponse, error)
type UnsafeMutexServiceServer ¶
type UnsafeMutexServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMutexServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MutexServiceServer will result in compilation errors.