messenger

package
v1.10.16-rc.6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: BSD-3-Clause Imports: 8 Imported by: 4

Documentation

Index

Constants

View Source
const (
	Messenger_Notify_FullMethodName = "/messenger.Messenger/Notify"
)

Variables

View Source
var (
	Message_name = map[int32]string{
		0: "MESSAGE_UNSPECIFIED",
		1: "MESSAGE_BUILD_BLOCK",
		2: "MESSAGE_STATE_SYNC_FINISHED",
	}
	Message_value = map[string]int32{
		"MESSAGE_UNSPECIFIED":         0,
		"MESSAGE_BUILD_BLOCK":         1,
		"MESSAGE_STATE_SYNC_FINISHED": 2,
	}
)

Enum value maps for Message.

View Source
var File_messenger_messenger_proto protoreflect.FileDescriptor
View Source
var Messenger_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "messenger.Messenger",
	HandlerType: (*MessengerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Notify",
			Handler:    _Messenger_Notify_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "messenger/messenger.proto",
}

Messenger_ServiceDesc is the grpc.ServiceDesc for Messenger service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMessengerServer

func RegisterMessengerServer(s grpc.ServiceRegistrar, srv MessengerServer)

Types

type Message added in v1.9.6

type Message int32
const (
	Message_MESSAGE_UNSPECIFIED         Message = 0
	Message_MESSAGE_BUILD_BLOCK         Message = 1
	Message_MESSAGE_STATE_SYNC_FINISHED Message = 2
)

func (Message) Descriptor added in v1.9.6

func (Message) Descriptor() protoreflect.EnumDescriptor

func (Message) Enum added in v1.9.6

func (x Message) Enum() *Message

func (Message) EnumDescriptor deprecated added in v1.9.6

func (Message) EnumDescriptor() ([]byte, []int)

Deprecated: Use Message.Descriptor instead.

func (Message) Number added in v1.9.6

func (x Message) Number() protoreflect.EnumNumber

func (Message) String added in v1.9.6

func (x Message) String() string

func (Message) Type added in v1.9.6

func (Message) Type() protoreflect.EnumType

type MessengerClient

type MessengerClient interface {
	Notify(ctx context.Context, in *NotifyRequest, opts ...grpc.CallOption) (*NotifyResponse, error)
}

MessengerClient is the client API for Messenger 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 NewMessengerClient

func NewMessengerClient(cc grpc.ClientConnInterface) MessengerClient

type MessengerServer

type MessengerServer interface {
	Notify(context.Context, *NotifyRequest) (*NotifyResponse, error)
	// contains filtered or unexported methods
}

MessengerServer is the server API for Messenger service. All implementations must embed UnimplementedMessengerServer for forward compatibility

type NotifyRequest

type NotifyRequest struct {
	Message Message `protobuf:"varint,1,opt,name=message,proto3,enum=messenger.Message" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*NotifyRequest) Descriptor deprecated

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

Deprecated: Use NotifyRequest.ProtoReflect.Descriptor instead.

func (*NotifyRequest) GetMessage

func (x *NotifyRequest) GetMessage() Message

func (*NotifyRequest) ProtoMessage

func (*NotifyRequest) ProtoMessage()

func (*NotifyRequest) ProtoReflect

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

func (*NotifyRequest) Reset

func (x *NotifyRequest) Reset()

func (*NotifyRequest) String

func (x *NotifyRequest) String() string

type NotifyResponse

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

func (*NotifyResponse) Descriptor deprecated

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

Deprecated: Use NotifyResponse.ProtoReflect.Descriptor instead.

func (*NotifyResponse) ProtoMessage

func (*NotifyResponse) ProtoMessage()

func (*NotifyResponse) ProtoReflect

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

func (*NotifyResponse) Reset

func (x *NotifyResponse) Reset()

func (*NotifyResponse) String

func (x *NotifyResponse) String() string

type UnimplementedMessengerServer

type UnimplementedMessengerServer struct {
}

UnimplementedMessengerServer must be embedded to have forward compatible implementations.

func (UnimplementedMessengerServer) Notify

type UnsafeMessengerServer

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

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

Jump to

Keyboard shortcuts

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