Documentation ¶
Index ¶
- Variables
- func RegisterFileServer(s *server.Server, h FileServer)
- func RegisterHelloServer(s *server.Server, h HelloServer)
- func RegisterHelloSrvServer(s *server.Server, h HelloSrvServer)
- func RegisterImServer(s *server.Server, h ImServer)
- type ApiReq
- func (*ApiReq) Descriptor() ([]byte, []int)
- func (m *ApiReq) GetParams() map[string]string
- func (m *ApiReq) Marshal() (dAtA []byte, err error)
- func (m *ApiReq) MarshalTo(dAtA []byte) (int, error)
- func (m *ApiReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ApiReq) ProtoMessage()
- func (m *ApiReq) Reset()
- func (m *ApiReq) Size() (n int)
- func (m *ApiReq) String() string
- func (m *ApiReq) Unmarshal(dAtA []byte) error
- func (m *ApiReq) XXX_DiscardUnknown()
- func (m *ApiReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ApiReq) XXX_Merge(src proto.Message)
- func (m *ApiReq) XXX_Size() int
- func (m *ApiReq) XXX_Unmarshal(b []byte) error
- type ApiRsp
- func (*ApiRsp) Descriptor() ([]byte, []int)
- func (m *ApiRsp) GetCode() int32
- func (m *ApiRsp) GetMsg() string
- func (m *ApiRsp) Marshal() (dAtA []byte, err error)
- func (m *ApiRsp) MarshalTo(dAtA []byte) (int, error)
- func (m *ApiRsp) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ApiRsp) ProtoMessage()
- func (m *ApiRsp) Reset()
- func (m *ApiRsp) Size() (n int)
- func (m *ApiRsp) String() string
- func (m *ApiRsp) Unmarshal(dAtA []byte) error
- func (m *ApiRsp) XXX_DiscardUnknown()
- func (m *ApiRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ApiRsp) XXX_Merge(src proto.Message)
- func (m *ApiRsp) XXX_Size() int
- func (m *ApiRsp) XXX_Unmarshal(b []byte) error
- type ConnectReq
- func (*ConnectReq) Descriptor() ([]byte, []int)
- func (m *ConnectReq) GetUserName() string
- func (m *ConnectReq) Marshal() (dAtA []byte, err error)
- func (m *ConnectReq) MarshalTo(dAtA []byte) (int, error)
- func (m *ConnectReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ConnectReq) ProtoMessage()
- func (m *ConnectReq) Reset()
- func (m *ConnectReq) Size() (n int)
- func (m *ConnectReq) String() string
- func (m *ConnectReq) Unmarshal(dAtA []byte) error
- func (m *ConnectReq) XXX_DiscardUnknown()
- func (m *ConnectReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConnectReq) XXX_Merge(src proto.Message)
- func (m *ConnectReq) XXX_Size() int
- func (m *ConnectReq) XXX_Unmarshal(b []byte) error
- type ConnectRsp
- func (*ConnectRsp) Descriptor() ([]byte, []int)
- func (m *ConnectRsp) GetIsConnect() bool
- func (m *ConnectRsp) Marshal() (dAtA []byte, err error)
- func (m *ConnectRsp) MarshalTo(dAtA []byte) (int, error)
- func (m *ConnectRsp) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ConnectRsp) ProtoMessage()
- func (m *ConnectRsp) Reset()
- func (m *ConnectRsp) Size() (n int)
- func (m *ConnectRsp) String() string
- func (m *ConnectRsp) Unmarshal(dAtA []byte) error
- func (m *ConnectRsp) XXX_DiscardUnknown()
- func (m *ConnectRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConnectRsp) XXX_Merge(src proto.Message)
- func (m *ConnectRsp) XXX_Size() int
- func (m *ConnectRsp) XXX_Unmarshal(b []byte) error
- type CountReq
- func (*CountReq) Descriptor() ([]byte, []int)
- func (m *CountReq) GetPrefix() string
- func (m *CountReq) Marshal() (dAtA []byte, err error)
- func (m *CountReq) MarshalTo(dAtA []byte) (int, error)
- func (m *CountReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CountReq) ProtoMessage()
- func (m *CountReq) Reset()
- func (m *CountReq) Size() (n int)
- func (m *CountReq) String() string
- func (m *CountReq) Unmarshal(dAtA []byte) error
- func (m *CountReq) XXX_DiscardUnknown()
- func (m *CountReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CountReq) XXX_Merge(src proto.Message)
- func (m *CountReq) XXX_Size() int
- func (m *CountReq) XXX_Unmarshal(b []byte) error
- type CountRsp
- func (*CountRsp) Descriptor() ([]byte, []int)
- func (m *CountRsp) GetCount() uint32
- func (m *CountRsp) Marshal() (dAtA []byte, err error)
- func (m *CountRsp) MarshalTo(dAtA []byte) (int, error)
- func (m *CountRsp) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CountRsp) ProtoMessage()
- func (m *CountRsp) Reset()
- func (m *CountRsp) Size() (n int)
- func (m *CountRsp) String() string
- func (m *CountRsp) Unmarshal(dAtA []byte) error
- func (m *CountRsp) XXX_DiscardUnknown()
- func (m *CountRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CountRsp) XXX_Merge(src proto.Message)
- func (m *CountRsp) XXX_Size() int
- func (m *CountRsp) XXX_Unmarshal(b []byte) error
- type FileClient
- type FileReq
- func (*FileReq) Descriptor() ([]byte, []int)
- func (m *FileReq) GetBody() []byte
- func (m *FileReq) GetFileName() string
- func (m *FileReq) GetFileSize() int64
- func (m *FileReq) Marshal() (dAtA []byte, err error)
- func (m *FileReq) MarshalTo(dAtA []byte) (int, error)
- func (m *FileReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FileReq) ProtoMessage()
- func (m *FileReq) Reset()
- func (m *FileReq) Size() (n int)
- func (m *FileReq) String() string
- func (m *FileReq) Unmarshal(dAtA []byte) error
- func (m *FileReq) XXX_DiscardUnknown()
- func (m *FileReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FileReq) XXX_Merge(src proto.Message)
- func (m *FileReq) XXX_Size() int
- func (m *FileReq) XXX_Unmarshal(b []byte) error
- type FileRsp
- func (*FileRsp) Descriptor() ([]byte, []int)
- func (m *FileRsp) GetCode() uint32
- func (m *FileRsp) GetMsg() string
- func (m *FileRsp) Marshal() (dAtA []byte, err error)
- func (m *FileRsp) MarshalTo(dAtA []byte) (int, error)
- func (m *FileRsp) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FileRsp) ProtoMessage()
- func (m *FileRsp) Reset()
- func (m *FileRsp) Size() (n int)
- func (m *FileRsp) String() string
- func (m *FileRsp) Unmarshal(dAtA []byte) error
- func (m *FileRsp) XXX_DiscardUnknown()
- func (m *FileRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FileRsp) XXX_Merge(src proto.Message)
- func (m *FileRsp) XXX_Size() int
- func (m *FileRsp) XXX_Unmarshal(b []byte) error
- type FileServer
- type HelloClient
- type HelloServer
- type HelloSrvClient
- type HelloSrvServer
- type ImClient
- type ImServer
- type SayReq
- func (*SayReq) Descriptor() ([]byte, []int)
- func (m *SayReq) GetPing() string
- func (m *SayReq) Marshal() (dAtA []byte, err error)
- func (m *SayReq) MarshalTo(dAtA []byte) (int, error)
- func (m *SayReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SayReq) ProtoMessage()
- func (m *SayReq) Reset()
- func (m *SayReq) Size() (n int)
- func (m *SayReq) String() string
- func (m *SayReq) Unmarshal(dAtA []byte) error
- func (m *SayReq) XXX_DiscardUnknown()
- func (m *SayReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SayReq) XXX_Merge(src proto.Message)
- func (m *SayReq) XXX_Size() int
- func (m *SayReq) XXX_Unmarshal(b []byte) error
- type SayRsp
- func (*SayRsp) Descriptor() ([]byte, []int)
- func (m *SayRsp) GetPong() string
- func (m *SayRsp) Marshal() (dAtA []byte, err error)
- func (m *SayRsp) MarshalTo(dAtA []byte) (int, error)
- func (m *SayRsp) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SayRsp) ProtoMessage()
- func (m *SayRsp) Reset()
- func (m *SayRsp) Size() (n int)
- func (m *SayRsp) String() string
- func (m *SayRsp) Unmarshal(dAtA []byte) error
- func (m *SayRsp) XXX_DiscardUnknown()
- func (m *SayRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SayRsp) XXX_Merge(src proto.Message)
- func (m *SayRsp) XXX_Size() int
- func (m *SayRsp) XXX_Unmarshal(b []byte) error
- type SendMessageReq
- func (*SendMessageReq) Descriptor() ([]byte, []int)
- func (m *SendMessageReq) GetMessage() string
- func (m *SendMessageReq) Marshal() (dAtA []byte, err error)
- func (m *SendMessageReq) MarshalTo(dAtA []byte) (int, error)
- func (m *SendMessageReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SendMessageReq) ProtoMessage()
- func (m *SendMessageReq) Reset()
- func (m *SendMessageReq) Size() (n int)
- func (m *SendMessageReq) String() string
- func (m *SendMessageReq) Unmarshal(dAtA []byte) error
- func (m *SendMessageReq) XXX_DiscardUnknown()
- func (m *SendMessageReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SendMessageReq) XXX_Merge(src proto.Message)
- func (m *SendMessageReq) XXX_Size() int
- func (m *SendMessageReq) XXX_Unmarshal(b []byte) error
- type SendMessageRsp
- func (*SendMessageRsp) Descriptor() ([]byte, []int)
- func (m *SendMessageRsp) GetMessage() string
- func (m *SendMessageRsp) Marshal() (dAtA []byte, err error)
- func (m *SendMessageRsp) MarshalTo(dAtA []byte) (int, error)
- func (m *SendMessageRsp) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SendMessageRsp) ProtoMessage()
- func (m *SendMessageRsp) Reset()
- func (m *SendMessageRsp) Size() (n int)
- func (m *SendMessageRsp) String() string
- func (m *SendMessageRsp) Unmarshal(dAtA []byte) error
- func (m *SendMessageRsp) XXX_DiscardUnknown()
- func (m *SendMessageRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SendMessageRsp) XXX_Merge(src proto.Message)
- func (m *SendMessageRsp) XXX_Size() int
- func (m *SendMessageRsp) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterFileServer ¶
func RegisterFileServer(s *server.Server, h FileServer)
func RegisterHelloServer ¶
func RegisterHelloServer(s *server.Server, h HelloServer)
func RegisterHelloSrvServer ¶
func RegisterHelloSrvServer(s *server.Server, h HelloSrvServer)
func RegisterImServer ¶
Types ¶
type ApiReq ¶
type ApiReq struct { //params is URL query url.Values Params map[string]string `` /* 153-byte string literal not displayed */ }
func (*ApiReq) Descriptor ¶
func (*ApiReq) MarshalToSizedBuffer ¶
func (*ApiReq) ProtoMessage ¶
func (*ApiReq) ProtoMessage()
func (*ApiReq) XXX_DiscardUnknown ¶
func (m *ApiReq) XXX_DiscardUnknown()
func (*ApiReq) XXX_Marshal ¶
func (*ApiReq) XXX_Unmarshal ¶
type ApiRsp ¶
type ApiRsp struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` }
func (*ApiRsp) Descriptor ¶
func (*ApiRsp) MarshalToSizedBuffer ¶
func (*ApiRsp) ProtoMessage ¶
func (*ApiRsp) ProtoMessage()
func (*ApiRsp) XXX_DiscardUnknown ¶
func (m *ApiRsp) XXX_DiscardUnknown()
func (*ApiRsp) XXX_Marshal ¶
func (*ApiRsp) XXX_Unmarshal ¶
type ConnectReq ¶
type ConnectReq struct {
UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
}
ConnectReq is like handshake
func (*ConnectReq) Descriptor ¶
func (*ConnectReq) Descriptor() ([]byte, []int)
func (*ConnectReq) GetUserName ¶
func (m *ConnectReq) GetUserName() string
func (*ConnectReq) Marshal ¶
func (m *ConnectReq) Marshal() (dAtA []byte, err error)
func (*ConnectReq) MarshalToSizedBuffer ¶
func (m *ConnectReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ConnectReq) ProtoMessage ¶
func (*ConnectReq) ProtoMessage()
func (*ConnectReq) Reset ¶
func (m *ConnectReq) Reset()
func (*ConnectReq) Size ¶
func (m *ConnectReq) Size() (n int)
func (*ConnectReq) String ¶
func (m *ConnectReq) String() string
func (*ConnectReq) Unmarshal ¶
func (m *ConnectReq) Unmarshal(dAtA []byte) error
func (*ConnectReq) XXX_DiscardUnknown ¶
func (m *ConnectReq) XXX_DiscardUnknown()
func (*ConnectReq) XXX_Marshal ¶
func (m *ConnectReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConnectReq) XXX_Merge ¶
func (m *ConnectReq) XXX_Merge(src proto.Message)
func (*ConnectReq) XXX_Size ¶
func (m *ConnectReq) XXX_Size() int
func (*ConnectReq) XXX_Unmarshal ¶
func (m *ConnectReq) XXX_Unmarshal(b []byte) error
type ConnectRsp ¶
type ConnectRsp struct {
IsConnect bool `protobuf:"varint,1,opt,name=is_connect,json=isConnect,proto3" json:"is_connect,omitempty"`
}
func (*ConnectRsp) Descriptor ¶
func (*ConnectRsp) Descriptor() ([]byte, []int)
func (*ConnectRsp) GetIsConnect ¶
func (m *ConnectRsp) GetIsConnect() bool
func (*ConnectRsp) Marshal ¶
func (m *ConnectRsp) Marshal() (dAtA []byte, err error)
func (*ConnectRsp) MarshalToSizedBuffer ¶
func (m *ConnectRsp) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ConnectRsp) ProtoMessage ¶
func (*ConnectRsp) ProtoMessage()
func (*ConnectRsp) Reset ¶
func (m *ConnectRsp) Reset()
func (*ConnectRsp) Size ¶
func (m *ConnectRsp) Size() (n int)
func (*ConnectRsp) String ¶
func (m *ConnectRsp) String() string
func (*ConnectRsp) Unmarshal ¶
func (m *ConnectRsp) Unmarshal(dAtA []byte) error
func (*ConnectRsp) XXX_DiscardUnknown ¶
func (m *ConnectRsp) XXX_DiscardUnknown()
func (*ConnectRsp) XXX_Marshal ¶
func (m *ConnectRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConnectRsp) XXX_Merge ¶
func (m *ConnectRsp) XXX_Merge(src proto.Message)
func (*ConnectRsp) XXX_Size ¶
func (m *ConnectRsp) XXX_Size() int
func (*ConnectRsp) XXX_Unmarshal ¶
func (m *ConnectRsp) XXX_Unmarshal(b []byte) error
type CountReq ¶
type CountReq struct {
Prefix string `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
}
CountReq is for count online member
func (*CountReq) Descriptor ¶
func (*CountReq) MarshalToSizedBuffer ¶
func (*CountReq) ProtoMessage ¶
func (*CountReq) ProtoMessage()
func (*CountReq) XXX_DiscardUnknown ¶
func (m *CountReq) XXX_DiscardUnknown()
func (*CountReq) XXX_Marshal ¶
func (*CountReq) XXX_Unmarshal ¶
type CountRsp ¶
type CountRsp struct {
Count uint32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
}
func (*CountRsp) Descriptor ¶
func (*CountRsp) MarshalToSizedBuffer ¶
func (*CountRsp) ProtoMessage ¶
func (*CountRsp) ProtoMessage()
func (*CountRsp) XXX_DiscardUnknown ¶
func (m *CountRsp) XXX_DiscardUnknown()
func (*CountRsp) XXX_Marshal ¶
func (*CountRsp) XXX_Unmarshal ¶
type FileClient ¶
type FileClient interface {
Upload(c *context.Context, req *FileReq, opts ...invoke.InvokeOptions) (*FileRsp, error)
}
func NewFileClient ¶
func NewFileClient(c *client.Client) FileClient
type FileReq ¶
type FileReq struct { FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` FileSize int64 `protobuf:"varint,2,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"` Body []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` }
FileReq must equals to github.com/go-roc/roc/parcel/packet/parcel.proto FileReq
func (*FileReq) Descriptor ¶
func (*FileReq) GetFileName ¶
func (*FileReq) GetFileSize ¶
func (*FileReq) MarshalToSizedBuffer ¶
func (*FileReq) ProtoMessage ¶
func (*FileReq) ProtoMessage()
func (*FileReq) XXX_DiscardUnknown ¶
func (m *FileReq) XXX_DiscardUnknown()
func (*FileReq) XXX_Marshal ¶
func (*FileReq) XXX_Unmarshal ¶
type FileRsp ¶
type FileRsp struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` }
func (*FileRsp) Descriptor ¶
func (*FileRsp) MarshalToSizedBuffer ¶
func (*FileRsp) ProtoMessage ¶
func (*FileRsp) ProtoMessage()
func (*FileRsp) XXX_DiscardUnknown ¶
func (m *FileRsp) XXX_DiscardUnknown()
func (*FileRsp) XXX_Marshal ¶
func (*FileRsp) XXX_Unmarshal ¶
type FileServer ¶
FileServer is the server API for File server.
type HelloClient ¶
type HelloClient interface { // requestResponse or fireAndForget. Say(c *context.Context, req *SayReq, opts ...invoke.InvokeOptions) (*SayRsp, error) // get http request api SayGet(c *context.Context, req *ApiReq, opts ...invoke.InvokeOptions) (*ApiRsp, error) //for api SayApi(c *context.Context, req *SayReq, opts ...invoke.InvokeOptions) (*SayRsp, error) }
func NewHelloClient ¶
func NewHelloClient(c *client.Client) HelloClient
type HelloServer ¶
type HelloServer interface { // requestResponse or fireAndForget. Say(c *context.Context, req *SayReq, rsp *SayRsp) // get http request api SayGet(c *context.Context, req *ApiReq, rsp *ApiRsp) //for api SayApi(c *context.Context, req *SayReq, rsp *SayRsp) }
HelloServer is the server API for Hello server.
type HelloSrvClient ¶
type HelloSrvClient interface { // requestResponse or fireAndForget. SaySrv(c *context.Context, req *SayReq, opts ...invoke.InvokeOptions) (*SayRsp, error) // requestStream. // SayReq is channel params. SayStream(c *context.Context, req *SayReq, opts ...invoke.InvokeOptions) chan *SayRsp // requestChannel. // SayReq and SayRsp is channel. SayChannel(c *context.Context, req chan *SayReq, opts ...invoke.InvokeOptions) chan *SayRsp }
func NewHelloSrvClient ¶
func NewHelloSrvClient(c *client.Client) HelloSrvClient
type HelloSrvServer ¶
type HelloSrvServer interface { // requestResponse or fireAndForget. SaySrv(c *context.Context, req *SayReq, rsp *SayRsp) // requestStream. // SayReq is channel params. SayStream(c *context.Context, req *SayReq) chan *SayRsp // requestChannel. // SayReq and SayRsp is channel. SayChannel(c *context.Context, req chan *SayReq, exit chan struct{}) chan *SayRsp }
HelloSrvServer is the server API for HelloSrv server.
type ImClient ¶
type ImClient interface { // Connect server for wait message Connect(c *context.Context, req *ConnectReq, opts ...invoke.InvokeOptions) (*ConnectRsp, error) // Count online member Count(c *context.Context, req *CountReq, opts ...invoke.InvokeOptions) (*CountRsp, error) // SendMessage is the im kernel SendMessage(c *context.Context, req chan *SendMessageReq, opts ...invoke.InvokeOptions) chan *SendMessageRsp }
func NewImClient ¶
type ImServer ¶
type ImServer interface { // Connect server for wait message Connect(c *context.Context, req *ConnectReq, rsp *ConnectRsp) // Count online member Count(c *context.Context, req *CountReq, rsp *CountRsp) // SendMessage is the im kernel SendMessage(c *context.Context, req chan *SendMessageReq, exit chan struct{}) chan *SendMessageRsp }
ImServer is the server API for Im server.
type SayReq ¶
type SayReq struct {
Ping string `protobuf:"bytes,1,opt,name=ping,proto3" json:"ping,omitempty"`
}
request params.
func (*SayReq) Descriptor ¶
func (*SayReq) MarshalToSizedBuffer ¶
func (*SayReq) ProtoMessage ¶
func (*SayReq) ProtoMessage()
func (*SayReq) XXX_DiscardUnknown ¶
func (m *SayReq) XXX_DiscardUnknown()
func (*SayReq) XXX_Marshal ¶
func (*SayReq) XXX_Unmarshal ¶
type SayRsp ¶
type SayRsp struct {
Pong string `protobuf:"bytes,1,opt,name=pong,proto3" json:"pong,omitempty"`
}
response content.
func (*SayRsp) Descriptor ¶
func (*SayRsp) MarshalToSizedBuffer ¶
func (*SayRsp) ProtoMessage ¶
func (*SayRsp) ProtoMessage()
func (*SayRsp) XXX_DiscardUnknown ¶
func (m *SayRsp) XXX_DiscardUnknown()
func (*SayRsp) XXX_Marshal ¶
func (*SayRsp) XXX_Unmarshal ¶
type SendMessageReq ¶
type SendMessageReq struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
}
SendMessageReq send a message
func (*SendMessageReq) Descriptor ¶
func (*SendMessageReq) Descriptor() ([]byte, []int)
func (*SendMessageReq) GetMessage ¶
func (m *SendMessageReq) GetMessage() string
func (*SendMessageReq) Marshal ¶
func (m *SendMessageReq) Marshal() (dAtA []byte, err error)
func (*SendMessageReq) MarshalToSizedBuffer ¶
func (m *SendMessageReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SendMessageReq) ProtoMessage ¶
func (*SendMessageReq) ProtoMessage()
func (*SendMessageReq) Reset ¶
func (m *SendMessageReq) Reset()
func (*SendMessageReq) Size ¶
func (m *SendMessageReq) Size() (n int)
func (*SendMessageReq) String ¶
func (m *SendMessageReq) String() string
func (*SendMessageReq) Unmarshal ¶
func (m *SendMessageReq) Unmarshal(dAtA []byte) error
func (*SendMessageReq) XXX_DiscardUnknown ¶
func (m *SendMessageReq) XXX_DiscardUnknown()
func (*SendMessageReq) XXX_Marshal ¶
func (m *SendMessageReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendMessageReq) XXX_Merge ¶
func (m *SendMessageReq) XXX_Merge(src proto.Message)
func (*SendMessageReq) XXX_Size ¶
func (m *SendMessageReq) XXX_Size() int
func (*SendMessageReq) XXX_Unmarshal ¶
func (m *SendMessageReq) XXX_Unmarshal(b []byte) error
type SendMessageRsp ¶
type SendMessageRsp struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
}
response content. SendMessageRsp usually use for broadcast
func (*SendMessageRsp) Descriptor ¶
func (*SendMessageRsp) Descriptor() ([]byte, []int)
func (*SendMessageRsp) GetMessage ¶
func (m *SendMessageRsp) GetMessage() string
func (*SendMessageRsp) Marshal ¶
func (m *SendMessageRsp) Marshal() (dAtA []byte, err error)
func (*SendMessageRsp) MarshalToSizedBuffer ¶
func (m *SendMessageRsp) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SendMessageRsp) ProtoMessage ¶
func (*SendMessageRsp) ProtoMessage()
func (*SendMessageRsp) Reset ¶
func (m *SendMessageRsp) Reset()
func (*SendMessageRsp) Size ¶
func (m *SendMessageRsp) Size() (n int)
func (*SendMessageRsp) String ¶
func (m *SendMessageRsp) String() string
func (*SendMessageRsp) Unmarshal ¶
func (m *SendMessageRsp) Unmarshal(dAtA []byte) error
func (*SendMessageRsp) XXX_DiscardUnknown ¶
func (m *SendMessageRsp) XXX_DiscardUnknown()
func (*SendMessageRsp) XXX_Marshal ¶
func (m *SendMessageRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendMessageRsp) XXX_Merge ¶
func (m *SendMessageRsp) XXX_Merge(src proto.Message)
func (*SendMessageRsp) XXX_Size ¶
func (m *SendMessageRsp) XXX_Size() int
func (*SendMessageRsp) XXX_Unmarshal ¶
func (m *SendMessageRsp) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.