proto

package
v0.0.0-...-d9ba056 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExclusionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.ExclusionService",
	HandlerType: (*ExclusionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AccessCritical",
			Handler:    _ExclusionService_AccessCritical_Handler,
		},
		{
			MethodName: "ReceiveRequest",
			Handler:    _ExclusionService_ReceiveRequest_Handler,
		},
		{
			MethodName: "ReceiveReply",
			Handler:    _ExclusionService_ReceiveReply_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/Message.proto",
}

ExclusionService_ServiceDesc is the grpc.ServiceDesc for ExclusionService 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_proto_Message_proto protoreflect.FileDescriptor

Functions

func RegisterExclusionServiceServer

func RegisterExclusionServiceServer(s grpc.ServiceRegistrar, srv ExclusionServiceServer)

Types

type ExclusionServiceClient

type ExclusionServiceClient interface {
	AccessCritical(ctx context.Context, in *RequestMessage, opts ...grpc.CallOption) (*ReplyMessage, error)
	ReceiveRequest(ctx context.Context, in *RequestMessage, opts ...grpc.CallOption) (*Void, error)
	ReceiveReply(ctx context.Context, in *ReplyMessage, opts ...grpc.CallOption) (*Void, error)
}

ExclusionServiceClient is the client API for ExclusionService 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 ExclusionServiceServer

type ExclusionServiceServer interface {
	AccessCritical(context.Context, *RequestMessage) (*ReplyMessage, error)
	ReceiveRequest(context.Context, *RequestMessage) (*Void, error)
	ReceiveReply(context.Context, *ReplyMessage) (*Void, error)
	// contains filtered or unexported methods
}

ExclusionServiceServer is the server API for ExclusionService service. All implementations must embed UnimplementedExclusionServiceServer for forward compatibility

type Node

type Node struct {
	Id   int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Node) Descriptor deprecated

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

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetId

func (x *Node) GetId() int32

func (*Node) GetName

func (x *Node) GetName() string

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect

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

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

type OkResponse

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

func (*OkResponse) Descriptor deprecated

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

Deprecated: Use OkResponse.ProtoReflect.Descriptor instead.

func (*OkResponse) ProtoMessage

func (*OkResponse) ProtoMessage()

func (*OkResponse) ProtoReflect

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

func (*OkResponse) Reset

func (x *OkResponse) Reset()

func (*OkResponse) String

func (x *OkResponse) String() string

type ReplyMessage

type ReplyMessage struct {
	User      *Node `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	Timestamp int32 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplyMessage) Descriptor deprecated

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

Deprecated: Use ReplyMessage.ProtoReflect.Descriptor instead.

func (*ReplyMessage) GetTimestamp

func (x *ReplyMessage) GetTimestamp() int32

func (*ReplyMessage) GetUser

func (x *ReplyMessage) GetUser() *Node

func (*ReplyMessage) ProtoMessage

func (*ReplyMessage) ProtoMessage()

func (*ReplyMessage) ProtoReflect

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

func (*ReplyMessage) Reset

func (x *ReplyMessage) Reset()

func (*ReplyMessage) String

func (x *ReplyMessage) String() string

type RequestMessage

type RequestMessage struct {
	User      *Node `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	Timestamp int32 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestMessage) Descriptor deprecated

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

Deprecated: Use RequestMessage.ProtoReflect.Descriptor instead.

func (*RequestMessage) GetTimestamp

func (x *RequestMessage) GetTimestamp() int32

func (*RequestMessage) GetUser

func (x *RequestMessage) GetUser() *Node

func (*RequestMessage) ProtoMessage

func (*RequestMessage) ProtoMessage()

func (*RequestMessage) ProtoReflect

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

func (*RequestMessage) Reset

func (x *RequestMessage) Reset()

func (*RequestMessage) String

func (x *RequestMessage) String() string

type UnimplementedExclusionServiceServer

type UnimplementedExclusionServiceServer struct {
}

UnimplementedExclusionServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedExclusionServiceServer) AccessCritical

func (UnimplementedExclusionServiceServer) ReceiveReply

func (UnimplementedExclusionServiceServer) ReceiveRequest

type UnsafeExclusionServiceServer

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

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

type Void

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

func (*Void) Descriptor deprecated

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

Deprecated: Use Void.ProtoReflect.Descriptor instead.

func (*Void) ProtoMessage

func (*Void) ProtoMessage()

func (*Void) ProtoReflect

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

func (*Void) Reset

func (x *Void) Reset()

func (*Void) String

func (x *Void) String() string

Jump to

Keyboard shortcuts

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