Documentation
¶
Overview ¶
Code generated by protoc-gen-auth. DO NOT EDIT! source: chat.proto
Package message is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Code generated by protoc-gen-auth. DO NOT EDIT! source: include.proto
Code generated by protoc-gen-auth. DO NOT EDIT! source: inner_chat.proto
Package message is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Code generated by protoc-gen-auth. DO NOT EDIT! source: inner_router.proto
Code generated by protoc-gen-auth. DO NOT EDIT! source: inner_session.proto
Package message is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Code generated by protoc-gen-auth. DO NOT EDIT! source: room.proto
Package message is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterChatHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterChatHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ChatClient) error
- func RegisterChatHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterChatHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ChatServer) error
- func RegisterChatScopeServer(component string, auth service.Authenticator, impl service.Implementor, ...) error
- func RegisterChatServer(s *grpc.Server, srv ChatServer)
- func RegisterChatWsHandlerServer(mux *runtime.ServeMux, srv ChatServer, ...) error
- func RegisterInnerChatHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterInnerChatHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InnerChatClient) error
- func RegisterInnerChatHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterInnerChatHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InnerChatServer) error
- func RegisterInnerChatScopeServer(component string, auth service.Authenticator, impl service.Implementor, ...) error
- func RegisterInnerChatServer(s *grpc.Server, srv InnerChatServer)
- func RegisterInnerRouterScopeServer(component string, auth service.Authenticator, impl service.Implementor, ...) error
- func RegisterInnerRouterServer(s *grpc.Server, srv InnerRouterServer)
- func RegisterInnerSessionHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterInnerSessionHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InnerSessionClient) error
- func RegisterInnerSessionHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterInnerSessionHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InnerSessionServer) error
- func RegisterInnerSessionScopeServer(component string, auth service.Authenticator, impl service.Implementor, ...) error
- func RegisterInnerSessionServer(s *grpc.Server, srv InnerSessionServer)
- func RegisterRoomHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterRoomHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RoomClient) error
- func RegisterRoomHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterRoomHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RoomServer) error
- func RegisterRoomScopeServer(component string, auth service.Authenticator, impl service.Implementor, ...) error
- func RegisterRoomServer(s *grpc.Server, srv RoomServer)
- func RegisterRoomWsHandlerServer(mux *runtime.ServeMux, srv RoomServer, ...) error
- type Category
- type ChatClient
- type ChatServer
- type Chat_InteractClient
- type Chat_InteractServer
- type ClientId
- func (*ClientId) Descriptor() ([]byte, []int)
- func (m *ClientId) GetCategory() Category
- func (m *ClientId) GetLastId() uint64
- func (*ClientId) ProtoMessage()
- func (m *ClientId) Reset()
- func (m *ClientId) String() string
- func (m *ClientId) Validate() error
- func (m *ClientId) XXX_DiscardUnknown()
- func (m *ClientId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientId) XXX_Merge(src proto.Message)
- func (m *ClientId) XXX_Size() int
- func (m *ClientId) XXX_Unmarshal(b []byte) error
- type ClientIdValidationError
- type ClientIds
- func (*ClientIds) Descriptor() ([]byte, []int)
- func (m *ClientIds) GetIds() []*ClientId
- func (*ClientIds) ProtoMessage()
- func (m *ClientIds) Reset()
- func (m *ClientIds) String() string
- func (m *ClientIds) Validate() error
- func (m *ClientIds) XXX_DiscardUnknown()
- func (m *ClientIds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientIds) XXX_Merge(src proto.Message)
- func (m *ClientIds) XXX_Size() int
- func (m *ClientIds) XXX_Unmarshal(b []byte) error
- type ClientIdsValidationError
- type Connections
- func (*Connections) Descriptor() ([]byte, []int)
- func (m *Connections) GetProduct() string
- func (m *Connections) GetUniqueIds() []string
- func (*Connections) ProtoMessage()
- func (m *Connections) Reset()
- func (m *Connections) String() string
- func (m *Connections) Validate() error
- func (m *Connections) XXX_DiscardUnknown()
- func (m *Connections) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Connections) XXX_Merge(src proto.Message)
- func (m *Connections) XXX_Size() int
- func (m *Connections) XXX_Unmarshal(b []byte) error
- type ConnectionsValidationError
- func (e ConnectionsValidationError) Cause() error
- func (e ConnectionsValidationError) Error() string
- func (e ConnectionsValidationError) ErrorName() string
- func (e ConnectionsValidationError) Field() string
- func (e ConnectionsValidationError) Key() bool
- func (e ConnectionsValidationError) Reason() string
- type InnerChatClient
- type InnerChatServer
- type InnerRouterClient
- type InnerRouterServer
- type InnerSessionClient
- type InnerSessionServer
- type Location
- func (*Location) Descriptor() ([]byte, []int)
- func (m *Location) GetLatitude() float32
- func (m *Location) GetLongitude() float32
- func (*Location) ProtoMessage()
- func (m *Location) Reset()
- func (m *Location) String() string
- func (m *Location) Validate() error
- func (m *Location) XXX_DiscardUnknown()
- func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Location) XXX_Merge(src proto.Message)
- func (m *Location) XXX_Size() int
- func (m *Location) XXX_Unmarshal(b []byte) error
- type LocationValidationError
- type Media
- func (*Media) Descriptor() ([]byte, []int)
- func (m *Media) GetThumbnail() string
- func (m *Media) GetUrl() string
- func (*Media) ProtoMessage()
- func (m *Media) Reset()
- func (m *Media) String() string
- func (m *Media) Validate() error
- func (m *Media) XXX_DiscardUnknown()
- func (m *Media) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Media) XXX_Merge(src proto.Message)
- func (m *Media) XXX_Size() int
- func (m *Media) XXX_Unmarshal(b []byte) error
- type MediaValidationError
- type Package
- func (*Package) Descriptor() ([]byte, []int)
- func (m *Package) GetConn() *Connections
- func (m *Package) GetPosts() []*Post
- func (m *Package) GetSn() string
- func (m *Package) GetTag() *Tag
- func (m *Package) GetTarget() isPackage_Target
- func (*Package) ProtoMessage()
- func (m *Package) Reset()
- func (m *Package) String() string
- func (m *Package) Validate() error
- func (m *Package) XXX_DiscardUnknown()
- func (m *Package) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Package) XXX_Merge(src proto.Message)
- func (*Package) XXX_OneofWrappers() []interface{}
- func (m *Package) XXX_Size() int
- func (m *Package) XXX_Unmarshal(b []byte) error
- type PackageValidationError
- type Package_Conn
- type Package_Tag
- type PayloadType
- type Post
- func (*Post) Descriptor() ([]byte, []int)
- func (m *Post) GetCoordinate() *Location
- func (m *Post) GetEnvelope() isPost_Envelope
- func (m *Post) GetPostmark() *Postmark
- func (m *Post) GetResource() *Media
- func (m *Post) GetText() *Text
- func (m *Post) GetType() Type
- func (*Post) ProtoMessage()
- func (m *Post) Reset()
- func (m *Post) String() string
- func (m *Post) Validate() error
- func (m *Post) XXX_DiscardUnknown()
- func (m *Post) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Post) XXX_Merge(src proto.Message)
- func (*Post) XXX_OneofWrappers() []interface{}
- func (m *Post) XXX_Size() int
- func (m *Post) XXX_Unmarshal(b []byte) error
- type PostValidationError
- type Post_Coordinate
- type Post_Resource
- type Post_Text
- type Postbox
- func (*Postbox) Descriptor() ([]byte, []int)
- func (m *Postbox) GetPosts() []*Post
- func (*Postbox) ProtoMessage()
- func (m *Postbox) Reset()
- func (m *Postbox) String() string
- func (m *Postbox) Validate() error
- func (m *Postbox) XXX_DiscardUnknown()
- func (m *Postbox) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Postbox) XXX_Merge(src proto.Message)
- func (m *Postbox) XXX_Size() int
- func (m *Postbox) XXX_Unmarshal(b []byte) error
- type PostboxValidationError
- type Postmark
- func (*Postmark) Descriptor() ([]byte, []int)
- func (m *Postmark) GetCategory() Category
- func (m *Postmark) GetExpire() *duration.Duration
- func (m *Postmark) GetReceiver() uint64
- func (m *Postmark) GetSender() uint64
- func (m *Postmark) GetTimestamp() *timestamp.Timestamp
- func (m *Postmark) GetUniqueId() uint64
- func (*Postmark) ProtoMessage()
- func (m *Postmark) Reset()
- func (m *Postmark) String() string
- func (m *Postmark) Validate() error
- func (m *Postmark) XXX_DiscardUnknown()
- func (m *Postmark) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Postmark) XXX_Merge(src proto.Message)
- func (m *Postmark) XXX_Size() int
- func (m *Postmark) XXX_Unmarshal(b []byte) error
- type PostmarkValidationError
- type Receipts
- func (*Receipts) Descriptor() ([]byte, []int)
- func (m *Receipts) GetLocalIds() []*ClientId
- func (m *Receipts) GetPostmarks() []*Postmark
- func (*Receipts) ProtoMessage()
- func (m *Receipts) Reset()
- func (m *Receipts) String() string
- func (m *Receipts) Validate() error
- func (m *Receipts) XXX_DiscardUnknown()
- func (m *Receipts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Receipts) XXX_Merge(src proto.Message)
- func (m *Receipts) XXX_Size() int
- func (m *Receipts) XXX_Unmarshal(b []byte) error
- type ReceiptsValidationError
- type RoomClient
- type RoomServer
- type RoomServerOption
- func (*RoomServerOption) Descriptor() ([]byte, []int)
- func (m *RoomServerOption) GetHost() string
- func (m *RoomServerOption) GetPort() uint32
- func (m *RoomServerOption) GetSecure() bool
- func (*RoomServerOption) ProtoMessage()
- func (m *RoomServerOption) Reset()
- func (m *RoomServerOption) String() string
- func (m *RoomServerOption) Validate() error
- func (m *RoomServerOption) XXX_DiscardUnknown()
- func (m *RoomServerOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoomServerOption) XXX_Merge(src proto.Message)
- func (m *RoomServerOption) XXX_Size() int
- func (m *RoomServerOption) XXX_Unmarshal(b []byte) error
- type RoomServerOptionValidationError
- func (e RoomServerOptionValidationError) Cause() error
- func (e RoomServerOptionValidationError) Error() string
- func (e RoomServerOptionValidationError) ErrorName() string
- func (e RoomServerOptionValidationError) Field() string
- func (e RoomServerOptionValidationError) Key() bool
- func (e RoomServerOptionValidationError) Reason() string
- type Room_InteractClient
- type Room_InteractServer
- type Session
- func (*Session) Descriptor() ([]byte, []int)
- func (m *Session) GetCreatedAt() *timestamp.Timestamp
- func (m *Session) GetEntry() string
- func (m *Session) GetMetadata() *common.Metadata
- func (m *Session) GetType() SessionType
- func (*Session) ProtoMessage()
- func (m *Session) Reset()
- func (m *Session) String() string
- func (m *Session) Validate() error
- 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 SessionId
- func (*SessionId) Descriptor() ([]byte, []int)
- func (m *SessionId) GetAccount() uint64
- func (m *SessionId) GetDeviceId() string
- func (m *SessionId) GetType() SessionType
- func (*SessionId) ProtoMessage()
- func (m *SessionId) Reset()
- func (m *SessionId) String() string
- func (m *SessionId) Validate() error
- func (m *SessionId) XXX_DiscardUnknown()
- func (m *SessionId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SessionId) XXX_Merge(src proto.Message)
- func (m *SessionId) XXX_Size() int
- func (m *SessionId) XXX_Unmarshal(b []byte) error
- type SessionIdValidationError
- type SessionIds
- func (*SessionIds) Descriptor() ([]byte, []int)
- func (m *SessionIds) GetIds() []*SessionId
- func (*SessionIds) ProtoMessage()
- func (m *SessionIds) Reset()
- func (m *SessionIds) String() string
- func (m *SessionIds) Validate() error
- func (m *SessionIds) XXX_DiscardUnknown()
- func (m *SessionIds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SessionIds) XXX_Merge(src proto.Message)
- func (m *SessionIds) XXX_Size() int
- func (m *SessionIds) XXX_Unmarshal(b []byte) error
- type SessionIdsValidationError
- type SessionType
- type SessionValidationError
- type Sessions
- func (*Sessions) Descriptor() ([]byte, []int)
- func (m *Sessions) GetSessions() []*Session
- func (*Sessions) ProtoMessage()
- func (m *Sessions) Reset()
- func (m *Sessions) String() string
- func (m *Sessions) Validate() error
- func (m *Sessions) XXX_DiscardUnknown()
- func (m *Sessions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Sessions) XXX_Merge(src proto.Message)
- func (m *Sessions) XXX_Size() int
- func (m *Sessions) XXX_Unmarshal(b []byte) error
- type SessionsValidationError
- type Stream
- func (*Stream) Descriptor() ([]byte, []int)
- func (m *Stream) GetLocal() *ClientIds
- func (m *Stream) GetPayload() isStream_Payload
- func (m *Stream) GetPostbox() *Postbox
- func (m *Stream) GetReceipts() *Receipts
- func (m *Stream) GetSn() string
- func (m *Stream) GetTarget() uint64
- func (m *Stream) GetType() PayloadType
- func (*Stream) ProtoMessage()
- func (m *Stream) Reset()
- func (m *Stream) String() string
- func (m *Stream) Validate() error
- func (m *Stream) XXX_DiscardUnknown()
- func (m *Stream) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Stream) XXX_Merge(src proto.Message)
- func (*Stream) XXX_OneofWrappers() []interface{}
- func (m *Stream) XXX_Size() int
- func (m *Stream) XXX_Unmarshal(b []byte) error
- type StreamValidationError
- type Stream_Local
- type Stream_Postbox
- type Stream_Receipts
- type Tag
- func (*Tag) Descriptor() ([]byte, []int)
- func (m *Tag) GetName() string
- func (m *Tag) GetPrefixed() bool
- func (m *Tag) GetProduct() string
- func (*Tag) ProtoMessage()
- func (m *Tag) Reset()
- func (m *Tag) String() string
- func (m *Tag) Validate() error
- func (m *Tag) XXX_DiscardUnknown()
- func (m *Tag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Tag) XXX_Merge(src proto.Message)
- func (m *Tag) XXX_Size() int
- func (m *Tag) XXX_Unmarshal(b []byte) error
- type TagValidationError
- type Text
- func (*Text) Descriptor() ([]byte, []int)
- func (m *Text) GetContent() string
- func (*Text) ProtoMessage()
- func (m *Text) Reset()
- func (m *Text) String() string
- func (m *Text) Validate() error
- func (m *Text) XXX_DiscardUnknown()
- func (m *Text) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Text) XXX_Merge(src proto.Message)
- func (m *Text) XXX_Size() int
- func (m *Text) XXX_Unmarshal(b []byte) error
- type TextValidationError
- type Type
- type UnimplementedChatServer
- type UnimplementedInnerChatServer
- type UnimplementedInnerRouterServer
- type UnimplementedInnerSessionServer
- func (*UnimplementedInnerSessionServer) Close(ctx context.Context, req *SessionId) (*empty.Empty, error)
- func (*UnimplementedInnerSessionServer) Gets(ctx context.Context, req *SessionIds) (*Sessions, error)
- func (*UnimplementedInnerSessionServer) Open(ctx context.Context, req *Session) (*Sessions, error)
- type UnimplementedRoomServer
Constants ¶
const Default_RoomServerOption_Port uint32 = 443
const Default_RoomServerOption_Secure bool = true
Variables ¶
var Category_name = map[int32]string{
0: "CATEGORY_UNSPECIFIED",
1: "CATEGORY_PRIVATE",
2: "CATEGORY_GROUP",
3: "CATEGORY_CHANNEL",
4: "CATEGORY_ROOM",
}
var Category_value = map[string]int32{
"CATEGORY_UNSPECIFIED": 0,
"CATEGORY_PRIVATE": 1,
"CATEGORY_GROUP": 2,
"CATEGORY_CHANNEL": 3,
"CATEGORY_ROOM": 4,
}
var PayloadType_name = map[int32]string{
0: "PAYLOAD_TYPE_UNSPECIFIED",
1: "PAYLOAD_TYPE_SYNC",
2: "PAYLOAD_TYPE_MESSAGES",
3: "PAYLOAD_TYPE_RECEIPTS",
}
var PayloadType_value = map[string]int32{
"PAYLOAD_TYPE_UNSPECIFIED": 0,
"PAYLOAD_TYPE_SYNC": 1,
"PAYLOAD_TYPE_MESSAGES": 2,
"PAYLOAD_TYPE_RECEIPTS": 3,
}
var SessionType_name = map[int32]string{
0: "SESSION_TYPE_UNSPECIFIED",
1: "SESSION_TYPE_CHAT",
2: "SESSION_TYPE_ROOM",
}
var SessionType_value = map[string]int32{
"SESSION_TYPE_UNSPECIFIED": 0,
"SESSION_TYPE_CHAT": 1,
"SESSION_TYPE_ROOM": 2,
}
var Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "TYPE_TEXT",
2: "TYPE_AUDIO",
3: "TYPE_STICKER",
4: "TYPE_PHOTO",
5: "TYPE_VIDEO",
6: "TYPE_GIF",
7: "TYPE_FILE",
8: "TYPE_LOCATION",
9: "TYPE_CONTACT",
10: "TYPE_RECALL",
11: "TYPE_READ",
}
var Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"TYPE_TEXT": 1,
"TYPE_AUDIO": 2,
"TYPE_STICKER": 3,
"TYPE_PHOTO": 4,
"TYPE_VIDEO": 5,
"TYPE_GIF": 6,
"TYPE_FILE": 7,
"TYPE_LOCATION": 8,
"TYPE_CONTACT": 9,
"TYPE_RECALL": 10,
"TYPE_READ": 11,
}
Functions ¶
func RegisterChatHandler ¶
RegisterChatHandler registers the http handlers for service Chat to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterChatHandlerClient ¶
RegisterChatHandlerClient registers the http handlers for service Chat to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ChatClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ChatClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ChatClient" to call the correct interceptors.
func RegisterChatHandlerFromEndpoint ¶
func RegisterChatHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterChatHandlerFromEndpoint is same as RegisterChatHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterChatHandlerServer ¶
RegisterChatHandlerServer registers the http handlers for service Chat to "mux". UnaryRPC :call ChatServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterChatScopeServer ¶
func RegisterChatScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv ChatServer) error
Register scoped server.
func RegisterChatServer ¶
func RegisterChatServer(s *grpc.Server, srv ChatServer)
func RegisterChatWsHandlerServer ¶
func RegisterChatWsHandlerServer(mux *runtime.ServeMux, srv ChatServer, streamInterceptor grpc.StreamServerInterceptor) error
func RegisterInnerChatHandler ¶
func RegisterInnerChatHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterInnerChatHandler registers the http handlers for service InnerChat to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterInnerChatHandlerClient ¶
func RegisterInnerChatHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InnerChatClient) error
RegisterInnerChatHandlerClient registers the http handlers for service InnerChat to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "InnerChatClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "InnerChatClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "InnerChatClient" to call the correct interceptors.
func RegisterInnerChatHandlerFromEndpoint ¶
func RegisterInnerChatHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterInnerChatHandlerFromEndpoint is same as RegisterInnerChatHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterInnerChatHandlerServer ¶
func RegisterInnerChatHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InnerChatServer) error
RegisterInnerChatHandlerServer registers the http handlers for service InnerChat to "mux". UnaryRPC :call InnerChatServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterInnerChatScopeServer ¶
func RegisterInnerChatScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv InnerChatServer) error
Register scoped server.
func RegisterInnerChatServer ¶
func RegisterInnerChatServer(s *grpc.Server, srv InnerChatServer)
func RegisterInnerRouterScopeServer ¶
func RegisterInnerRouterScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv InnerRouterServer) error
Register scoped server.
func RegisterInnerRouterServer ¶
func RegisterInnerRouterServer(s *grpc.Server, srv InnerRouterServer)
func RegisterInnerSessionHandler ¶
func RegisterInnerSessionHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterInnerSessionHandler registers the http handlers for service InnerSession to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterInnerSessionHandlerClient ¶
func RegisterInnerSessionHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InnerSessionClient) error
RegisterInnerSessionHandlerClient registers the http handlers for service InnerSession to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "InnerSessionClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "InnerSessionClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "InnerSessionClient" to call the correct interceptors.
func RegisterInnerSessionHandlerFromEndpoint ¶
func RegisterInnerSessionHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterInnerSessionHandlerFromEndpoint is same as RegisterInnerSessionHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterInnerSessionHandlerServer ¶
func RegisterInnerSessionHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InnerSessionServer) error
RegisterInnerSessionHandlerServer registers the http handlers for service InnerSession to "mux". UnaryRPC :call InnerSessionServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterInnerSessionScopeServer ¶
func RegisterInnerSessionScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv InnerSessionServer) error
Register scoped server.
func RegisterInnerSessionServer ¶
func RegisterInnerSessionServer(s *grpc.Server, srv InnerSessionServer)
func RegisterRoomHandler ¶
RegisterRoomHandler registers the http handlers for service Room to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterRoomHandlerClient ¶
RegisterRoomHandlerClient registers the http handlers for service Room to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RoomClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RoomClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "RoomClient" to call the correct interceptors.
func RegisterRoomHandlerFromEndpoint ¶
func RegisterRoomHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterRoomHandlerFromEndpoint is same as RegisterRoomHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterRoomHandlerServer ¶
RegisterRoomHandlerServer registers the http handlers for service Room to "mux". UnaryRPC :call RoomServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterRoomScopeServer ¶
func RegisterRoomScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv RoomServer) error
Register scoped server.
func RegisterRoomServer ¶
func RegisterRoomServer(s *grpc.Server, srv RoomServer)
func RegisterRoomWsHandlerServer ¶
func RegisterRoomWsHandlerServer(mux *runtime.ServeMux, srv RoomServer, streamInterceptor grpc.StreamServerInterceptor) error
Types ¶
type Category ¶
type Category int32
Message category enums.
func (Category) EnumDescriptor ¶
func (*Category) UnmarshalJSON ¶
type ChatClient ¶
type ChatClient interface { // Chat streaming interaction. Interact(ctx context.Context, opts ...grpc.CallOption) (Chat_InteractClient, error) // Send chat message. Send(ctx context.Context, in *Post, opts ...grpc.CallOption) (*Postmark, error) }
ChatClient is the client API for Chat service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewChatClient ¶
func NewChatClient(cc *grpc.ClientConn) ChatClient
type ChatServer ¶
type ChatServer interface { // Chat streaming interaction. Interact(Chat_InteractServer) error // Send chat message. Send(context.Context, *Post) (*Postmark, error) }
ChatServer is the server API for Chat service.
type Chat_InteractClient ¶
type Chat_InteractServer ¶
type ClientId ¶
type ClientId struct { Category *Category `protobuf:"varint,1,req,name=category,enum=appootb.message.Category" json:"category,omitempty"` LastId *uint64 `protobuf:"varint,2,opt,name=last_id,json=lastId" json:"last_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Client local ID.
func (*ClientId) Descriptor ¶
func (*ClientId) GetCategory ¶
func (*ClientId) ProtoMessage ¶
func (*ClientId) ProtoMessage()
func (*ClientId) Validate ¶
Validate checks the field values on ClientId with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*ClientId) XXX_DiscardUnknown ¶
func (m *ClientId) XXX_DiscardUnknown()
func (*ClientId) XXX_Marshal ¶
func (*ClientId) XXX_Unmarshal ¶
type ClientIdValidationError ¶
type ClientIdValidationError struct {
// contains filtered or unexported fields
}
ClientIdValidationError is the validation error returned by ClientId.Validate if the designated constraints aren't met.
func (ClientIdValidationError) Cause ¶
func (e ClientIdValidationError) Cause() error
Cause function returns cause value.
func (ClientIdValidationError) Error ¶
func (e ClientIdValidationError) Error() string
Error satisfies the builtin error interface
func (ClientIdValidationError) ErrorName ¶
func (e ClientIdValidationError) ErrorName() string
ErrorName returns error name.
func (ClientIdValidationError) Field ¶
func (e ClientIdValidationError) Field() string
Field function returns field value.
func (ClientIdValidationError) Key ¶
func (e ClientIdValidationError) Key() bool
Key function returns key value.
func (ClientIdValidationError) Reason ¶
func (e ClientIdValidationError) Reason() string
Reason function returns reason value.
type ClientIds ¶
type ClientIds struct { Ids []*ClientId `protobuf:"bytes,1,rep,name=ids" json:"ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Client local IDs.
func (*ClientIds) Descriptor ¶
func (*ClientIds) ProtoMessage ¶
func (*ClientIds) ProtoMessage()
func (*ClientIds) Validate ¶
Validate checks the field values on ClientIds with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*ClientIds) XXX_DiscardUnknown ¶
func (m *ClientIds) XXX_DiscardUnknown()
func (*ClientIds) XXX_Marshal ¶
func (*ClientIds) XXX_Unmarshal ¶
type ClientIdsValidationError ¶
type ClientIdsValidationError struct {
// contains filtered or unexported fields
}
ClientIdsValidationError is the validation error returned by ClientIds.Validate if the designated constraints aren't met.
func (ClientIdsValidationError) Cause ¶
func (e ClientIdsValidationError) Cause() error
Cause function returns cause value.
func (ClientIdsValidationError) Error ¶
func (e ClientIdsValidationError) Error() string
Error satisfies the builtin error interface
func (ClientIdsValidationError) ErrorName ¶
func (e ClientIdsValidationError) ErrorName() string
ErrorName returns error name.
func (ClientIdsValidationError) Field ¶
func (e ClientIdsValidationError) Field() string
Field function returns field value.
func (ClientIdsValidationError) Key ¶
func (e ClientIdsValidationError) Key() bool
Key function returns key value.
func (ClientIdsValidationError) Reason ¶
func (e ClientIdsValidationError) Reason() string
Reason function returns reason value.
type Connections ¶
type Connections struct { Product *string `protobuf:"bytes,1,req,name=product" json:"product,omitempty"` UniqueIds []string `protobuf:"bytes,2,rep,name=unique_ids,json=uniqueIds" json:"unique_ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Connections.
func (*Connections) Descriptor ¶
func (*Connections) Descriptor() ([]byte, []int)
func (*Connections) GetProduct ¶
func (m *Connections) GetProduct() string
func (*Connections) GetUniqueIds ¶
func (m *Connections) GetUniqueIds() []string
func (*Connections) ProtoMessage ¶
func (*Connections) ProtoMessage()
func (*Connections) Reset ¶
func (m *Connections) Reset()
func (*Connections) String ¶
func (m *Connections) String() string
func (*Connections) Validate ¶
func (m *Connections) Validate() error
Validate checks the field values on Connections with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Connections) XXX_DiscardUnknown ¶
func (m *Connections) XXX_DiscardUnknown()
func (*Connections) XXX_Marshal ¶
func (m *Connections) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Connections) XXX_Merge ¶
func (m *Connections) XXX_Merge(src proto.Message)
func (*Connections) XXX_Size ¶
func (m *Connections) XXX_Size() int
func (*Connections) XXX_Unmarshal ¶
func (m *Connections) XXX_Unmarshal(b []byte) error
type ConnectionsValidationError ¶
type ConnectionsValidationError struct {
// contains filtered or unexported fields
}
ConnectionsValidationError is the validation error returned by Connections.Validate if the designated constraints aren't met.
func (ConnectionsValidationError) Cause ¶
func (e ConnectionsValidationError) Cause() error
Cause function returns cause value.
func (ConnectionsValidationError) Error ¶
func (e ConnectionsValidationError) Error() string
Error satisfies the builtin error interface
func (ConnectionsValidationError) ErrorName ¶
func (e ConnectionsValidationError) ErrorName() string
ErrorName returns error name.
func (ConnectionsValidationError) Field ¶
func (e ConnectionsValidationError) Field() string
Field function returns field value.
func (ConnectionsValidationError) Key ¶
func (e ConnectionsValidationError) Key() bool
Key function returns key value.
func (ConnectionsValidationError) Reason ¶
func (e ConnectionsValidationError) Reason() string
Reason function returns reason value.
type InnerChatClient ¶
type InnerChatClient interface { // Deliver message. Deliver(ctx context.Context, in *Package, opts ...grpc.CallOption) (*empty.Empty, error) // Kick the connection. Kick(ctx context.Context, in *Connections, opts ...grpc.CallOption) (*empty.Empty, error) }
InnerChatClient is the client API for InnerChat service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewInnerChatClient ¶
func NewInnerChatClient(cc *grpc.ClientConn) InnerChatClient
type InnerChatServer ¶
type InnerChatServer interface { // Deliver message. Deliver(context.Context, *Package) (*empty.Empty, error) // Kick the connection. Kick(context.Context, *Connections) (*empty.Empty, error) }
InnerChatServer is the server API for InnerChat service.
type InnerRouterClient ¶
type InnerRouterClient interface { }
InnerRouterClient is the client API for InnerRouter service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewInnerRouterClient ¶
func NewInnerRouterClient(cc *grpc.ClientConn) InnerRouterClient
type InnerRouterServer ¶
type InnerRouterServer interface { }
InnerRouterServer is the server API for InnerRouter service.
type InnerSessionClient ¶
type InnerSessionClient interface { // Add user session. Open(ctx context.Context, in *Session, opts ...grpc.CallOption) (*Sessions, error) // Close user session. Close(ctx context.Context, in *SessionId, opts ...grpc.CallOption) (*empty.Empty, error) // Get user sessions. Gets(ctx context.Context, in *SessionIds, opts ...grpc.CallOption) (*Sessions, error) }
InnerSessionClient is the client API for InnerSession service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewInnerSessionClient ¶
func NewInnerSessionClient(cc *grpc.ClientConn) InnerSessionClient
type InnerSessionServer ¶
type InnerSessionServer interface { // Add user session. Open(context.Context, *Session) (*Sessions, error) // Close user session. Close(context.Context, *SessionId) (*empty.Empty, error) // Get user sessions. Gets(context.Context, *SessionIds) (*Sessions, error) }
InnerSessionServer is the server API for InnerSession service.
type Location ¶
type Location struct { Latitude *float32 `protobuf:"fixed32,1,req,name=latitude" json:"latitude,omitempty"` Longitude *float32 `protobuf:"fixed32,2,req,name=longitude" json:"longitude,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Location coordinate.
func (*Location) Descriptor ¶
func (*Location) GetLatitude ¶
func (*Location) GetLongitude ¶
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) Validate ¶
Validate checks the field values on Location with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Location) XXX_DiscardUnknown ¶
func (m *Location) XXX_DiscardUnknown()
func (*Location) XXX_Marshal ¶
func (*Location) XXX_Unmarshal ¶
type LocationValidationError ¶
type LocationValidationError struct {
// contains filtered or unexported fields
}
LocationValidationError is the validation error returned by Location.Validate if the designated constraints aren't met.
func (LocationValidationError) Cause ¶
func (e LocationValidationError) Cause() error
Cause function returns cause value.
func (LocationValidationError) Error ¶
func (e LocationValidationError) Error() string
Error satisfies the builtin error interface
func (LocationValidationError) ErrorName ¶
func (e LocationValidationError) ErrorName() string
ErrorName returns error name.
func (LocationValidationError) Field ¶
func (e LocationValidationError) Field() string
Field function returns field value.
func (LocationValidationError) Key ¶
func (e LocationValidationError) Key() bool
Key function returns key value.
func (LocationValidationError) Reason ¶
func (e LocationValidationError) Reason() string
Reason function returns reason value.
type Media ¶
type Media struct { Url *string `protobuf:"bytes,1,req,name=url" json:"url,omitempty"` Thumbnail *string `protobuf:"bytes,2,opt,name=thumbnail" json:"thumbnail,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Media message.
func (*Media) Descriptor ¶
func (*Media) GetThumbnail ¶
func (*Media) ProtoMessage ¶
func (*Media) ProtoMessage()
func (*Media) Validate ¶
Validate checks the field values on Media with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Media) XXX_DiscardUnknown ¶
func (m *Media) XXX_DiscardUnknown()
func (*Media) XXX_Marshal ¶
func (*Media) XXX_Unmarshal ¶
type MediaValidationError ¶
type MediaValidationError struct {
// contains filtered or unexported fields
}
MediaValidationError is the validation error returned by Media.Validate if the designated constraints aren't met.
func (MediaValidationError) Cause ¶
func (e MediaValidationError) Cause() error
Cause function returns cause value.
func (MediaValidationError) Error ¶
func (e MediaValidationError) Error() string
Error satisfies the builtin error interface
func (MediaValidationError) ErrorName ¶
func (e MediaValidationError) ErrorName() string
ErrorName returns error name.
func (MediaValidationError) Field ¶
func (e MediaValidationError) Field() string
Field function returns field value.
func (MediaValidationError) Key ¶
func (e MediaValidationError) Key() bool
Key function returns key value.
func (MediaValidationError) Reason ¶
func (e MediaValidationError) Reason() string
Reason function returns reason value.
type Package ¶
type Package struct { // Target // // Types that are valid to be assigned to Target: // *Package_Tag // *Package_Conn Target isPackage_Target `protobuf_oneof:"target"` Sn *string `protobuf:"bytes,8,req,name=sn" json:"sn,omitempty"` Posts []*Post `protobuf:"bytes,9,rep,name=posts" json:"posts,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Router package.
func (*Package) Descriptor ¶
func (*Package) GetConn ¶
func (m *Package) GetConn() *Connections
func (*Package) ProtoMessage ¶
func (*Package) ProtoMessage()
func (*Package) Validate ¶
Validate checks the field values on Package with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Package) XXX_DiscardUnknown ¶
func (m *Package) XXX_DiscardUnknown()
func (*Package) XXX_Marshal ¶
func (*Package) XXX_OneofWrappers ¶
func (*Package) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Package) XXX_Unmarshal ¶
type PackageValidationError ¶
type PackageValidationError struct {
// contains filtered or unexported fields
}
PackageValidationError is the validation error returned by Package.Validate if the designated constraints aren't met.
func (PackageValidationError) Cause ¶
func (e PackageValidationError) Cause() error
Cause function returns cause value.
func (PackageValidationError) Error ¶
func (e PackageValidationError) Error() string
Error satisfies the builtin error interface
func (PackageValidationError) ErrorName ¶
func (e PackageValidationError) ErrorName() string
ErrorName returns error name.
func (PackageValidationError) Field ¶
func (e PackageValidationError) Field() string
Field function returns field value.
func (PackageValidationError) Key ¶
func (e PackageValidationError) Key() bool
Key function returns key value.
func (PackageValidationError) Reason ¶
func (e PackageValidationError) Reason() string
Reason function returns reason value.
type Package_Conn ¶
type Package_Conn struct {
Conn *Connections `protobuf:"bytes,2,opt,name=conn,oneof"`
}
type Package_Tag ¶
type Package_Tag struct {
Tag *Tag `protobuf:"bytes,1,opt,name=tag,oneof"`
}
type PayloadType ¶
type PayloadType int32
Message stream payload type.
const ( PayloadType_PAYLOAD_TYPE_UNSPECIFIED PayloadType = 0 PayloadType_PAYLOAD_TYPE_SYNC PayloadType = 1 PayloadType_PAYLOAD_TYPE_MESSAGES PayloadType = 2 PayloadType_PAYLOAD_TYPE_RECEIPTS PayloadType = 3 )
func (PayloadType) Enum ¶
func (x PayloadType) Enum() *PayloadType
func (PayloadType) EnumDescriptor ¶
func (PayloadType) EnumDescriptor() ([]byte, []int)
func (PayloadType) String ¶
func (x PayloadType) String() string
func (*PayloadType) UnmarshalJSON ¶
func (x *PayloadType) UnmarshalJSON(data []byte) error
type Post ¶
type Post struct { Postmark *Postmark `protobuf:"bytes,1,req,name=postmark" json:"postmark,omitempty"` Type *Type `protobuf:"varint,2,req,name=type,enum=appootb.message.Type" json:"type,omitempty"` // Message content // // Types that are valid to be assigned to Envelope: // *Post_Text // *Post_Resource // *Post_Coordinate Envelope isPost_Envelope `protobuf_oneof:"envelope"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Message post.
func (*Post) Descriptor ¶
func (*Post) GetCoordinate ¶
func (*Post) GetEnvelope ¶
func (m *Post) GetEnvelope() isPost_Envelope
func (*Post) GetPostmark ¶
func (*Post) GetResource ¶
func (*Post) ProtoMessage ¶
func (*Post) ProtoMessage()
func (*Post) Validate ¶
Validate checks the field values on Post with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Post) XXX_DiscardUnknown ¶
func (m *Post) XXX_DiscardUnknown()
func (*Post) XXX_OneofWrappers ¶
func (*Post) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Post) XXX_Unmarshal ¶
type PostValidationError ¶
type PostValidationError struct {
// contains filtered or unexported fields
}
PostValidationError is the validation error returned by Post.Validate if the designated constraints aren't met.
func (PostValidationError) Cause ¶
func (e PostValidationError) Cause() error
Cause function returns cause value.
func (PostValidationError) Error ¶
func (e PostValidationError) Error() string
Error satisfies the builtin error interface
func (PostValidationError) ErrorName ¶
func (e PostValidationError) ErrorName() string
ErrorName returns error name.
func (PostValidationError) Field ¶
func (e PostValidationError) Field() string
Field function returns field value.
func (PostValidationError) Key ¶
func (e PostValidationError) Key() bool
Key function returns key value.
func (PostValidationError) Reason ¶
func (e PostValidationError) Reason() string
Reason function returns reason value.
type Post_Coordinate ¶
type Post_Coordinate struct {
Coordinate *Location `protobuf:"bytes,12,opt,name=coordinate,oneof"`
}
type Post_Resource ¶
type Post_Resource struct {
Resource *Media `protobuf:"bytes,11,opt,name=resource,oneof"`
}
type Postbox ¶
type Postbox struct { Posts []*Post `protobuf:"bytes,1,rep,name=posts" json:"posts,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Message postbox.
func (*Postbox) Descriptor ¶
func (*Postbox) ProtoMessage ¶
func (*Postbox) ProtoMessage()
func (*Postbox) Validate ¶
Validate checks the field values on Postbox with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Postbox) XXX_DiscardUnknown ¶
func (m *Postbox) XXX_DiscardUnknown()
func (*Postbox) XXX_Marshal ¶
func (*Postbox) XXX_Unmarshal ¶
type PostboxValidationError ¶
type PostboxValidationError struct {
// contains filtered or unexported fields
}
PostboxValidationError is the validation error returned by Postbox.Validate if the designated constraints aren't met.
func (PostboxValidationError) Cause ¶
func (e PostboxValidationError) Cause() error
Cause function returns cause value.
func (PostboxValidationError) Error ¶
func (e PostboxValidationError) Error() string
Error satisfies the builtin error interface
func (PostboxValidationError) ErrorName ¶
func (e PostboxValidationError) ErrorName() string
ErrorName returns error name.
func (PostboxValidationError) Field ¶
func (e PostboxValidationError) Field() string
Field function returns field value.
func (PostboxValidationError) Key ¶
func (e PostboxValidationError) Key() bool
Key function returns key value.
func (PostboxValidationError) Reason ¶
func (e PostboxValidationError) Reason() string
Reason function returns reason value.
type Postmark ¶
type Postmark struct { Category *Category `protobuf:"varint,1,req,name=category,enum=appootb.message.Category" json:"category,omitempty"` Sender *uint64 `protobuf:"varint,2,req,name=sender" json:"sender,omitempty"` Receiver *uint64 `protobuf:"varint,3,req,name=receiver" json:"receiver,omitempty"` UniqueId *uint64 `protobuf:"varint,4,opt,name=unique_id,json=uniqueId" json:"unique_id,omitempty"` Expire *duration.Duration `protobuf:"bytes,8,opt,name=expire" json:"expire,omitempty"` Timestamp *timestamp.Timestamp `protobuf:"bytes,9,opt,name=timestamp" json:"timestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Message postmark.
func (*Postmark) Descriptor ¶
func (*Postmark) GetCategory ¶
func (*Postmark) GetReceiver ¶
func (*Postmark) GetTimestamp ¶
func (*Postmark) GetUniqueId ¶
func (*Postmark) ProtoMessage ¶
func (*Postmark) ProtoMessage()
func (*Postmark) Validate ¶
Validate checks the field values on Postmark with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Postmark) XXX_DiscardUnknown ¶
func (m *Postmark) XXX_DiscardUnknown()
func (*Postmark) XXX_Marshal ¶
func (*Postmark) XXX_Unmarshal ¶
type PostmarkValidationError ¶
type PostmarkValidationError struct {
// contains filtered or unexported fields
}
PostmarkValidationError is the validation error returned by Postmark.Validate if the designated constraints aren't met.
func (PostmarkValidationError) Cause ¶
func (e PostmarkValidationError) Cause() error
Cause function returns cause value.
func (PostmarkValidationError) Error ¶
func (e PostmarkValidationError) Error() string
Error satisfies the builtin error interface
func (PostmarkValidationError) ErrorName ¶
func (e PostmarkValidationError) ErrorName() string
ErrorName returns error name.
func (PostmarkValidationError) Field ¶
func (e PostmarkValidationError) Field() string
Field function returns field value.
func (PostmarkValidationError) Key ¶
func (e PostmarkValidationError) Key() bool
Key function returns key value.
func (PostmarkValidationError) Reason ¶
func (e PostmarkValidationError) Reason() string
Reason function returns reason value.
type Receipts ¶
type Receipts struct { LocalIds []*ClientId `protobuf:"bytes,1,rep,name=local_ids,json=localIds" json:"local_ids,omitempty"` Postmarks []*Postmark `protobuf:"bytes,2,rep,name=postmarks" json:"postmarks,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Message receipts.
func (*Receipts) Descriptor ¶
func (*Receipts) GetLocalIds ¶
func (*Receipts) GetPostmarks ¶
func (*Receipts) ProtoMessage ¶
func (*Receipts) ProtoMessage()
func (*Receipts) Validate ¶
Validate checks the field values on Receipts with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Receipts) XXX_DiscardUnknown ¶
func (m *Receipts) XXX_DiscardUnknown()
func (*Receipts) XXX_Marshal ¶
func (*Receipts) XXX_Unmarshal ¶
type ReceiptsValidationError ¶
type ReceiptsValidationError struct {
// contains filtered or unexported fields
}
ReceiptsValidationError is the validation error returned by Receipts.Validate if the designated constraints aren't met.
func (ReceiptsValidationError) Cause ¶
func (e ReceiptsValidationError) Cause() error
Cause function returns cause value.
func (ReceiptsValidationError) Error ¶
func (e ReceiptsValidationError) Error() string
Error satisfies the builtin error interface
func (ReceiptsValidationError) ErrorName ¶
func (e ReceiptsValidationError) ErrorName() string
ErrorName returns error name.
func (ReceiptsValidationError) Field ¶
func (e ReceiptsValidationError) Field() string
Field function returns field value.
func (ReceiptsValidationError) Key ¶
func (e ReceiptsValidationError) Key() bool
Key function returns key value.
func (ReceiptsValidationError) Reason ¶
func (e ReceiptsValidationError) Reason() string
Reason function returns reason value.
type RoomClient ¶
type RoomClient interface { // Get room connection server. Dispatch(ctx context.Context, in *common.UniqueId, opts ...grpc.CallOption) (*RoomServerOption, error) // Room streaming interaction. Interact(ctx context.Context, opts ...grpc.CallOption) (Room_InteractClient, error) // Send room message. Send(ctx context.Context, in *Post, opts ...grpc.CallOption) (*Postmark, error) }
RoomClient is the client API for Room service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRoomClient ¶
func NewRoomClient(cc *grpc.ClientConn) RoomClient
type RoomServer ¶
type RoomServer interface { // Get room connection server. Dispatch(context.Context, *common.UniqueId) (*RoomServerOption, error) // Room streaming interaction. Interact(Room_InteractServer) error // Send room message. Send(context.Context, *Post) (*Postmark, error) }
RoomServer is the server API for Room service.
type RoomServerOption ¶
type RoomServerOption struct { Host *string `protobuf:"bytes,1,req,name=host" json:"host,omitempty"` Port *uint32 `protobuf:"varint,2,opt,name=port,def=443" json:"port,omitempty"` Secure *bool `protobuf:"varint,3,opt,name=secure,def=1" json:"secure,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Room server connect option.
func (*RoomServerOption) Descriptor ¶
func (*RoomServerOption) Descriptor() ([]byte, []int)
func (*RoomServerOption) GetHost ¶
func (m *RoomServerOption) GetHost() string
func (*RoomServerOption) GetPort ¶
func (m *RoomServerOption) GetPort() uint32
func (*RoomServerOption) GetSecure ¶
func (m *RoomServerOption) GetSecure() bool
func (*RoomServerOption) ProtoMessage ¶
func (*RoomServerOption) ProtoMessage()
func (*RoomServerOption) Reset ¶
func (m *RoomServerOption) Reset()
func (*RoomServerOption) String ¶
func (m *RoomServerOption) String() string
func (*RoomServerOption) Validate ¶
func (m *RoomServerOption) Validate() error
Validate checks the field values on RoomServerOption with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*RoomServerOption) XXX_DiscardUnknown ¶
func (m *RoomServerOption) XXX_DiscardUnknown()
func (*RoomServerOption) XXX_Marshal ¶
func (m *RoomServerOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoomServerOption) XXX_Merge ¶
func (m *RoomServerOption) XXX_Merge(src proto.Message)
func (*RoomServerOption) XXX_Size ¶
func (m *RoomServerOption) XXX_Size() int
func (*RoomServerOption) XXX_Unmarshal ¶
func (m *RoomServerOption) XXX_Unmarshal(b []byte) error
type RoomServerOptionValidationError ¶
type RoomServerOptionValidationError struct {
// contains filtered or unexported fields
}
RoomServerOptionValidationError is the validation error returned by RoomServerOption.Validate if the designated constraints aren't met.
func (RoomServerOptionValidationError) Cause ¶
func (e RoomServerOptionValidationError) Cause() error
Cause function returns cause value.
func (RoomServerOptionValidationError) Error ¶
func (e RoomServerOptionValidationError) Error() string
Error satisfies the builtin error interface
func (RoomServerOptionValidationError) ErrorName ¶
func (e RoomServerOptionValidationError) ErrorName() string
ErrorName returns error name.
func (RoomServerOptionValidationError) Field ¶
func (e RoomServerOptionValidationError) Field() string
Field function returns field value.
func (RoomServerOptionValidationError) Key ¶
func (e RoomServerOptionValidationError) Key() bool
Key function returns key value.
func (RoomServerOptionValidationError) Reason ¶
func (e RoomServerOptionValidationError) Reason() string
Reason function returns reason value.
type Room_InteractClient ¶
type Room_InteractServer ¶
type Session ¶
type Session struct { Type *SessionType `protobuf:"varint,1,req,name=type,enum=appootb.message.SessionType" json:"type,omitempty"` Entry *string `protobuf:"bytes,2,req,name=entry" json:"entry,omitempty"` Metadata *common.Metadata `protobuf:"bytes,3,req,name=metadata" json:"metadata,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,req,name=created_at,json=createdAt" json:"created_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Account session.
func (*Session) Descriptor ¶
func (*Session) GetCreatedAt ¶
func (*Session) GetMetadata ¶
func (*Session) GetType ¶
func (m *Session) GetType() SessionType
func (*Session) ProtoMessage ¶
func (*Session) ProtoMessage()
func (*Session) Validate ¶
Validate checks the field values on Session with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Session) XXX_DiscardUnknown ¶
func (m *Session) XXX_DiscardUnknown()
func (*Session) XXX_Marshal ¶
func (*Session) XXX_Unmarshal ¶
type SessionId ¶
type SessionId struct { Type *SessionType `protobuf:"varint,1,req,name=type,enum=appootb.message.SessionType" json:"type,omitempty"` Account *uint64 `protobuf:"varint,2,req,name=account" json:"account,omitempty"` DeviceId *string `protobuf:"bytes,3,opt,name=device_id,json=deviceId" json:"device_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Account session ID.
func (*SessionId) Descriptor ¶
func (*SessionId) GetAccount ¶
func (*SessionId) GetDeviceId ¶
func (*SessionId) GetType ¶
func (m *SessionId) GetType() SessionType
func (*SessionId) ProtoMessage ¶
func (*SessionId) ProtoMessage()
func (*SessionId) Validate ¶
Validate checks the field values on SessionId with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*SessionId) XXX_DiscardUnknown ¶
func (m *SessionId) XXX_DiscardUnknown()
func (*SessionId) XXX_Marshal ¶
func (*SessionId) XXX_Unmarshal ¶
type SessionIdValidationError ¶
type SessionIdValidationError struct {
// contains filtered or unexported fields
}
SessionIdValidationError is the validation error returned by SessionId.Validate if the designated constraints aren't met.
func (SessionIdValidationError) Cause ¶
func (e SessionIdValidationError) Cause() error
Cause function returns cause value.
func (SessionIdValidationError) Error ¶
func (e SessionIdValidationError) Error() string
Error satisfies the builtin error interface
func (SessionIdValidationError) ErrorName ¶
func (e SessionIdValidationError) ErrorName() string
ErrorName returns error name.
func (SessionIdValidationError) Field ¶
func (e SessionIdValidationError) Field() string
Field function returns field value.
func (SessionIdValidationError) Key ¶
func (e SessionIdValidationError) Key() bool
Key function returns key value.
func (SessionIdValidationError) Reason ¶
func (e SessionIdValidationError) Reason() string
Reason function returns reason value.
type SessionIds ¶
type SessionIds struct { Ids []*SessionId `protobuf:"bytes,1,rep,name=ids" json:"ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Account session IDs.
func (*SessionIds) Descriptor ¶
func (*SessionIds) Descriptor() ([]byte, []int)
func (*SessionIds) GetIds ¶
func (m *SessionIds) GetIds() []*SessionId
func (*SessionIds) ProtoMessage ¶
func (*SessionIds) ProtoMessage()
func (*SessionIds) Reset ¶
func (m *SessionIds) Reset()
func (*SessionIds) String ¶
func (m *SessionIds) String() string
func (*SessionIds) Validate ¶
func (m *SessionIds) Validate() error
Validate checks the field values on SessionIds with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*SessionIds) XXX_DiscardUnknown ¶
func (m *SessionIds) XXX_DiscardUnknown()
func (*SessionIds) XXX_Marshal ¶
func (m *SessionIds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SessionIds) XXX_Merge ¶
func (m *SessionIds) XXX_Merge(src proto.Message)
func (*SessionIds) XXX_Size ¶
func (m *SessionIds) XXX_Size() int
func (*SessionIds) XXX_Unmarshal ¶
func (m *SessionIds) XXX_Unmarshal(b []byte) error
type SessionIdsValidationError ¶
type SessionIdsValidationError struct {
// contains filtered or unexported fields
}
SessionIdsValidationError is the validation error returned by SessionIds.Validate if the designated constraints aren't met.
func (SessionIdsValidationError) Cause ¶
func (e SessionIdsValidationError) Cause() error
Cause function returns cause value.
func (SessionIdsValidationError) Error ¶
func (e SessionIdsValidationError) Error() string
Error satisfies the builtin error interface
func (SessionIdsValidationError) ErrorName ¶
func (e SessionIdsValidationError) ErrorName() string
ErrorName returns error name.
func (SessionIdsValidationError) Field ¶
func (e SessionIdsValidationError) Field() string
Field function returns field value.
func (SessionIdsValidationError) Key ¶
func (e SessionIdsValidationError) Key() bool
Key function returns key value.
func (SessionIdsValidationError) Reason ¶
func (e SessionIdsValidationError) Reason() string
Reason function returns reason value.
type SessionType ¶
type SessionType int32
Account session type.
const ( SessionType_SESSION_TYPE_UNSPECIFIED SessionType = 0 SessionType_SESSION_TYPE_CHAT SessionType = 1 SessionType_SESSION_TYPE_ROOM SessionType = 2 )
func (SessionType) Enum ¶
func (x SessionType) Enum() *SessionType
func (SessionType) EnumDescriptor ¶
func (SessionType) EnumDescriptor() ([]byte, []int)
func (SessionType) String ¶
func (x SessionType) String() string
func (*SessionType) UnmarshalJSON ¶
func (x *SessionType) UnmarshalJSON(data []byte) error
type SessionValidationError ¶
type SessionValidationError struct {
// contains filtered or unexported fields
}
SessionValidationError is the validation error returned by Session.Validate if the designated constraints aren't met.
func (SessionValidationError) Cause ¶
func (e SessionValidationError) Cause() error
Cause function returns cause value.
func (SessionValidationError) Error ¶
func (e SessionValidationError) Error() string
Error satisfies the builtin error interface
func (SessionValidationError) ErrorName ¶
func (e SessionValidationError) ErrorName() string
ErrorName returns error name.
func (SessionValidationError) Field ¶
func (e SessionValidationError) Field() string
Field function returns field value.
func (SessionValidationError) Key ¶
func (e SessionValidationError) Key() bool
Key function returns key value.
func (SessionValidationError) Reason ¶
func (e SessionValidationError) Reason() string
Reason function returns reason value.
type Sessions ¶
type Sessions struct { Sessions []*Session `protobuf:"bytes,1,rep,name=sessions" json:"sessions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Account sessions.
func (*Sessions) Descriptor ¶
func (*Sessions) GetSessions ¶
func (*Sessions) ProtoMessage ¶
func (*Sessions) ProtoMessage()
func (*Sessions) Validate ¶
Validate checks the field values on Sessions with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Sessions) XXX_DiscardUnknown ¶
func (m *Sessions) XXX_DiscardUnknown()
func (*Sessions) XXX_Marshal ¶
func (*Sessions) XXX_Unmarshal ¶
type SessionsValidationError ¶
type SessionsValidationError struct {
// contains filtered or unexported fields
}
SessionsValidationError is the validation error returned by Sessions.Validate if the designated constraints aren't met.
func (SessionsValidationError) Cause ¶
func (e SessionsValidationError) Cause() error
Cause function returns cause value.
func (SessionsValidationError) Error ¶
func (e SessionsValidationError) Error() string
Error satisfies the builtin error interface
func (SessionsValidationError) ErrorName ¶
func (e SessionsValidationError) ErrorName() string
ErrorName returns error name.
func (SessionsValidationError) Field ¶
func (e SessionsValidationError) Field() string
Field function returns field value.
func (SessionsValidationError) Key ¶
func (e SessionsValidationError) Key() bool
Key function returns key value.
func (SessionsValidationError) Reason ¶
func (e SessionsValidationError) Reason() string
Reason function returns reason value.
type Stream ¶
type Stream struct { Sn *string `protobuf:"bytes,1,req,name=sn" json:"sn,omitempty"` Target *uint64 `protobuf:"varint,2,opt,name=target" json:"target,omitempty"` Type *PayloadType `protobuf:"varint,3,req,name=type,enum=appootb.message.PayloadType" json:"type,omitempty"` // Payload data // // Types that are valid to be assigned to Payload: // *Stream_Local // *Stream_Postbox // *Stream_Receipts Payload isStream_Payload `protobuf_oneof:"payload"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Message streaming.
func (*Stream) Descriptor ¶
func (*Stream) GetPayload ¶
func (m *Stream) GetPayload() isStream_Payload
func (*Stream) GetPostbox ¶
func (*Stream) GetReceipts ¶
func (*Stream) GetType ¶
func (m *Stream) GetType() PayloadType
func (*Stream) ProtoMessage ¶
func (*Stream) ProtoMessage()
func (*Stream) Validate ¶
Validate checks the field values on Stream with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Stream) XXX_DiscardUnknown ¶
func (m *Stream) XXX_DiscardUnknown()
func (*Stream) XXX_Marshal ¶
func (*Stream) XXX_OneofWrappers ¶
func (*Stream) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Stream) XXX_Unmarshal ¶
type StreamValidationError ¶
type StreamValidationError struct {
// contains filtered or unexported fields
}
StreamValidationError is the validation error returned by Stream.Validate if the designated constraints aren't met.
func (StreamValidationError) Cause ¶
func (e StreamValidationError) Cause() error
Cause function returns cause value.
func (StreamValidationError) Error ¶
func (e StreamValidationError) Error() string
Error satisfies the builtin error interface
func (StreamValidationError) ErrorName ¶
func (e StreamValidationError) ErrorName() string
ErrorName returns error name.
func (StreamValidationError) Field ¶
func (e StreamValidationError) Field() string
Field function returns field value.
func (StreamValidationError) Key ¶
func (e StreamValidationError) Key() bool
Key function returns key value.
func (StreamValidationError) Reason ¶
func (e StreamValidationError) Reason() string
Reason function returns reason value.
type Stream_Local ¶
type Stream_Local struct {
Local *ClientIds `protobuf:"bytes,10,opt,name=local,oneof"`
}
type Stream_Postbox ¶
type Stream_Postbox struct {
Postbox *Postbox `protobuf:"bytes,11,opt,name=postbox,oneof"`
}
type Stream_Receipts ¶
type Stream_Receipts struct {
Receipts *Receipts `protobuf:"bytes,12,opt,name=receipts,oneof"`
}
type Tag ¶
type Tag struct { Product *string `protobuf:"bytes,1,req,name=product" json:"product,omitempty"` Name *string `protobuf:"bytes,2,req,name=name" json:"name,omitempty"` Prefixed *bool `protobuf:"varint,3,opt,name=prefixed" json:"prefixed,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Connection tags.
func (*Tag) Descriptor ¶
func (*Tag) GetPrefixed ¶
func (*Tag) GetProduct ¶
func (*Tag) ProtoMessage ¶
func (*Tag) ProtoMessage()
func (*Tag) Validate ¶
Validate checks the field values on Tag with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Tag) XXX_DiscardUnknown ¶
func (m *Tag) XXX_DiscardUnknown()
func (*Tag) XXX_Unmarshal ¶
type TagValidationError ¶
type TagValidationError struct {
// contains filtered or unexported fields
}
TagValidationError is the validation error returned by Tag.Validate if the designated constraints aren't met.
func (TagValidationError) Cause ¶
func (e TagValidationError) Cause() error
Cause function returns cause value.
func (TagValidationError) Error ¶
func (e TagValidationError) Error() string
Error satisfies the builtin error interface
func (TagValidationError) ErrorName ¶
func (e TagValidationError) ErrorName() string
ErrorName returns error name.
func (TagValidationError) Field ¶
func (e TagValidationError) Field() string
Field function returns field value.
func (TagValidationError) Key ¶
func (e TagValidationError) Key() bool
Key function returns key value.
func (TagValidationError) Reason ¶
func (e TagValidationError) Reason() string
Reason function returns reason value.
type Text ¶
type Text struct { Content *string `protobuf:"bytes,1,req,name=content" json:"content,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Text message.
func (*Text) Descriptor ¶
func (*Text) GetContent ¶
func (*Text) ProtoMessage ¶
func (*Text) ProtoMessage()
func (*Text) Validate ¶
Validate checks the field values on Text with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Text) XXX_DiscardUnknown ¶
func (m *Text) XXX_DiscardUnknown()
func (*Text) XXX_Unmarshal ¶
type TextValidationError ¶
type TextValidationError struct {
// contains filtered or unexported fields
}
TextValidationError is the validation error returned by Text.Validate if the designated constraints aren't met.
func (TextValidationError) Cause ¶
func (e TextValidationError) Cause() error
Cause function returns cause value.
func (TextValidationError) Error ¶
func (e TextValidationError) Error() string
Error satisfies the builtin error interface
func (TextValidationError) ErrorName ¶
func (e TextValidationError) ErrorName() string
ErrorName returns error name.
func (TextValidationError) Field ¶
func (e TextValidationError) Field() string
Field function returns field value.
func (TextValidationError) Key ¶
func (e TextValidationError) Key() bool
Key function returns key value.
func (TextValidationError) Reason ¶
func (e TextValidationError) Reason() string
Reason function returns reason value.
type Type ¶
type Type int32
Message type enums.
const ( Type_TYPE_UNSPECIFIED Type = 0 Type_TYPE_TEXT Type = 1 Type_TYPE_AUDIO Type = 2 Type_TYPE_STICKER Type = 3 Type_TYPE_PHOTO Type = 4 Type_TYPE_VIDEO Type = 5 Type_TYPE_GIF Type = 6 Type_TYPE_FILE Type = 7 Type_TYPE_LOCATION Type = 8 Type_TYPE_CONTACT Type = 9 Type_TYPE_RECALL Type = 10 Type_TYPE_READ Type = 11 )
func (Type) EnumDescriptor ¶
func (*Type) UnmarshalJSON ¶
type UnimplementedChatServer ¶
type UnimplementedChatServer struct { }
UnimplementedChatServer can be embedded to have forward compatible implementations.
func (*UnimplementedChatServer) Interact ¶
func (*UnimplementedChatServer) Interact(srv Chat_InteractServer) error
type UnimplementedInnerChatServer ¶
type UnimplementedInnerChatServer struct { }
UnimplementedInnerChatServer can be embedded to have forward compatible implementations.
func (*UnimplementedInnerChatServer) Kick ¶
func (*UnimplementedInnerChatServer) Kick(ctx context.Context, req *Connections) (*empty.Empty, error)
type UnimplementedInnerRouterServer ¶
type UnimplementedInnerRouterServer struct { }
UnimplementedInnerRouterServer can be embedded to have forward compatible implementations.
type UnimplementedInnerSessionServer ¶
type UnimplementedInnerSessionServer struct { }
UnimplementedInnerSessionServer can be embedded to have forward compatible implementations.
func (*UnimplementedInnerSessionServer) Gets ¶
func (*UnimplementedInnerSessionServer) Gets(ctx context.Context, req *SessionIds) (*Sessions, error)
type UnimplementedRoomServer ¶
type UnimplementedRoomServer struct { }
UnimplementedRoomServer can be embedded to have forward compatible implementations.
func (*UnimplementedRoomServer) Dispatch ¶
func (*UnimplementedRoomServer) Dispatch(ctx context.Context, req *common.UniqueId) (*RoomServerOption, error)
func (*UnimplementedRoomServer) Interact ¶
func (*UnimplementedRoomServer) Interact(srv Room_InteractServer) error
Source Files
¶
- chat.pb.auth.go
- chat.pb.go
- chat.pb.gw.go
- chat.pb.validate.go
- include.pb.auth.go
- include.pb.go
- include.pb.validate.go
- inner_chat.pb.auth.go
- inner_chat.pb.go
- inner_chat.pb.gw.go
- inner_chat.pb.validate.go
- inner_router.pb.auth.go
- inner_router.pb.go
- inner_router.pb.validate.go
- inner_session.pb.auth.go
- inner_session.pb.go
- inner_session.pb.gw.go
- inner_session.pb.validate.go
- room.pb.auth.go
- room.pb.go
- room.pb.gw.go
- room.pb.validate.go