Documentation
¶
Index ¶
- func RegisterMessageServiceServer(s *grpc.Server, srv MessageServiceServer)
- type Content
- func (*Content) Descriptor() ([]byte, []int)
- func (m *Content) GetIndex() int32
- func (m *Content) GetMessage() string
- func (m *Content) GetReceivedOn() *timestamp.Timestamp
- func (*Content) ProtoMessage()
- func (m *Content) Reset()
- func (m *Content) String() string
- func (m *Content) XXX_DiscardUnknown()
- func (m *Content) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Content) XXX_Merge(src proto.Message)
- func (m *Content) XXX_Size() int
- func (m *Content) XXX_Unmarshal(b []byte) error
- type MessageServiceClient
- type MessageServiceServer
- type MessageService_SendStreamClient
- type MessageService_SendStreamServer
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetMessage() string
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetContent() *Content
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterMessageServiceServer ¶
func RegisterMessageServiceServer(s *grpc.Server, srv MessageServiceServer)
Types ¶
type Content ¶
type Content struct { Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` ReceivedOn *timestamp.Timestamp `protobuf:"bytes,3,opt,name=received_on,json=receivedOn,proto3" json:"received_on,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Content) Descriptor ¶
func (*Content) GetMessage ¶
func (*Content) GetReceivedOn ¶
func (*Content) ProtoMessage ¶
func (*Content) ProtoMessage()
func (*Content) XXX_DiscardUnknown ¶
func (m *Content) XXX_DiscardUnknown()
func (*Content) XXX_Marshal ¶
func (*Content) XXX_Unmarshal ¶
type MessageServiceClient ¶
type MessageServiceClient interface { Send(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) SendStream(ctx context.Context, opts ...grpc.CallOption) (MessageService_SendStreamClient, error) }
MessageServiceClient is the client API for MessageService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMessageServiceClient ¶
func NewMessageServiceClient(cc *grpc.ClientConn) MessageServiceClient
type MessageServiceServer ¶
type MessageServiceServer interface { Send(context.Context, *Request) (*Response, error) SendStream(MessageService_SendStreamServer) error }
MessageServiceServer is the server API for MessageService service.
type Request ¶
type Request struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Request) Descriptor ¶
func (*Request) GetMessage ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type Response ¶
type Response struct { Content *Content `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) GetContent ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.