protos

package
v0.0.0-...-7e26b3d Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_MutualExclusion_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetMsg

func (x *Message) GetMsg() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Token.ProtoReflect.Descriptor instead.

func (*Token) GetMsg

func (x *Token) GetMsg() string

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) ProtoReflect

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

func (*Token) Reset

func (x *Token) Reset()

func (*Token) String

func (x *Token) String() string

type UnimplementedMutualExclusionServer

type UnimplementedMutualExclusionServer struct {
}

UnimplementedMutualExclusionServer must be embedded to have forward compatible implementations.

func (UnimplementedMutualExclusionServer) TokenRing

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.

Jump to

Keyboard shortcuts

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