Documentation ¶
Index ¶
- Variables
- func RegisterMutualExclusionServer(s grpc.ServiceRegistrar, srv MutualExclusionServer)
- type Message
- type MutualExclusionClient
- type MutualExclusionServer
- type MutualExclusion_TokenRingClient
- type MutualExclusion_TokenRingServer
- type Token
- type UnimplementedMutualExclusionServer
- type UnsafeMutualExclusionServer
Constants ¶
This section is empty.
Variables ¶
var File_MutualExclusion_proto protoreflect.FileDescriptor
var MutualExclusion_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.MutualExclusion", HandlerType: (*MutualExclusionServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "TokenRing", Handler: _MutualExclusion_TokenRing_Handler, ServerStreams: true, }, }, Metadata: "MutualExclusion.proto", }
MutualExclusion_ServiceDesc is the grpc.ServiceDesc for MutualExclusion service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMutualExclusionServer ¶
func RegisterMutualExclusionServer(s grpc.ServiceRegistrar, srv MutualExclusionServer)
Types ¶
type Message ¶
type Message struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type MutualExclusionClient ¶
type MutualExclusionClient interface {
TokenRing(ctx context.Context, in *Message, opts ...grpc.CallOption) (MutualExclusion_TokenRingClient, error)
}
MutualExclusionClient is the client API for MutualExclusion 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 NewMutualExclusionClient ¶
func NewMutualExclusionClient(cc grpc.ClientConnInterface) MutualExclusionClient
type MutualExclusionServer ¶
type MutualExclusionServer interface { TokenRing(*Message, MutualExclusion_TokenRingServer) error // contains filtered or unexported methods }
MutualExclusionServer is the server API for MutualExclusion service. All implementations must embed UnimplementedMutualExclusionServer for forward compatibility
type MutualExclusion_TokenRingClient ¶
type MutualExclusion_TokenRingClient interface { Recv() (*Token, error) grpc.ClientStream }
type MutualExclusion_TokenRingServer ¶
type MutualExclusion_TokenRingServer interface { Send(*Token) error grpc.ServerStream }
type Token ¶
type Token struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*Token) Descriptor
deprecated
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) ProtoReflect ¶
func (x *Token) ProtoReflect() protoreflect.Message
type UnimplementedMutualExclusionServer ¶
type UnimplementedMutualExclusionServer struct { }
UnimplementedMutualExclusionServer must be embedded to have forward compatible implementations.
func (UnimplementedMutualExclusionServer) TokenRing ¶
func (UnimplementedMutualExclusionServer) TokenRing(*Message, MutualExclusion_TokenRingServer) error
type UnsafeMutualExclusionServer ¶
type UnsafeMutualExclusionServer interface {
// contains filtered or unexported methods
}
UnsafeMutualExclusionServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MutualExclusionServer will result in compilation errors.