Documentation ¶
Index ¶
- Variables
- func RegisterPitayaServer(s *grpc.Server, srv PitayaServer)
- type BindMsg
- func (*BindMsg) Descriptor() ([]byte, []int)
- func (m *BindMsg) GetFid() string
- func (m *BindMsg) GetUid() uint32
- func (*BindMsg) ProtoMessage()
- func (m *BindMsg) Reset()
- func (m *BindMsg) String() string
- func (m *BindMsg) XXX_DiscardUnknown()
- func (m *BindMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BindMsg) XXX_Merge(src proto.Message)
- func (m *BindMsg) XXX_Size() int
- func (m *BindMsg) XXX_Unmarshal(b []byte) error
- type Doc
- func (*Doc) Descriptor() ([]byte, []int)
- func (m *Doc) GetDoc() string
- func (*Doc) ProtoMessage()
- func (m *Doc) Reset()
- func (m *Doc) String() string
- func (m *Doc) XXX_DiscardUnknown()
- func (m *Doc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Doc) XXX_Merge(src proto.Message)
- func (m *Doc) XXX_Size() int
- func (m *Doc) XXX_Unmarshal(b []byte) error
- type DocMsg
- func (*DocMsg) Descriptor() ([]byte, []int)
- func (m *DocMsg) GetGetProtos() bool
- func (*DocMsg) ProtoMessage()
- func (m *DocMsg) Reset()
- func (m *DocMsg) String() string
- func (m *DocMsg) XXX_DiscardUnknown()
- func (m *DocMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DocMsg) XXX_Merge(src proto.Message)
- func (m *DocMsg) XXX_Size() int
- func (m *DocMsg) XXX_Unmarshal(b []byte) error
- type Error
- func (*Error) Descriptor() ([]byte, []int)
- func (m *Error) GetCode() uint32
- func (m *Error) GetMetadata() map[string]string
- func (m *Error) GetMsg() string
- func (*Error) ProtoMessage()
- func (m *Error) Reset()
- func (m *Error) String() string
- func (m *Error) XXX_DiscardUnknown()
- func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Error) XXX_Merge(src proto.Message)
- func (m *Error) XXX_Size() int
- func (m *Error) XXX_Unmarshal(b []byte) error
- type KickAnswer
- func (*KickAnswer) Descriptor() ([]byte, []int)
- func (m *KickAnswer) GetKicked() bool
- func (*KickAnswer) ProtoMessage()
- func (m *KickAnswer) Reset()
- func (m *KickAnswer) String() string
- func (m *KickAnswer) XXX_DiscardUnknown()
- func (m *KickAnswer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KickAnswer) XXX_Merge(src proto.Message)
- func (m *KickAnswer) XXX_Size() int
- func (m *KickAnswer) XXX_Unmarshal(b []byte) error
- type KickMsg
- func (*KickMsg) Descriptor() ([]byte, []int)
- func (m *KickMsg) GetUserId() uint32
- func (*KickMsg) ProtoMessage()
- func (m *KickMsg) Reset()
- func (m *KickMsg) String() string
- func (m *KickMsg) XXX_DiscardUnknown()
- func (m *KickMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KickMsg) XXX_Merge(src proto.Message)
- func (m *KickMsg) XXX_Size() int
- func (m *KickMsg) XXX_Unmarshal(b []byte) error
- type Msg
- func (*Msg) Descriptor() ([]byte, []int)
- func (m *Msg) GetData() []byte
- func (m *Msg) GetId() uint64
- func (m *Msg) GetReply() string
- func (m *Msg) GetRoute() string
- func (m *Msg) GetType() MsgType
- func (*Msg) ProtoMessage()
- func (m *Msg) Reset()
- func (m *Msg) String() string
- func (m *Msg) XXX_DiscardUnknown()
- func (m *Msg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Msg) XXX_Merge(src proto.Message)
- func (m *Msg) XXX_Size() int
- func (m *Msg) XXX_Unmarshal(b []byte) error
- type MsgType
- type PitayaClient
- type PitayaServer
- type ProtoDescriptor
- func (*ProtoDescriptor) Descriptor() ([]byte, []int)
- func (m *ProtoDescriptor) GetDesc() []byte
- func (*ProtoDescriptor) ProtoMessage()
- func (m *ProtoDescriptor) Reset()
- func (m *ProtoDescriptor) String() string
- func (m *ProtoDescriptor) XXX_DiscardUnknown()
- func (m *ProtoDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProtoDescriptor) XXX_Merge(src proto.Message)
- func (m *ProtoDescriptor) XXX_Size() int
- func (m *ProtoDescriptor) XXX_Unmarshal(b []byte) error
- type ProtoDescriptors
- func (*ProtoDescriptors) Descriptor() ([]byte, []int)
- func (m *ProtoDescriptors) GetDesc() [][]byte
- func (*ProtoDescriptors) ProtoMessage()
- func (m *ProtoDescriptors) Reset()
- func (m *ProtoDescriptors) String() string
- func (m *ProtoDescriptors) XXX_DiscardUnknown()
- func (m *ProtoDescriptors) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProtoDescriptors) XXX_Merge(src proto.Message)
- func (m *ProtoDescriptors) XXX_Size() int
- func (m *ProtoDescriptors) XXX_Unmarshal(b []byte) error
- type ProtoName
- func (*ProtoName) Descriptor() ([]byte, []int)
- func (m *ProtoName) GetName() string
- func (*ProtoName) ProtoMessage()
- func (m *ProtoName) Reset()
- func (m *ProtoName) String() string
- func (m *ProtoName) XXX_DiscardUnknown()
- func (m *ProtoName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProtoName) XXX_Merge(src proto.Message)
- func (m *ProtoName) XXX_Size() int
- func (m *ProtoName) XXX_Unmarshal(b []byte) error
- type ProtoNames
- func (*ProtoNames) Descriptor() ([]byte, []int)
- func (m *ProtoNames) GetName() []string
- func (*ProtoNames) ProtoMessage()
- func (m *ProtoNames) Reset()
- func (m *ProtoNames) String() string
- func (m *ProtoNames) XXX_DiscardUnknown()
- func (m *ProtoNames) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProtoNames) XXX_Merge(src proto.Message)
- func (m *ProtoNames) XXX_Size() int
- func (m *ProtoNames) XXX_Unmarshal(b []byte) error
- type Push
- func (*Push) Descriptor() ([]byte, []int)
- func (m *Push) GetData() []byte
- func (m *Push) GetRoute() string
- func (m *Push) GetUid() uint32
- func (*Push) ProtoMessage()
- func (m *Push) Reset()
- func (m *Push) String() string
- func (m *Push) XXX_DiscardUnknown()
- func (m *Push) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Push) XXX_Merge(src proto.Message)
- func (m *Push) XXX_Size() int
- func (m *Push) XXX_Unmarshal(b []byte) error
- type RPCType
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetFrontendID() string
- func (m *Request) GetMetadata() []byte
- func (m *Request) GetMsg() *Msg
- func (m *Request) GetSession() *Session
- func (m *Request) GetType() RPCType
- 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) GetData() []byte
- func (m *Response) GetError() *Error
- 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
- type Session
- func (*Session) Descriptor() ([]byte, []int)
- func (m *Session) GetData() []byte
- func (m *Session) GetId() int64
- func (m *Session) GetUid() uint32
- func (*Session) ProtoMessage()
- func (m *Session) Reset()
- func (m *Session) String() string
- func (m *Session) XXX_DiscardUnknown()
- func (m *Session) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Session) XXX_Merge(src proto.Message)
- func (m *Session) XXX_Size() int
- func (m *Session) XXX_Unmarshal(b []byte) error
- type UnimplementedPitayaServer
- func (*UnimplementedPitayaServer) Call(ctx context.Context, req *Request) (*Response, error)
- func (*UnimplementedPitayaServer) KickUser(ctx context.Context, req *KickMsg) (*KickAnswer, error)
- func (*UnimplementedPitayaServer) PushToUser(ctx context.Context, req *Push) (*Response, error)
- func (*UnimplementedPitayaServer) SessionBindRemote(ctx context.Context, req *BindMsg) (*Response, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var MsgType_name = map[int32]string{
0: "MsgRequest",
1: "MsgNotify",
2: "MsgResponse",
3: "MsgPush",
}
View Source
var MsgType_value = map[string]int32{
"MsgRequest": 0,
"MsgNotify": 1,
"MsgResponse": 2,
"MsgPush": 3,
}
View Source
var RPCType_name = map[int32]string{
0: "Sys",
1: "User",
}
View Source
var RPCType_value = map[string]int32{
"Sys": 0,
"User": 1,
}
Functions ¶
func RegisterPitayaServer ¶
func RegisterPitayaServer(s *grpc.Server, srv PitayaServer)
Types ¶
type BindMsg ¶
type BindMsg struct { Uid uint32 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` Fid string `protobuf:"bytes,2,opt,name=fid,proto3" json:"fid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BindMsg) Descriptor ¶
func (*BindMsg) ProtoMessage ¶
func (*BindMsg) ProtoMessage()
func (*BindMsg) XXX_DiscardUnknown ¶
func (m *BindMsg) XXX_DiscardUnknown()
func (*BindMsg) XXX_Marshal ¶
func (*BindMsg) XXX_Unmarshal ¶
type Doc ¶
type Doc struct { Doc string `protobuf:"bytes,1,opt,name=doc,proto3" json:"doc,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Doc) Descriptor ¶
func (*Doc) ProtoMessage ¶
func (*Doc) ProtoMessage()
func (*Doc) XXX_DiscardUnknown ¶
func (m *Doc) XXX_DiscardUnknown()
func (*Doc) XXX_Unmarshal ¶
type DocMsg ¶
type DocMsg struct { GetProtos bool `protobuf:"varint,1,opt,name=getProtos,proto3" json:"getProtos,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DocMsg) Descriptor ¶
func (*DocMsg) GetGetProtos ¶
func (*DocMsg) ProtoMessage ¶
func (*DocMsg) ProtoMessage()
func (*DocMsg) XXX_DiscardUnknown ¶
func (m *DocMsg) XXX_DiscardUnknown()
func (*DocMsg) XXX_Marshal ¶
func (*DocMsg) XXX_Unmarshal ¶
type Error ¶
type Error 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"` Metadata map[string]string `` /* 157-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Error) Descriptor ¶
func (*Error) GetMetadata ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) XXX_DiscardUnknown ¶
func (m *Error) XXX_DiscardUnknown()
func (*Error) XXX_Marshal ¶
func (*Error) XXX_Unmarshal ¶
type KickAnswer ¶
type KickAnswer struct { Kicked bool `protobuf:"varint,1,opt,name=kicked,proto3" json:"kicked,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*KickAnswer) Descriptor ¶
func (*KickAnswer) Descriptor() ([]byte, []int)
func (*KickAnswer) GetKicked ¶
func (m *KickAnswer) GetKicked() bool
func (*KickAnswer) ProtoMessage ¶
func (*KickAnswer) ProtoMessage()
func (*KickAnswer) Reset ¶
func (m *KickAnswer) Reset()
func (*KickAnswer) String ¶
func (m *KickAnswer) String() string
func (*KickAnswer) XXX_DiscardUnknown ¶
func (m *KickAnswer) XXX_DiscardUnknown()
func (*KickAnswer) XXX_Marshal ¶
func (m *KickAnswer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*KickAnswer) XXX_Merge ¶
func (m *KickAnswer) XXX_Merge(src proto.Message)
func (*KickAnswer) XXX_Size ¶
func (m *KickAnswer) XXX_Size() int
func (*KickAnswer) XXX_Unmarshal ¶
func (m *KickAnswer) XXX_Unmarshal(b []byte) error
type KickMsg ¶
type KickMsg struct { UserId uint32 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*KickMsg) Descriptor ¶
func (*KickMsg) ProtoMessage ¶
func (*KickMsg) ProtoMessage()
func (*KickMsg) XXX_DiscardUnknown ¶
func (m *KickMsg) XXX_DiscardUnknown()
func (*KickMsg) XXX_Marshal ¶
func (*KickMsg) XXX_Unmarshal ¶
type Msg ¶
type Msg struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Route string `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` Reply string `protobuf:"bytes,4,opt,name=reply,proto3" json:"reply,omitempty"` Type MsgType `protobuf:"varint,5,opt,name=type,proto3,enum=protos.MsgType" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Msg) Descriptor ¶
func (*Msg) ProtoMessage ¶
func (*Msg) ProtoMessage()
func (*Msg) XXX_DiscardUnknown ¶
func (m *Msg) XXX_DiscardUnknown()
func (*Msg) XXX_Unmarshal ¶
type PitayaClient ¶
type PitayaClient interface { Call(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) PushToUser(ctx context.Context, in *Push, opts ...grpc.CallOption) (*Response, error) SessionBindRemote(ctx context.Context, in *BindMsg, opts ...grpc.CallOption) (*Response, error) KickUser(ctx context.Context, in *KickMsg, opts ...grpc.CallOption) (*KickAnswer, error) }
PitayaClient is the client API for Pitaya service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPitayaClient ¶
func NewPitayaClient(cc *grpc.ClientConn) PitayaClient
type PitayaServer ¶
type PitayaServer interface { Call(context.Context, *Request) (*Response, error) PushToUser(context.Context, *Push) (*Response, error) SessionBindRemote(context.Context, *BindMsg) (*Response, error) KickUser(context.Context, *KickMsg) (*KickAnswer, error) }
PitayaServer is the server API for Pitaya service.
type ProtoDescriptor ¶
type ProtoDescriptor struct { Desc []byte `protobuf:"bytes,1,opt,name=desc,proto3" json:"desc,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Descriptor proto used to retrieve zipped proto descriptors remotely
func (*ProtoDescriptor) Descriptor ¶
func (*ProtoDescriptor) Descriptor() ([]byte, []int)
func (*ProtoDescriptor) GetDesc ¶
func (m *ProtoDescriptor) GetDesc() []byte
func (*ProtoDescriptor) ProtoMessage ¶
func (*ProtoDescriptor) ProtoMessage()
func (*ProtoDescriptor) Reset ¶
func (m *ProtoDescriptor) Reset()
func (*ProtoDescriptor) String ¶
func (m *ProtoDescriptor) String() string
func (*ProtoDescriptor) XXX_DiscardUnknown ¶
func (m *ProtoDescriptor) XXX_DiscardUnknown()
func (*ProtoDescriptor) XXX_Marshal ¶
func (m *ProtoDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProtoDescriptor) XXX_Merge ¶
func (m *ProtoDescriptor) XXX_Merge(src proto.Message)
func (*ProtoDescriptor) XXX_Size ¶
func (m *ProtoDescriptor) XXX_Size() int
func (*ProtoDescriptor) XXX_Unmarshal ¶
func (m *ProtoDescriptor) XXX_Unmarshal(b []byte) error
type ProtoDescriptors ¶
type ProtoDescriptors struct { Desc [][]byte `protobuf:"bytes,1,rep,name=desc,proto3" json:"desc,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ProtoDescriptors) Descriptor ¶
func (*ProtoDescriptors) Descriptor() ([]byte, []int)
func (*ProtoDescriptors) GetDesc ¶
func (m *ProtoDescriptors) GetDesc() [][]byte
func (*ProtoDescriptors) ProtoMessage ¶
func (*ProtoDescriptors) ProtoMessage()
func (*ProtoDescriptors) Reset ¶
func (m *ProtoDescriptors) Reset()
func (*ProtoDescriptors) String ¶
func (m *ProtoDescriptors) String() string
func (*ProtoDescriptors) XXX_DiscardUnknown ¶
func (m *ProtoDescriptors) XXX_DiscardUnknown()
func (*ProtoDescriptors) XXX_Marshal ¶
func (m *ProtoDescriptors) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProtoDescriptors) XXX_Merge ¶
func (m *ProtoDescriptors) XXX_Merge(src proto.Message)
func (*ProtoDescriptors) XXX_Size ¶
func (m *ProtoDescriptors) XXX_Size() int
func (*ProtoDescriptors) XXX_Unmarshal ¶
func (m *ProtoDescriptors) XXX_Unmarshal(b []byte) error
type ProtoName ¶
type ProtoName struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ProtoName) Descriptor ¶
func (*ProtoName) ProtoMessage ¶
func (*ProtoName) ProtoMessage()
func (*ProtoName) XXX_DiscardUnknown ¶
func (m *ProtoName) XXX_DiscardUnknown()
func (*ProtoName) XXX_Marshal ¶
func (*ProtoName) XXX_Unmarshal ¶
type ProtoNames ¶
type ProtoNames struct { Name []string `protobuf:"bytes,1,rep,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ProtoNames) Descriptor ¶
func (*ProtoNames) Descriptor() ([]byte, []int)
func (*ProtoNames) GetName ¶
func (m *ProtoNames) GetName() []string
func (*ProtoNames) ProtoMessage ¶
func (*ProtoNames) ProtoMessage()
func (*ProtoNames) Reset ¶
func (m *ProtoNames) Reset()
func (*ProtoNames) String ¶
func (m *ProtoNames) String() string
func (*ProtoNames) XXX_DiscardUnknown ¶
func (m *ProtoNames) XXX_DiscardUnknown()
func (*ProtoNames) XXX_Marshal ¶
func (m *ProtoNames) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProtoNames) XXX_Merge ¶
func (m *ProtoNames) XXX_Merge(src proto.Message)
func (*ProtoNames) XXX_Size ¶
func (m *ProtoNames) XXX_Size() int
func (*ProtoNames) XXX_Unmarshal ¶
func (m *ProtoNames) XXX_Unmarshal(b []byte) error
type Push ¶
type Push struct { Route string `protobuf:"bytes,1,opt,name=route,proto3" json:"route,omitempty"` Uid uint32 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Push) Descriptor ¶
func (*Push) ProtoMessage ¶
func (*Push) ProtoMessage()
func (*Push) XXX_DiscardUnknown ¶
func (m *Push) XXX_DiscardUnknown()
func (*Push) XXX_Unmarshal ¶
type Request ¶
type Request struct { Type RPCType `protobuf:"varint,1,opt,name=type,proto3,enum=protos.RPCType" json:"type,omitempty"` Session *Session `protobuf:"bytes,2,opt,name=session,proto3" json:"session,omitempty"` Msg *Msg `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` FrontendID string `protobuf:"bytes,4,opt,name=frontendID,proto3" json:"frontendID,omitempty"` Metadata []byte `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Request) Descriptor ¶
func (*Request) GetFrontendID ¶
func (*Request) GetMetadata ¶
func (*Request) GetSession ¶
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 { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type Session ¶
type Session struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Uid uint32 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Session) Descriptor ¶
func (*Session) ProtoMessage ¶
func (*Session) ProtoMessage()
func (*Session) XXX_DiscardUnknown ¶
func (m *Session) XXX_DiscardUnknown()
func (*Session) XXX_Marshal ¶
func (*Session) XXX_Unmarshal ¶
type UnimplementedPitayaServer ¶
type UnimplementedPitayaServer struct { }
UnimplementedPitayaServer can be embedded to have forward compatible implementations.
func (*UnimplementedPitayaServer) KickUser ¶
func (*UnimplementedPitayaServer) KickUser(ctx context.Context, req *KickMsg) (*KickAnswer, error)
func (*UnimplementedPitayaServer) PushToUser ¶
func (*UnimplementedPitayaServer) SessionBindRemote ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.