messengerproto

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMessengerServer

func RegisterMessengerServer(s *grpc.Server, srv MessengerServer)

Types

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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMessengerClient

func NewMessengerClient(cc grpc.ClientConnInterface) MessengerClient

type MessengerServer

type MessengerServer interface {
	Notify(context.Context, *NotifyRequest) (*NotifyResponse, error)
}

MessengerServer is the server API for Messenger service.

type NotifyRequest

type NotifyRequest struct {
	Message              uint32   `protobuf:"varint,1,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NotifyRequest) Descriptor

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

func (*NotifyRequest) GetMessage

func (m *NotifyRequest) GetMessage() uint32

func (*NotifyRequest) ProtoMessage

func (*NotifyRequest) ProtoMessage()

func (*NotifyRequest) Reset

func (m *NotifyRequest) Reset()

func (*NotifyRequest) String

func (m *NotifyRequest) String() string

func (*NotifyRequest) XXX_DiscardUnknown

func (m *NotifyRequest) XXX_DiscardUnknown()

func (*NotifyRequest) XXX_Marshal

func (m *NotifyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NotifyRequest) XXX_Merge

func (m *NotifyRequest) XXX_Merge(src proto.Message)

func (*NotifyRequest) XXX_Size

func (m *NotifyRequest) XXX_Size() int

func (*NotifyRequest) XXX_Unmarshal

func (m *NotifyRequest) XXX_Unmarshal(b []byte) error

type NotifyResponse

type NotifyResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NotifyResponse) Descriptor

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

func (*NotifyResponse) ProtoMessage

func (*NotifyResponse) ProtoMessage()

func (*NotifyResponse) Reset

func (m *NotifyResponse) Reset()

func (*NotifyResponse) String

func (m *NotifyResponse) String() string

func (*NotifyResponse) XXX_DiscardUnknown

func (m *NotifyResponse) XXX_DiscardUnknown()

func (*NotifyResponse) XXX_Marshal

func (m *NotifyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NotifyResponse) XXX_Merge

func (m *NotifyResponse) XXX_Merge(src proto.Message)

func (*NotifyResponse) XXX_Size

func (m *NotifyResponse) XXX_Size() int

func (*NotifyResponse) XXX_Unmarshal

func (m *NotifyResponse) XXX_Unmarshal(b []byte) error

type UnimplementedMessengerServer

type UnimplementedMessengerServer struct {
}

UnimplementedMessengerServer can be embedded to have forward compatible implementations.

func (*UnimplementedMessengerServer) Notify

Jump to

Keyboard shortcuts

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