Documentation ¶
Index ¶
- func RegisterRPCStatusServer(s *grpc.Server, srv RPCStatusServer)
- type Int32
- func (*Int32) Descriptor() ([]byte, []int)
- func (m *Int32) GetV() int32
- func (*Int32) ProtoMessage()
- func (m *Int32) Reset()
- func (m *Int32) String() string
- func (m *Int32) XXX_DiscardUnknown()
- func (m *Int32) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Int32) XXX_Merge(src proto.Message)
- func (m *Int32) XXX_Size() int
- func (m *Int32) XXX_Unmarshal(b []byte) error
- type Int32List
- func (*Int32List) Descriptor() ([]byte, []int)
- func (m *Int32List) GetVlist() []int32
- func (*Int32List) ProtoMessage()
- func (m *Int32List) Reset()
- func (m *Int32List) String() string
- func (m *Int32List) XXX_DiscardUnknown()
- func (m *Int32List) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Int32List) XXX_Merge(src proto.Message)
- func (m *Int32List) XXX_Size() int
- func (m *Int32List) XXX_Unmarshal(b []byte) error
- type Int64List
- func (*Int64List) Descriptor() ([]byte, []int)
- func (m *Int64List) GetVlist() []int64
- func (*Int64List) ProtoMessage()
- func (m *Int64List) Reset()
- func (m *Int64List) String() string
- func (m *Int64List) XXX_DiscardUnknown()
- func (m *Int64List) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Int64List) XXX_Merge(src proto.Message)
- func (m *Int64List) XXX_Size() int
- func (m *Int64List) XXX_Unmarshal(b []byte) error
- type RPCStatusClient
- type RPCStatusServer
- type SessionEntry
- func (*SessionEntry) Descriptor() ([]byte, []int)
- func (m *SessionEntry) GetAuthKeyId() int64
- func (m *SessionEntry) GetExpired() int64
- func (m *SessionEntry) GetLayer() int32
- func (m *SessionEntry) GetServerId() int32
- func (m *SessionEntry) GetUserId() int32
- func (*SessionEntry) ProtoMessage()
- func (m *SessionEntry) Reset()
- func (m *SessionEntry) String() string
- func (m *SessionEntry) XXX_DiscardUnknown()
- func (m *SessionEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SessionEntry) XXX_Merge(src proto.Message)
- func (m *SessionEntry) XXX_Size() int
- func (m *SessionEntry) XXX_Unmarshal(b []byte) error
- type SessionEntryList
- func (*SessionEntryList) Descriptor() ([]byte, []int)
- func (m *SessionEntryList) GetSessions() []*SessionEntry
- func (*SessionEntryList) ProtoMessage()
- func (m *SessionEntryList) Reset()
- func (m *SessionEntryList) String() string
- func (m *SessionEntryList) XXX_DiscardUnknown()
- func (m *SessionEntryList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SessionEntryList) XXX_Merge(src proto.Message)
- func (m *SessionEntryList) XXX_Size() int
- func (m *SessionEntryList) XXX_Unmarshal(b []byte) error
- type UsersSessionEntryList
- func (*UsersSessionEntryList) Descriptor() ([]byte, []int)
- func (m *UsersSessionEntryList) GetUsersSessions() map[int32]*SessionEntryList
- func (*UsersSessionEntryList) ProtoMessage()
- func (m *UsersSessionEntryList) Reset()
- func (m *UsersSessionEntryList) String() string
- func (m *UsersSessionEntryList) XXX_DiscardUnknown()
- func (m *UsersSessionEntryList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UsersSessionEntryList) XXX_Merge(src proto.Message)
- func (m *UsersSessionEntryList) XXX_Size() int
- func (m *UsersSessionEntryList) XXX_Unmarshal(b []byte) error
- type Void
- func (*Void) Descriptor() ([]byte, []int)
- func (*Void) ProtoMessage()
- func (m *Void) Reset()
- func (m *Void) String() string
- func (m *Void) XXX_DiscardUnknown()
- func (m *Void) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Void) XXX_Merge(src proto.Message)
- func (m *Void) XXX_Size() int
- func (m *Void) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRPCStatusServer ¶
func RegisterRPCStatusServer(s *grpc.Server, srv RPCStatusServer)
Types ¶
type Int32 ¶
type Int32 struct { V int32 `protobuf:"varint,1,opt,name=v,proto3" json:"v,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
//////////////////////////////////////////////////////////////////////////////////////
func (*Int32) Descriptor ¶
func (*Int32) ProtoMessage ¶
func (*Int32) ProtoMessage()
func (*Int32) XXX_DiscardUnknown ¶
func (m *Int32) XXX_DiscardUnknown()
func (*Int32) XXX_Marshal ¶
func (*Int32) XXX_Unmarshal ¶
type Int32List ¶
type Int32List struct { Vlist []int32 `protobuf:"varint,1,rep,packed,name=vlist,proto3" json:"vlist,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Int32List) Descriptor ¶
func (*Int32List) ProtoMessage ¶
func (*Int32List) ProtoMessage()
func (*Int32List) XXX_DiscardUnknown ¶
func (m *Int32List) XXX_DiscardUnknown()
func (*Int32List) XXX_Marshal ¶
func (*Int32List) XXX_Unmarshal ¶
type Int64List ¶
type Int64List struct { Vlist []int64 `protobuf:"varint,1,rep,packed,name=vlist,proto3" json:"vlist,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Int64List) Descriptor ¶
func (*Int64List) ProtoMessage ¶
func (*Int64List) ProtoMessage()
func (*Int64List) XXX_DiscardUnknown ¶
func (m *Int64List) XXX_DiscardUnknown()
func (*Int64List) XXX_Marshal ¶
func (*Int64List) XXX_Unmarshal ¶
type RPCStatusClient ¶
type RPCStatusClient interface { SetSessionOnline(ctx context.Context, in *SessionEntry, opts ...grpc.CallOption) (*Void, error) SetSessionOffline(ctx context.Context, in *SessionEntry, opts ...grpc.CallOption) (*Void, error) GetUserOnlineSessions(ctx context.Context, in *Int32, opts ...grpc.CallOption) (*SessionEntryList, error) GetUsersOnlineSessionsList(ctx context.Context, in *Int32List, opts ...grpc.CallOption) (*UsersSessionEntryList, error) }
RPCStatusClient is the client API for RPCStatus service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRPCStatusClient ¶
func NewRPCStatusClient(cc *grpc.ClientConn) RPCStatusClient
type RPCStatusServer ¶
type RPCStatusServer interface { SetSessionOnline(context.Context, *SessionEntry) (*Void, error) SetSessionOffline(context.Context, *SessionEntry) (*Void, error) GetUserOnlineSessions(context.Context, *Int32) (*SessionEntryList, error) GetUsersOnlineSessionsList(context.Context, *Int32List) (*UsersSessionEntryList, error) }
RPCStatusServer is the server API for RPCStatus service.
type SessionEntry ¶
type SessionEntry struct { UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` ServerId int32 `protobuf:"varint,2,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` AuthKeyId int64 `protobuf:"varint,3,opt,name=auth_key_id,json=authKeyId,proto3" json:"auth_key_id,omitempty"` Expired int64 `protobuf:"varint,4,opt,name=expired,proto3" json:"expired,omitempty"` Layer int32 `protobuf:"varint,5,opt,name=layer,proto3" json:"layer,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
//////////////////////////////////////////////////////////////////////////////////////
func (*SessionEntry) Descriptor ¶
func (*SessionEntry) Descriptor() ([]byte, []int)
func (*SessionEntry) GetAuthKeyId ¶
func (m *SessionEntry) GetAuthKeyId() int64
func (*SessionEntry) GetExpired ¶
func (m *SessionEntry) GetExpired() int64
func (*SessionEntry) GetLayer ¶
func (m *SessionEntry) GetLayer() int32
func (*SessionEntry) GetServerId ¶
func (m *SessionEntry) GetServerId() int32
func (*SessionEntry) GetUserId ¶
func (m *SessionEntry) GetUserId() int32
func (*SessionEntry) ProtoMessage ¶
func (*SessionEntry) ProtoMessage()
func (*SessionEntry) Reset ¶
func (m *SessionEntry) Reset()
func (*SessionEntry) String ¶
func (m *SessionEntry) String() string
func (*SessionEntry) XXX_DiscardUnknown ¶
func (m *SessionEntry) XXX_DiscardUnknown()
func (*SessionEntry) XXX_Marshal ¶
func (m *SessionEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SessionEntry) XXX_Merge ¶
func (dst *SessionEntry) XXX_Merge(src proto.Message)
func (*SessionEntry) XXX_Size ¶
func (m *SessionEntry) XXX_Size() int
func (*SessionEntry) XXX_Unmarshal ¶
func (m *SessionEntry) XXX_Unmarshal(b []byte) error
type SessionEntryList ¶
type SessionEntryList struct { Sessions []*SessionEntry `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SessionEntryList) Descriptor ¶
func (*SessionEntryList) Descriptor() ([]byte, []int)
func (*SessionEntryList) GetSessions ¶
func (m *SessionEntryList) GetSessions() []*SessionEntry
func (*SessionEntryList) ProtoMessage ¶
func (*SessionEntryList) ProtoMessage()
func (*SessionEntryList) Reset ¶
func (m *SessionEntryList) Reset()
func (*SessionEntryList) String ¶
func (m *SessionEntryList) String() string
func (*SessionEntryList) XXX_DiscardUnknown ¶
func (m *SessionEntryList) XXX_DiscardUnknown()
func (*SessionEntryList) XXX_Marshal ¶
func (m *SessionEntryList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SessionEntryList) XXX_Merge ¶
func (dst *SessionEntryList) XXX_Merge(src proto.Message)
func (*SessionEntryList) XXX_Size ¶
func (m *SessionEntryList) XXX_Size() int
func (*SessionEntryList) XXX_Unmarshal ¶
func (m *SessionEntryList) XXX_Unmarshal(b []byte) error
type UsersSessionEntryList ¶
type UsersSessionEntryList struct { UsersSessions map[int32]*SessionEntryList `` /* 189-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UsersSessionEntryList) Descriptor ¶
func (*UsersSessionEntryList) Descriptor() ([]byte, []int)
func (*UsersSessionEntryList) GetUsersSessions ¶
func (m *UsersSessionEntryList) GetUsersSessions() map[int32]*SessionEntryList
func (*UsersSessionEntryList) ProtoMessage ¶
func (*UsersSessionEntryList) ProtoMessage()
func (*UsersSessionEntryList) Reset ¶
func (m *UsersSessionEntryList) Reset()
func (*UsersSessionEntryList) String ¶
func (m *UsersSessionEntryList) String() string
func (*UsersSessionEntryList) XXX_DiscardUnknown ¶
func (m *UsersSessionEntryList) XXX_DiscardUnknown()
func (*UsersSessionEntryList) XXX_Marshal ¶
func (m *UsersSessionEntryList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UsersSessionEntryList) XXX_Merge ¶
func (dst *UsersSessionEntryList) XXX_Merge(src proto.Message)
func (*UsersSessionEntryList) XXX_Size ¶
func (m *UsersSessionEntryList) XXX_Size() int
func (*UsersSessionEntryList) XXX_Unmarshal ¶
func (m *UsersSessionEntryList) XXX_Unmarshal(b []byte) error
type Void ¶
type Void struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Void) Descriptor ¶
func (*Void) ProtoMessage ¶
func (*Void) ProtoMessage()
func (*Void) XXX_DiscardUnknown ¶
func (m *Void) XXX_DiscardUnknown()
func (*Void) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.