Documentation ¶
Overview ¶
Package console is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterConsoleHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterConsoleHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ConsoleClient) error
- func RegisterConsoleHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterConsoleHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ConsoleServer) error
- func RegisterConsoleServer(s *grpc.Server, srv ConsoleServer)
- type Account
- type AccountDeleteRequest
- func (*AccountDeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AccountDeleteRequest) GetId() string
- func (x *AccountDeleteRequest) GetRecordDeletion() *wrappers.BoolValue
- func (*AccountDeleteRequest) ProtoMessage()
- func (x *AccountDeleteRequest) ProtoReflect() protoreflect.Message
- func (x *AccountDeleteRequest) Reset()
- func (x *AccountDeleteRequest) String() string
- type AccountExport
- func (*AccountExport) Descriptor() ([]byte, []int)deprecated
- func (x *AccountExport) GetAccount() *api.Account
- func (x *AccountExport) GetFriends() []*api.Friend
- func (x *AccountExport) GetGroups() []*api.Group
- func (x *AccountExport) GetLeaderboardRecords() []*api.LeaderboardRecord
- func (x *AccountExport) GetMessages() []*api.ChannelMessage
- func (x *AccountExport) GetNotifications() []*api.Notification
- func (x *AccountExport) GetObjects() []*api.StorageObject
- func (x *AccountExport) GetWalletLedgers() []*WalletLedger
- func (*AccountExport) ProtoMessage()
- func (x *AccountExport) ProtoReflect() protoreflect.Message
- func (x *AccountExport) Reset()
- func (x *AccountExport) String() string
- type AccountId
- type AuthenticateRequest
- func (*AuthenticateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateRequest) GetPassword() string
- func (x *AuthenticateRequest) GetUsername() string
- func (*AuthenticateRequest) ProtoMessage()
- func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message
- func (x *AuthenticateRequest) Reset()
- func (x *AuthenticateRequest) String() string
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetConfig() string
- func (x *Config) GetServerVersion() string
- func (x *Config) GetWarnings() []*Config_Warning
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type Config_Warning
- func (*Config_Warning) Descriptor() ([]byte, []int)deprecated
- func (x *Config_Warning) GetField() string
- func (x *Config_Warning) GetMessage() string
- func (*Config_Warning) ProtoMessage()
- func (x *Config_Warning) ProtoReflect() protoreflect.Message
- func (x *Config_Warning) Reset()
- func (x *Config_Warning) String() string
- type ConsoleClient
- type ConsoleServer
- type ConsoleSession
- type DeleteFriendRequest
- func (*DeleteFriendRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteFriendRequest) GetFriendId() string
- func (x *DeleteFriendRequest) GetId() string
- func (*DeleteFriendRequest) ProtoMessage()
- func (x *DeleteFriendRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteFriendRequest) Reset()
- func (x *DeleteFriendRequest) String() string
- type DeleteGroupUserRequest
- func (*DeleteGroupUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteGroupUserRequest) GetGroupId() string
- func (x *DeleteGroupUserRequest) GetId() string
- func (*DeleteGroupUserRequest) ProtoMessage()
- func (x *DeleteGroupUserRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteGroupUserRequest) Reset()
- func (x *DeleteGroupUserRequest) String() string
- type DeleteStorageObjectRequest
- func (*DeleteStorageObjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteStorageObjectRequest) GetCollection() string
- func (x *DeleteStorageObjectRequest) GetKey() string
- func (x *DeleteStorageObjectRequest) GetUserId() string
- func (x *DeleteStorageObjectRequest) GetVersion() string
- func (*DeleteStorageObjectRequest) ProtoMessage()
- func (x *DeleteStorageObjectRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteStorageObjectRequest) Reset()
- func (x *DeleteStorageObjectRequest) String() string
- type DeleteWalletLedgerRequest
- func (*DeleteWalletLedgerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteWalletLedgerRequest) GetId() string
- func (x *DeleteWalletLedgerRequest) GetWalletId() string
- func (*DeleteWalletLedgerRequest) ProtoMessage()
- func (x *DeleteWalletLedgerRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteWalletLedgerRequest) Reset()
- func (x *DeleteWalletLedgerRequest) String() string
- type ListStorageRequest
- func (*ListStorageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListStorageRequest) GetUserId() string
- func (*ListStorageRequest) ProtoMessage()
- func (x *ListStorageRequest) ProtoReflect() protoreflect.Message
- func (x *ListStorageRequest) Reset()
- func (x *ListStorageRequest) String() string
- type ListUsersRequest
- func (*ListUsersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListUsersRequest) GetBanned() bool
- func (x *ListUsersRequest) GetFilter() string
- func (x *ListUsersRequest) GetTombstones() bool
- func (*ListUsersRequest) ProtoMessage()
- func (x *ListUsersRequest) ProtoReflect() protoreflect.Message
- func (x *ListUsersRequest) Reset()
- func (x *ListUsersRequest) String() string
- type StatusList
- type StatusList_Status
- func (*StatusList_Status) Descriptor() ([]byte, []int)deprecated
- func (x *StatusList_Status) GetAvgInputKbs() float64
- func (x *StatusList_Status) GetAvgLatencyMs() float64
- func (x *StatusList_Status) GetAvgOutputKbs() float64
- func (x *StatusList_Status) GetAvgRateSec() float64
- func (x *StatusList_Status) GetGoroutineCount() int32
- func (x *StatusList_Status) GetHealth() int32
- func (x *StatusList_Status) GetMatchCount() int32
- func (x *StatusList_Status) GetName() string
- func (x *StatusList_Status) GetPresenceCount() int32
- func (x *StatusList_Status) GetSessionCount() int32
- func (*StatusList_Status) ProtoMessage()
- func (x *StatusList_Status) ProtoReflect() protoreflect.Message
- func (x *StatusList_Status) Reset()
- func (x *StatusList_Status) String() string
- type StorageList
- func (*StorageList) Descriptor() ([]byte, []int)deprecated
- func (x *StorageList) GetObjects() []*api.StorageObject
- func (x *StorageList) GetTotalCount() int32
- func (*StorageList) ProtoMessage()
- func (x *StorageList) ProtoReflect() protoreflect.Message
- func (x *StorageList) Reset()
- func (x *StorageList) String() string
- type UnimplementedConsoleServer
- func (UnimplementedConsoleServer) Authenticate(context.Context, *AuthenticateRequest) (*ConsoleSession, error)
- func (UnimplementedConsoleServer) BanUser(context.Context, *AccountId) (*empty.Empty, error)
- func (UnimplementedConsoleServer) DeleteAccount(context.Context, *AccountDeleteRequest) (*empty.Empty, error)
- func (UnimplementedConsoleServer) DeleteFriend(context.Context, *DeleteFriendRequest) (*empty.Empty, error)
- func (UnimplementedConsoleServer) DeleteGroupUser(context.Context, *DeleteGroupUserRequest) (*empty.Empty, error)
- func (UnimplementedConsoleServer) DeleteStorage(context.Context, *empty.Empty) (*empty.Empty, error)
- func (UnimplementedConsoleServer) DeleteStorageObject(context.Context, *DeleteStorageObjectRequest) (*empty.Empty, error)
- func (UnimplementedConsoleServer) DeleteUsers(context.Context, *empty.Empty) (*empty.Empty, error)
- func (UnimplementedConsoleServer) DeleteWalletLedger(context.Context, *DeleteWalletLedgerRequest) (*empty.Empty, error)
- func (UnimplementedConsoleServer) ExportAccount(context.Context, *AccountId) (*AccountExport, error)
- func (UnimplementedConsoleServer) GetAccount(context.Context, *AccountId) (*Account, error)
- func (UnimplementedConsoleServer) GetConfig(context.Context, *empty.Empty) (*Config, error)
- func (UnimplementedConsoleServer) GetFriends(context.Context, *AccountId) (*api.FriendList, error)
- func (UnimplementedConsoleServer) GetGroups(context.Context, *AccountId) (*api.UserGroupList, error)
- func (UnimplementedConsoleServer) GetStatus(context.Context, *empty.Empty) (*StatusList, error)
- func (UnimplementedConsoleServer) GetStorage(context.Context, *api.ReadStorageObjectId) (*api.StorageObject, error)
- func (UnimplementedConsoleServer) GetWalletLedger(context.Context, *AccountId) (*WalletLedgerList, error)
- func (UnimplementedConsoleServer) ListStorage(context.Context, *ListStorageRequest) (*StorageList, error)
- func (UnimplementedConsoleServer) ListUsers(context.Context, *ListUsersRequest) (*UserList, error)
- func (UnimplementedConsoleServer) UnbanUser(context.Context, *AccountId) (*empty.Empty, error)
- func (UnimplementedConsoleServer) UnlinkApple(context.Context, *AccountId) (*empty.Empty, error)
- func (UnimplementedConsoleServer) UnlinkCustom(context.Context, *AccountId) (*empty.Empty, error)
- func (UnimplementedConsoleServer) UnlinkDevice(context.Context, *UnlinkDeviceRequest) (*empty.Empty, error)
- func (UnimplementedConsoleServer) UnlinkEmail(context.Context, *AccountId) (*empty.Empty, error)
- func (UnimplementedConsoleServer) UnlinkFacebook(context.Context, *AccountId) (*empty.Empty, error)
- func (UnimplementedConsoleServer) UnlinkFacebookInstantGame(context.Context, *AccountId) (*empty.Empty, error)
- func (UnimplementedConsoleServer) UnlinkGameCenter(context.Context, *AccountId) (*empty.Empty, error)
- func (UnimplementedConsoleServer) UnlinkGoogle(context.Context, *AccountId) (*empty.Empty, error)
- func (UnimplementedConsoleServer) UnlinkSteam(context.Context, *AccountId) (*empty.Empty, error)
- func (UnimplementedConsoleServer) UpdateAccount(context.Context, *UpdateAccountRequest) (*empty.Empty, error)
- func (UnimplementedConsoleServer) WriteStorageObject(context.Context, *WriteStorageObjectRequest) (*api.StorageObjectAck, error)
- type UnlinkDeviceRequest
- func (*UnlinkDeviceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnlinkDeviceRequest) GetDeviceId() string
- func (x *UnlinkDeviceRequest) GetId() string
- func (*UnlinkDeviceRequest) ProtoMessage()
- func (x *UnlinkDeviceRequest) ProtoReflect() protoreflect.Message
- func (x *UnlinkDeviceRequest) Reset()
- func (x *UnlinkDeviceRequest) String() string
- type UnsafeConsoleServer
- type UpdateAccountRequest
- func (*UpdateAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAccountRequest) GetAvatarUrl() *wrappers.StringValue
- func (x *UpdateAccountRequest) GetCustomId() *wrappers.StringValue
- func (x *UpdateAccountRequest) GetDeviceIds() map[string]string
- func (x *UpdateAccountRequest) GetDisplayName() *wrappers.StringValue
- func (x *UpdateAccountRequest) GetEmail() *wrappers.StringValue
- func (x *UpdateAccountRequest) GetId() string
- func (x *UpdateAccountRequest) GetLangTag() *wrappers.StringValue
- func (x *UpdateAccountRequest) GetLocation() *wrappers.StringValue
- func (x *UpdateAccountRequest) GetMetadata() *wrappers.StringValue
- func (x *UpdateAccountRequest) GetPassword() *wrappers.StringValue
- func (x *UpdateAccountRequest) GetTimezone() *wrappers.StringValue
- func (x *UpdateAccountRequest) GetUsername() *wrappers.StringValue
- func (x *UpdateAccountRequest) GetWallet() *wrappers.StringValue
- func (*UpdateAccountRequest) ProtoMessage()
- func (x *UpdateAccountRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateAccountRequest) Reset()
- func (x *UpdateAccountRequest) String() string
- type UserList
- type WalletLedger
- func (*WalletLedger) Descriptor() ([]byte, []int)deprecated
- func (x *WalletLedger) GetChangeset() string
- func (x *WalletLedger) GetCreateTime() *timestamp.Timestamp
- func (x *WalletLedger) GetId() string
- func (x *WalletLedger) GetMetadata() string
- func (x *WalletLedger) GetUpdateTime() *timestamp.Timestamp
- func (x *WalletLedger) GetUserId() string
- func (*WalletLedger) ProtoMessage()
- func (x *WalletLedger) ProtoReflect() protoreflect.Message
- func (x *WalletLedger) Reset()
- func (x *WalletLedger) String() string
- type WalletLedgerList
- type WriteStorageObjectRequest
- func (*WriteStorageObjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WriteStorageObjectRequest) GetCollection() string
- func (x *WriteStorageObjectRequest) GetKey() string
- func (x *WriteStorageObjectRequest) GetPermissionRead() *wrappers.Int32Value
- func (x *WriteStorageObjectRequest) GetPermissionWrite() *wrappers.Int32Value
- func (x *WriteStorageObjectRequest) GetUserId() string
- func (x *WriteStorageObjectRequest) GetValue() string
- func (x *WriteStorageObjectRequest) GetVersion() string
- func (*WriteStorageObjectRequest) ProtoMessage()
- func (x *WriteStorageObjectRequest) ProtoReflect() protoreflect.Message
- func (x *WriteStorageObjectRequest) Reset()
- func (x *WriteStorageObjectRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var File_console_proto protoreflect.FileDescriptor
var UI = http.FileServer(packr.NewBox("./ui/build")) // path must be string not a variable for packr to understand
Functions ¶
func RegisterConsoleHandler ¶
func RegisterConsoleHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterConsoleHandler registers the http handlers for service Console to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterConsoleHandlerClient ¶
func RegisterConsoleHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ConsoleClient) error
RegisterConsoleHandlerClient registers the http handlers for service Console to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ConsoleClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ConsoleClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ConsoleClient" to call the correct interceptors.
func RegisterConsoleHandlerFromEndpoint ¶
func RegisterConsoleHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterConsoleHandlerFromEndpoint is same as RegisterConsoleHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterConsoleHandlerServer ¶ added in v2.7.0
func RegisterConsoleHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ConsoleServer) error
RegisterConsoleHandlerServer registers the http handlers for service Console to "mux". UnaryRPC :call ConsoleServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterConsoleHandlerFromEndpoint instead.
func RegisterConsoleServer ¶
func RegisterConsoleServer(s *grpc.Server, srv ConsoleServer)
Types ¶
type Account ¶
type Account struct { // The user's account details. Account *api.Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // The UNIX time when the account was disabled. DisableTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=disable_time,json=disableTime,proto3" json:"disable_time,omitempty"` // contains filtered or unexported fields }
Account information.
func (*Account) Descriptor
deprecated
func (*Account) GetAccount ¶
func (*Account) GetDisableTime ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶ added in v2.14.0
func (x *Account) ProtoReflect() protoreflect.Message
type AccountDeleteRequest ¶
type AccountDeleteRequest struct { // The unique identifier of the user account. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Record the user deletion - used for GDPR compliance. RecordDeletion *wrappers.BoolValue `protobuf:"bytes,2,opt,name=record_deletion,json=recordDeletion,proto3" json:"record_deletion,omitempty"` // contains filtered or unexported fields }
Delete a user account.
func (*AccountDeleteRequest) Descriptor
deprecated
func (*AccountDeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use AccountDeleteRequest.ProtoReflect.Descriptor instead.
func (*AccountDeleteRequest) GetId ¶
func (x *AccountDeleteRequest) GetId() string
func (*AccountDeleteRequest) GetRecordDeletion ¶
func (x *AccountDeleteRequest) GetRecordDeletion() *wrappers.BoolValue
func (*AccountDeleteRequest) ProtoMessage ¶
func (*AccountDeleteRequest) ProtoMessage()
func (*AccountDeleteRequest) ProtoReflect ¶ added in v2.14.0
func (x *AccountDeleteRequest) ProtoReflect() protoreflect.Message
func (*AccountDeleteRequest) Reset ¶
func (x *AccountDeleteRequest) Reset()
func (*AccountDeleteRequest) String ¶
func (x *AccountDeleteRequest) String() string
type AccountExport ¶
type AccountExport struct { // The user's account details. Account *api.Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // The user's storage. Objects []*api.StorageObject `protobuf:"bytes,2,rep,name=objects,proto3" json:"objects,omitempty"` // The user's friends. Friends []*api.Friend `protobuf:"bytes,3,rep,name=friends,proto3" json:"friends,omitempty"` // The user's groups. Groups []*api.Group `protobuf:"bytes,4,rep,name=groups,proto3" json:"groups,omitempty"` // The user's chat messages. Messages []*api.ChannelMessage `protobuf:"bytes,5,rep,name=messages,proto3" json:"messages,omitempty"` // The user's leaderboard records. LeaderboardRecords []*api.LeaderboardRecord `protobuf:"bytes,6,rep,name=leaderboard_records,json=leaderboardRecords,proto3" json:"leaderboard_records,omitempty"` // The user's notifications. Notifications []*api.Notification `protobuf:"bytes,7,rep,name=notifications,proto3" json:"notifications,omitempty"` // The user's wallet ledger items. WalletLedgers []*WalletLedger `protobuf:"bytes,8,rep,name=wallet_ledgers,json=walletLedgers,proto3" json:"wallet_ledgers,omitempty"` // contains filtered or unexported fields }
An export of all information stored for a user account.
func (*AccountExport) Descriptor
deprecated
func (*AccountExport) Descriptor() ([]byte, []int)
Deprecated: Use AccountExport.ProtoReflect.Descriptor instead.
func (*AccountExport) GetAccount ¶
func (x *AccountExport) GetAccount() *api.Account
func (*AccountExport) GetFriends ¶
func (x *AccountExport) GetFriends() []*api.Friend
func (*AccountExport) GetGroups ¶
func (x *AccountExport) GetGroups() []*api.Group
func (*AccountExport) GetLeaderboardRecords ¶
func (x *AccountExport) GetLeaderboardRecords() []*api.LeaderboardRecord
func (*AccountExport) GetMessages ¶
func (x *AccountExport) GetMessages() []*api.ChannelMessage
func (*AccountExport) GetNotifications ¶
func (x *AccountExport) GetNotifications() []*api.Notification
func (*AccountExport) GetObjects ¶
func (x *AccountExport) GetObjects() []*api.StorageObject
func (*AccountExport) GetWalletLedgers ¶
func (x *AccountExport) GetWalletLedgers() []*WalletLedger
func (*AccountExport) ProtoMessage ¶
func (*AccountExport) ProtoMessage()
func (*AccountExport) ProtoReflect ¶ added in v2.14.0
func (x *AccountExport) ProtoReflect() protoreflect.Message
func (*AccountExport) Reset ¶
func (x *AccountExport) Reset()
func (*AccountExport) String ¶
func (x *AccountExport) String() string
type AccountId ¶
type AccountId struct { // The unique identifier of the user account. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
The identifier for a user account.
func (*AccountId) Descriptor
deprecated
func (*AccountId) ProtoMessage ¶
func (*AccountId) ProtoMessage()
func (*AccountId) ProtoReflect ¶ added in v2.14.0
func (x *AccountId) ProtoReflect() protoreflect.Message
type AuthenticateRequest ¶
type AuthenticateRequest struct { // The username of the user. Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // The password of the user. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
Authenticate a console user with username and password.
func (*AuthenticateRequest) Descriptor
deprecated
func (*AuthenticateRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateRequest.ProtoReflect.Descriptor instead.
func (*AuthenticateRequest) GetPassword ¶
func (x *AuthenticateRequest) GetPassword() string
func (*AuthenticateRequest) GetUsername ¶
func (x *AuthenticateRequest) GetUsername() string
func (*AuthenticateRequest) ProtoMessage ¶
func (*AuthenticateRequest) ProtoMessage()
func (*AuthenticateRequest) ProtoReflect ¶ added in v2.14.0
func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message
func (*AuthenticateRequest) Reset ¶
func (x *AuthenticateRequest) Reset()
func (*AuthenticateRequest) String ¶
func (x *AuthenticateRequest) String() string
type Config ¶
type Config struct { // JSON-encoded active server configuration. Config string `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` // Any warnings about the current config. Warnings []*Config_Warning `protobuf:"bytes,2,rep,name=warnings,proto3" json:"warnings,omitempty"` // Server version ServerVersion string `protobuf:"bytes,3,opt,name=server_version,json=serverVersion,proto3" json:"server_version,omitempty"` // contains filtered or unexported fields }
The current server configuration and any associated warnings.
func (*Config) Descriptor
deprecated
func (*Config) GetServerVersion ¶
func (*Config) GetWarnings ¶
func (x *Config) GetWarnings() []*Config_Warning
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶ added in v2.14.0
func (x *Config) ProtoReflect() protoreflect.Message
type Config_Warning ¶
type Config_Warning struct { // The config field this warning is for in a JSON pointer format. Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` // Warning message text. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
A warning for a configuration field.
func (*Config_Warning) Descriptor
deprecated
func (*Config_Warning) Descriptor() ([]byte, []int)
Deprecated: Use Config_Warning.ProtoReflect.Descriptor instead.
func (*Config_Warning) GetField ¶
func (x *Config_Warning) GetField() string
func (*Config_Warning) GetMessage ¶
func (x *Config_Warning) GetMessage() string
func (*Config_Warning) ProtoMessage ¶
func (*Config_Warning) ProtoMessage()
func (*Config_Warning) ProtoReflect ¶ added in v2.14.0
func (x *Config_Warning) ProtoReflect() protoreflect.Message
func (*Config_Warning) Reset ¶
func (x *Config_Warning) Reset()
func (*Config_Warning) String ¶
func (x *Config_Warning) String() string
type ConsoleClient ¶
type ConsoleClient interface { // Authenticate a console user with username and password. Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*ConsoleSession, error) // Ban a user. BanUser(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*empty.Empty, error) // Delete all information stored for a user account. DeleteAccount(ctx context.Context, in *AccountDeleteRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Delete the friend relationship between two users. DeleteFriend(ctx context.Context, in *DeleteFriendRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Remove a user from a group. DeleteGroupUser(ctx context.Context, in *DeleteGroupUserRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Delete all storage data. DeleteStorage(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) // Delete a storage object. DeleteStorageObject(ctx context.Context, in *DeleteStorageObjectRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Delete (non-recorded) all user accounts. DeleteUsers(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) // Delete a wallet ledger item. DeleteWalletLedger(ctx context.Context, in *DeleteWalletLedgerRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Export all information stored about a user account. ExportAccount(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*AccountExport, error) // Get detailed account information for a single user. GetAccount(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*Account, error) // Get server config and configuration warnings. GetConfig(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Config, error) // Get a user's list of friend relationships. GetFriends(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*api.FriendList, error) // Get a list of groups the user is a member of. GetGroups(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*api.UserGroupList, error) // Get current status data for all nodes. GetStatus(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*StatusList, error) // Get a storage object. GetStorage(ctx context.Context, in *api.ReadStorageObjectId, opts ...grpc.CallOption) (*api.StorageObject, error) // Get a list of the user's wallet transactions. GetWalletLedger(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*WalletLedgerList, error) // List (and optionally filter) storage data. ListStorage(ctx context.Context, in *ListStorageRequest, opts ...grpc.CallOption) (*StorageList, error) // List (and optionally filter) users. ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*UserList, error) // Unban a user. UnbanUser(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*empty.Empty, error) // Unlink the custom ID from a user account. UnlinkCustom(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*empty.Empty, error) // Unlink the device ID from a user account. UnlinkDevice(ctx context.Context, in *UnlinkDeviceRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Unlink the email from a user account. UnlinkEmail(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*empty.Empty, error) // Unlink the Apple ID from a user account. UnlinkApple(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*empty.Empty, error) // Unlink the Facebook ID from a user account. UnlinkFacebook(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*empty.Empty, error) // Unlink the Facebook Instant Game ID from a user account. UnlinkFacebookInstantGame(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*empty.Empty, error) // Unlink the Game Center ID from a user account. UnlinkGameCenter(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*empty.Empty, error) // Unlink the Google ID from a user account. UnlinkGoogle(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*empty.Empty, error) // Unlink the Steam ID from a user account. UnlinkSteam(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*empty.Empty, error) // Update one or more fields on a user account. UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Write a new storage object or replace an existing one. WriteStorageObject(ctx context.Context, in *WriteStorageObjectRequest, opts ...grpc.CallOption) (*api.StorageObjectAck, error) }
ConsoleClient is the client API for Console service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewConsoleClient ¶
func NewConsoleClient(cc grpc.ClientConnInterface) ConsoleClient
type ConsoleServer ¶
type ConsoleServer interface { // Authenticate a console user with username and password. Authenticate(context.Context, *AuthenticateRequest) (*ConsoleSession, error) // Ban a user. BanUser(context.Context, *AccountId) (*empty.Empty, error) // Delete all information stored for a user account. DeleteAccount(context.Context, *AccountDeleteRequest) (*empty.Empty, error) // Delete the friend relationship between two users. DeleteFriend(context.Context, *DeleteFriendRequest) (*empty.Empty, error) // Remove a user from a group. DeleteGroupUser(context.Context, *DeleteGroupUserRequest) (*empty.Empty, error) // Delete all storage data. DeleteStorage(context.Context, *empty.Empty) (*empty.Empty, error) // Delete a storage object. DeleteStorageObject(context.Context, *DeleteStorageObjectRequest) (*empty.Empty, error) // Delete (non-recorded) all user accounts. DeleteUsers(context.Context, *empty.Empty) (*empty.Empty, error) // Delete a wallet ledger item. DeleteWalletLedger(context.Context, *DeleteWalletLedgerRequest) (*empty.Empty, error) // Export all information stored about a user account. ExportAccount(context.Context, *AccountId) (*AccountExport, error) // Get detailed account information for a single user. GetAccount(context.Context, *AccountId) (*Account, error) // Get server config and configuration warnings. GetConfig(context.Context, *empty.Empty) (*Config, error) // Get a user's list of friend relationships. GetFriends(context.Context, *AccountId) (*api.FriendList, error) // Get a list of groups the user is a member of. GetGroups(context.Context, *AccountId) (*api.UserGroupList, error) // Get current status data for all nodes. GetStatus(context.Context, *empty.Empty) (*StatusList, error) // Get a storage object. GetStorage(context.Context, *api.ReadStorageObjectId) (*api.StorageObject, error) // Get a list of the user's wallet transactions. GetWalletLedger(context.Context, *AccountId) (*WalletLedgerList, error) // List (and optionally filter) storage data. ListStorage(context.Context, *ListStorageRequest) (*StorageList, error) // List (and optionally filter) users. ListUsers(context.Context, *ListUsersRequest) (*UserList, error) // Unban a user. UnbanUser(context.Context, *AccountId) (*empty.Empty, error) // Unlink the custom ID from a user account. UnlinkCustom(context.Context, *AccountId) (*empty.Empty, error) // Unlink the device ID from a user account. UnlinkDevice(context.Context, *UnlinkDeviceRequest) (*empty.Empty, error) // Unlink the email from a user account. UnlinkEmail(context.Context, *AccountId) (*empty.Empty, error) // Unlink the Apple ID from a user account. UnlinkApple(context.Context, *AccountId) (*empty.Empty, error) // Unlink the Facebook ID from a user account. UnlinkFacebook(context.Context, *AccountId) (*empty.Empty, error) // Unlink the Facebook Instant Game ID from a user account. UnlinkFacebookInstantGame(context.Context, *AccountId) (*empty.Empty, error) // Unlink the Game Center ID from a user account. UnlinkGameCenter(context.Context, *AccountId) (*empty.Empty, error) // Unlink the Google ID from a user account. UnlinkGoogle(context.Context, *AccountId) (*empty.Empty, error) // Unlink the Steam ID from a user account. UnlinkSteam(context.Context, *AccountId) (*empty.Empty, error) // Update one or more fields on a user account. UpdateAccount(context.Context, *UpdateAccountRequest) (*empty.Empty, error) // Write a new storage object or replace an existing one. WriteStorageObject(context.Context, *WriteStorageObjectRequest) (*api.StorageObjectAck, error) // contains filtered or unexported methods }
ConsoleServer is the server API for Console service. All implementations must embed UnimplementedConsoleServer for forward compatibility
type ConsoleSession ¶
type ConsoleSession struct { // A session token (JWT) for the console user. Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
A console user session.
func (*ConsoleSession) Descriptor
deprecated
func (*ConsoleSession) Descriptor() ([]byte, []int)
Deprecated: Use ConsoleSession.ProtoReflect.Descriptor instead.
func (*ConsoleSession) GetToken ¶
func (x *ConsoleSession) GetToken() string
func (*ConsoleSession) ProtoMessage ¶
func (*ConsoleSession) ProtoMessage()
func (*ConsoleSession) ProtoReflect ¶ added in v2.14.0
func (x *ConsoleSession) ProtoReflect() protoreflect.Message
func (*ConsoleSession) Reset ¶
func (x *ConsoleSession) Reset()
func (*ConsoleSession) String ¶
func (x *ConsoleSession) String() string
type DeleteFriendRequest ¶
type DeleteFriendRequest struct { // The user do delete for. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // User ID of the friend to remove. FriendId string `protobuf:"bytes,2,opt,name=friend_id,json=friendId,proto3" json:"friend_id,omitempty"` // contains filtered or unexported fields }
Delete friend relationship between two users.
func (*DeleteFriendRequest) Descriptor
deprecated
func (*DeleteFriendRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteFriendRequest.ProtoReflect.Descriptor instead.
func (*DeleteFriendRequest) GetFriendId ¶
func (x *DeleteFriendRequest) GetFriendId() string
func (*DeleteFriendRequest) GetId ¶
func (x *DeleteFriendRequest) GetId() string
func (*DeleteFriendRequest) ProtoMessage ¶
func (*DeleteFriendRequest) ProtoMessage()
func (*DeleteFriendRequest) ProtoReflect ¶ added in v2.14.0
func (x *DeleteFriendRequest) ProtoReflect() protoreflect.Message
func (*DeleteFriendRequest) Reset ¶
func (x *DeleteFriendRequest) Reset()
func (*DeleteFriendRequest) String ¶
func (x *DeleteFriendRequest) String() string
type DeleteGroupUserRequest ¶
type DeleteGroupUserRequest struct { // User to remove. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the group to remove them from. GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` // contains filtered or unexported fields }
Remove a user from a group.
func (*DeleteGroupUserRequest) Descriptor
deprecated
func (*DeleteGroupUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteGroupUserRequest.ProtoReflect.Descriptor instead.
func (*DeleteGroupUserRequest) GetGroupId ¶
func (x *DeleteGroupUserRequest) GetGroupId() string
func (*DeleteGroupUserRequest) GetId ¶
func (x *DeleteGroupUserRequest) GetId() string
func (*DeleteGroupUserRequest) ProtoMessage ¶
func (*DeleteGroupUserRequest) ProtoMessage()
func (*DeleteGroupUserRequest) ProtoReflect ¶ added in v2.14.0
func (x *DeleteGroupUserRequest) ProtoReflect() protoreflect.Message
func (*DeleteGroupUserRequest) Reset ¶
func (x *DeleteGroupUserRequest) Reset()
func (*DeleteGroupUserRequest) String ¶
func (x *DeleteGroupUserRequest) String() string
type DeleteStorageObjectRequest ¶
type DeleteStorageObjectRequest struct { // Collection. Collection string `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"` // Key. Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // Owner user ID. UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // Version for OCC. Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
Delete an individual storage object.
func (*DeleteStorageObjectRequest) Descriptor
deprecated
func (*DeleteStorageObjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteStorageObjectRequest.ProtoReflect.Descriptor instead.
func (*DeleteStorageObjectRequest) GetCollection ¶
func (x *DeleteStorageObjectRequest) GetCollection() string
func (*DeleteStorageObjectRequest) GetKey ¶
func (x *DeleteStorageObjectRequest) GetKey() string
func (*DeleteStorageObjectRequest) GetUserId ¶
func (x *DeleteStorageObjectRequest) GetUserId() string
func (*DeleteStorageObjectRequest) GetVersion ¶
func (x *DeleteStorageObjectRequest) GetVersion() string
func (*DeleteStorageObjectRequest) ProtoMessage ¶
func (*DeleteStorageObjectRequest) ProtoMessage()
func (*DeleteStorageObjectRequest) ProtoReflect ¶ added in v2.14.0
func (x *DeleteStorageObjectRequest) ProtoReflect() protoreflect.Message
func (*DeleteStorageObjectRequest) Reset ¶
func (x *DeleteStorageObjectRequest) Reset()
func (*DeleteStorageObjectRequest) String ¶
func (x *DeleteStorageObjectRequest) String() string
type DeleteWalletLedgerRequest ¶
type DeleteWalletLedgerRequest struct { // User ID to remove wallet ledger item from. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the wallet ledger item to remove. WalletId string `protobuf:"bytes,2,opt,name=wallet_id,json=walletId,proto3" json:"wallet_id,omitempty"` // contains filtered or unexported fields }
Delete a single wallet ledger item.
func (*DeleteWalletLedgerRequest) Descriptor
deprecated
func (*DeleteWalletLedgerRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteWalletLedgerRequest.ProtoReflect.Descriptor instead.
func (*DeleteWalletLedgerRequest) GetId ¶
func (x *DeleteWalletLedgerRequest) GetId() string
func (*DeleteWalletLedgerRequest) GetWalletId ¶
func (x *DeleteWalletLedgerRequest) GetWalletId() string
func (*DeleteWalletLedgerRequest) ProtoMessage ¶
func (*DeleteWalletLedgerRequest) ProtoMessage()
func (*DeleteWalletLedgerRequest) ProtoReflect ¶ added in v2.14.0
func (x *DeleteWalletLedgerRequest) ProtoReflect() protoreflect.Message
func (*DeleteWalletLedgerRequest) Reset ¶
func (x *DeleteWalletLedgerRequest) Reset()
func (*DeleteWalletLedgerRequest) String ¶
func (x *DeleteWalletLedgerRequest) String() string
type ListStorageRequest ¶
type ListStorageRequest struct { // User ID to filter objects for. UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
List (and optionally filter) storage objects.
func (*ListStorageRequest) Descriptor
deprecated
func (*ListStorageRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListStorageRequest.ProtoReflect.Descriptor instead.
func (*ListStorageRequest) GetUserId ¶
func (x *ListStorageRequest) GetUserId() string
func (*ListStorageRequest) ProtoMessage ¶
func (*ListStorageRequest) ProtoMessage()
func (*ListStorageRequest) ProtoReflect ¶ added in v2.14.0
func (x *ListStorageRequest) ProtoReflect() protoreflect.Message
func (*ListStorageRequest) Reset ¶
func (x *ListStorageRequest) Reset()
func (*ListStorageRequest) String ¶
func (x *ListStorageRequest) String() string
type ListUsersRequest ¶
type ListUsersRequest struct { // User ID or username filter. Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` // Search only banned users. Banned bool `protobuf:"varint,2,opt,name=banned,proto3" json:"banned,omitempty"` // Search only recorded deletes. Tombstones bool `protobuf:"varint,3,opt,name=tombstones,proto3" json:"tombstones,omitempty"` // contains filtered or unexported fields }
List (and optionally filter) users.
func (*ListUsersRequest) Descriptor
deprecated
func (*ListUsersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.
func (*ListUsersRequest) GetBanned ¶
func (x *ListUsersRequest) GetBanned() bool
func (*ListUsersRequest) GetFilter ¶
func (x *ListUsersRequest) GetFilter() string
func (*ListUsersRequest) GetTombstones ¶
func (x *ListUsersRequest) GetTombstones() bool
func (*ListUsersRequest) ProtoMessage ¶
func (*ListUsersRequest) ProtoMessage()
func (*ListUsersRequest) ProtoReflect ¶ added in v2.14.0
func (x *ListUsersRequest) ProtoReflect() protoreflect.Message
func (*ListUsersRequest) Reset ¶
func (x *ListUsersRequest) Reset()
func (*ListUsersRequest) String ¶
func (x *ListUsersRequest) String() string
type StatusList ¶
type StatusList struct { // List of nodes and their stats. Nodes []*StatusList_Status `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` // contains filtered or unexported fields }
List of nodes and their stats.
func (*StatusList) Descriptor
deprecated
func (*StatusList) Descriptor() ([]byte, []int)
Deprecated: Use StatusList.ProtoReflect.Descriptor instead.
func (*StatusList) GetNodes ¶
func (x *StatusList) GetNodes() []*StatusList_Status
func (*StatusList) ProtoMessage ¶
func (*StatusList) ProtoMessage()
func (*StatusList) ProtoReflect ¶ added in v2.14.0
func (x *StatusList) ProtoReflect() protoreflect.Message
func (*StatusList) Reset ¶
func (x *StatusList) Reset()
func (*StatusList) String ¶
func (x *StatusList) String() string
type StatusList_Status ¶
type StatusList_Status struct { // Node name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Health score. Health int32 `protobuf:"varint,2,opt,name=health,proto3" json:"health,omitempty"` // Currently connected sessions. SessionCount int32 `protobuf:"varint,3,opt,name=session_count,json=sessionCount,proto3" json:"session_count,omitempty"` // Currently registered live presences. PresenceCount int32 `protobuf:"varint,4,opt,name=presence_count,json=presenceCount,proto3" json:"presence_count,omitempty"` // Current number of active authoritative matches. MatchCount int32 `protobuf:"varint,5,opt,name=match_count,json=matchCount,proto3" json:"match_count,omitempty"` // Current number of running goroutines. GoroutineCount int32 `protobuf:"varint,6,opt,name=goroutine_count,json=goroutineCount,proto3" json:"goroutine_count,omitempty"` // Average response latency in milliseconds. AvgLatencyMs float64 `protobuf:"fixed64,7,opt,name=avg_latency_ms,json=avgLatencyMs,proto3" json:"avg_latency_ms,omitempty"` // Average number of requests per second. AvgRateSec float64 `protobuf:"fixed64,8,opt,name=avg_rate_sec,json=avgRateSec,proto3" json:"avg_rate_sec,omitempty"` // Average input bandwidth usage. AvgInputKbs float64 `protobuf:"fixed64,9,opt,name=avg_input_kbs,json=avgInputKbs,proto3" json:"avg_input_kbs,omitempty"` // Average output bandwidth usage. AvgOutputKbs float64 `protobuf:"fixed64,10,opt,name=avg_output_kbs,json=avgOutputKbs,proto3" json:"avg_output_kbs,omitempty"` // contains filtered or unexported fields }
The status of a Nakama node.
func (*StatusList_Status) Descriptor
deprecated
func (*StatusList_Status) Descriptor() ([]byte, []int)
Deprecated: Use StatusList_Status.ProtoReflect.Descriptor instead.
func (*StatusList_Status) GetAvgInputKbs ¶
func (x *StatusList_Status) GetAvgInputKbs() float64
func (*StatusList_Status) GetAvgLatencyMs ¶
func (x *StatusList_Status) GetAvgLatencyMs() float64
func (*StatusList_Status) GetAvgOutputKbs ¶
func (x *StatusList_Status) GetAvgOutputKbs() float64
func (*StatusList_Status) GetAvgRateSec ¶
func (x *StatusList_Status) GetAvgRateSec() float64
func (*StatusList_Status) GetGoroutineCount ¶
func (x *StatusList_Status) GetGoroutineCount() int32
func (*StatusList_Status) GetHealth ¶
func (x *StatusList_Status) GetHealth() int32
func (*StatusList_Status) GetMatchCount ¶
func (x *StatusList_Status) GetMatchCount() int32
func (*StatusList_Status) GetName ¶
func (x *StatusList_Status) GetName() string
func (*StatusList_Status) GetPresenceCount ¶
func (x *StatusList_Status) GetPresenceCount() int32
func (*StatusList_Status) GetSessionCount ¶
func (x *StatusList_Status) GetSessionCount() int32
func (*StatusList_Status) ProtoMessage ¶
func (*StatusList_Status) ProtoMessage()
func (*StatusList_Status) ProtoReflect ¶ added in v2.14.0
func (x *StatusList_Status) ProtoReflect() protoreflect.Message
func (*StatusList_Status) Reset ¶
func (x *StatusList_Status) Reset()
func (*StatusList_Status) String ¶
func (x *StatusList_Status) String() string
type StorageList ¶
type StorageList struct { // List of storage objects matching list/filter operation. Objects []*api.StorageObject `protobuf:"bytes,1,rep,name=objects,proto3" json:"objects,omitempty"` // Approximate total number of storage objects. TotalCount int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` // contains filtered or unexported fields }
List of storage objects.
func (*StorageList) Descriptor
deprecated
func (*StorageList) Descriptor() ([]byte, []int)
Deprecated: Use StorageList.ProtoReflect.Descriptor instead.
func (*StorageList) GetObjects ¶
func (x *StorageList) GetObjects() []*api.StorageObject
func (*StorageList) GetTotalCount ¶
func (x *StorageList) GetTotalCount() int32
func (*StorageList) ProtoMessage ¶
func (*StorageList) ProtoMessage()
func (*StorageList) ProtoReflect ¶ added in v2.14.0
func (x *StorageList) ProtoReflect() protoreflect.Message
func (*StorageList) Reset ¶
func (x *StorageList) Reset()
func (*StorageList) String ¶
func (x *StorageList) String() string
type UnimplementedConsoleServer ¶
type UnimplementedConsoleServer struct { }
UnimplementedConsoleServer must be embedded to have forward compatible implementations.
func (UnimplementedConsoleServer) Authenticate ¶
func (UnimplementedConsoleServer) Authenticate(context.Context, *AuthenticateRequest) (*ConsoleSession, error)
func (UnimplementedConsoleServer) DeleteAccount ¶
func (UnimplementedConsoleServer) DeleteAccount(context.Context, *AccountDeleteRequest) (*empty.Empty, error)
func (UnimplementedConsoleServer) DeleteFriend ¶
func (UnimplementedConsoleServer) DeleteFriend(context.Context, *DeleteFriendRequest) (*empty.Empty, error)
func (UnimplementedConsoleServer) DeleteGroupUser ¶
func (UnimplementedConsoleServer) DeleteGroupUser(context.Context, *DeleteGroupUserRequest) (*empty.Empty, error)
func (UnimplementedConsoleServer) DeleteStorage ¶
func (UnimplementedConsoleServer) DeleteStorageObject ¶
func (UnimplementedConsoleServer) DeleteStorageObject(context.Context, *DeleteStorageObjectRequest) (*empty.Empty, error)
func (UnimplementedConsoleServer) DeleteUsers ¶
func (UnimplementedConsoleServer) DeleteWalletLedger ¶
func (UnimplementedConsoleServer) DeleteWalletLedger(context.Context, *DeleteWalletLedgerRequest) (*empty.Empty, error)
func (UnimplementedConsoleServer) ExportAccount ¶
func (UnimplementedConsoleServer) ExportAccount(context.Context, *AccountId) (*AccountExport, error)
func (UnimplementedConsoleServer) GetAccount ¶
func (UnimplementedConsoleServer) GetFriends ¶
func (UnimplementedConsoleServer) GetFriends(context.Context, *AccountId) (*api.FriendList, error)
func (UnimplementedConsoleServer) GetGroups ¶
func (UnimplementedConsoleServer) GetGroups(context.Context, *AccountId) (*api.UserGroupList, error)
func (UnimplementedConsoleServer) GetStatus ¶
func (UnimplementedConsoleServer) GetStatus(context.Context, *empty.Empty) (*StatusList, error)
func (UnimplementedConsoleServer) GetStorage ¶
func (UnimplementedConsoleServer) GetStorage(context.Context, *api.ReadStorageObjectId) (*api.StorageObject, error)
func (UnimplementedConsoleServer) GetWalletLedger ¶
func (UnimplementedConsoleServer) GetWalletLedger(context.Context, *AccountId) (*WalletLedgerList, error)
func (UnimplementedConsoleServer) ListStorage ¶
func (UnimplementedConsoleServer) ListStorage(context.Context, *ListStorageRequest) (*StorageList, error)
func (UnimplementedConsoleServer) ListUsers ¶
func (UnimplementedConsoleServer) ListUsers(context.Context, *ListUsersRequest) (*UserList, error)
func (UnimplementedConsoleServer) UnlinkApple ¶ added in v2.13.0
func (UnimplementedConsoleServer) UnlinkCustom ¶
func (UnimplementedConsoleServer) UnlinkDevice ¶
func (UnimplementedConsoleServer) UnlinkDevice(context.Context, *UnlinkDeviceRequest) (*empty.Empty, error)
func (UnimplementedConsoleServer) UnlinkEmail ¶
func (UnimplementedConsoleServer) UnlinkFacebook ¶
func (UnimplementedConsoleServer) UnlinkFacebookInstantGame ¶ added in v2.11.0
func (UnimplementedConsoleServer) UnlinkGameCenter ¶
func (UnimplementedConsoleServer) UnlinkGoogle ¶
func (UnimplementedConsoleServer) UnlinkSteam ¶
func (UnimplementedConsoleServer) UpdateAccount ¶
func (UnimplementedConsoleServer) UpdateAccount(context.Context, *UpdateAccountRequest) (*empty.Empty, error)
func (UnimplementedConsoleServer) WriteStorageObject ¶
func (UnimplementedConsoleServer) WriteStorageObject(context.Context, *WriteStorageObjectRequest) (*api.StorageObjectAck, error)
type UnlinkDeviceRequest ¶
type UnlinkDeviceRequest struct { // User ID to unlink from. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Device ID to unlink. DeviceId string `protobuf:"bytes,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // contains filtered or unexported fields }
Unlink a particular device ID from a user's account.
func (*UnlinkDeviceRequest) Descriptor
deprecated
func (*UnlinkDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnlinkDeviceRequest.ProtoReflect.Descriptor instead.
func (*UnlinkDeviceRequest) GetDeviceId ¶
func (x *UnlinkDeviceRequest) GetDeviceId() string
func (*UnlinkDeviceRequest) GetId ¶
func (x *UnlinkDeviceRequest) GetId() string
func (*UnlinkDeviceRequest) ProtoMessage ¶
func (*UnlinkDeviceRequest) ProtoMessage()
func (*UnlinkDeviceRequest) ProtoReflect ¶ added in v2.14.0
func (x *UnlinkDeviceRequest) ProtoReflect() protoreflect.Message
func (*UnlinkDeviceRequest) Reset ¶
func (x *UnlinkDeviceRequest) Reset()
func (*UnlinkDeviceRequest) String ¶
func (x *UnlinkDeviceRequest) String() string
type UnsafeConsoleServer ¶ added in v2.14.1
type UnsafeConsoleServer interface {
// contains filtered or unexported methods
}
UnsafeConsoleServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ConsoleServer will result in compilation errors.
type UpdateAccountRequest ¶
type UpdateAccountRequest struct { // User ID to update. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Username. Username *wrappers.StringValue `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // Display name. DisplayName *wrappers.StringValue `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Metadata. Metadata *wrappers.StringValue `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` // Avatar URL. AvatarUrl *wrappers.StringValue `protobuf:"bytes,5,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` // Langtag. LangTag *wrappers.StringValue `protobuf:"bytes,6,opt,name=lang_tag,json=langTag,proto3" json:"lang_tag,omitempty"` // Location. Location *wrappers.StringValue `protobuf:"bytes,7,opt,name=location,proto3" json:"location,omitempty"` // Timezone. Timezone *wrappers.StringValue `protobuf:"bytes,8,opt,name=timezone,proto3" json:"timezone,omitempty"` // Custom ID. CustomId *wrappers.StringValue `protobuf:"bytes,9,opt,name=custom_id,json=customId,proto3" json:"custom_id,omitempty"` // Email. Email *wrappers.StringValue `protobuf:"bytes,10,opt,name=email,proto3" json:"email,omitempty"` // Password. Password *wrappers.StringValue `protobuf:"bytes,11,opt,name=password,proto3" json:"password,omitempty"` // Device ID modifications. DeviceIds map[string]string `` /* 177-byte string literal not displayed */ // Wallet. Wallet *wrappers.StringValue `protobuf:"bytes,13,opt,name=wallet,proto3" json:"wallet,omitempty"` // contains filtered or unexported fields }
Update user account information.
func (*UpdateAccountRequest) Descriptor
deprecated
func (*UpdateAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAccountRequest.ProtoReflect.Descriptor instead.
func (*UpdateAccountRequest) GetAvatarUrl ¶
func (x *UpdateAccountRequest) GetAvatarUrl() *wrappers.StringValue
func (*UpdateAccountRequest) GetCustomId ¶
func (x *UpdateAccountRequest) GetCustomId() *wrappers.StringValue
func (*UpdateAccountRequest) GetDeviceIds ¶
func (x *UpdateAccountRequest) GetDeviceIds() map[string]string
func (*UpdateAccountRequest) GetDisplayName ¶
func (x *UpdateAccountRequest) GetDisplayName() *wrappers.StringValue
func (*UpdateAccountRequest) GetEmail ¶
func (x *UpdateAccountRequest) GetEmail() *wrappers.StringValue
func (*UpdateAccountRequest) GetId ¶
func (x *UpdateAccountRequest) GetId() string
func (*UpdateAccountRequest) GetLangTag ¶
func (x *UpdateAccountRequest) GetLangTag() *wrappers.StringValue
func (*UpdateAccountRequest) GetLocation ¶
func (x *UpdateAccountRequest) GetLocation() *wrappers.StringValue
func (*UpdateAccountRequest) GetMetadata ¶
func (x *UpdateAccountRequest) GetMetadata() *wrappers.StringValue
func (*UpdateAccountRequest) GetPassword ¶ added in v2.8.0
func (x *UpdateAccountRequest) GetPassword() *wrappers.StringValue
func (*UpdateAccountRequest) GetTimezone ¶
func (x *UpdateAccountRequest) GetTimezone() *wrappers.StringValue
func (*UpdateAccountRequest) GetUsername ¶
func (x *UpdateAccountRequest) GetUsername() *wrappers.StringValue
func (*UpdateAccountRequest) GetWallet ¶
func (x *UpdateAccountRequest) GetWallet() *wrappers.StringValue
func (*UpdateAccountRequest) ProtoMessage ¶
func (*UpdateAccountRequest) ProtoMessage()
func (*UpdateAccountRequest) ProtoReflect ¶ added in v2.14.0
func (x *UpdateAccountRequest) ProtoReflect() protoreflect.Message
func (*UpdateAccountRequest) Reset ¶
func (x *UpdateAccountRequest) Reset()
func (*UpdateAccountRequest) String ¶
func (x *UpdateAccountRequest) String() string
type UserList ¶
type UserList struct { // A list of users. Users []*api.User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // Approximate total number of users. TotalCount int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` // contains filtered or unexported fields }
A list of users.
func (*UserList) Descriptor
deprecated
func (*UserList) GetTotalCount ¶
func (*UserList) ProtoMessage ¶
func (*UserList) ProtoMessage()
func (*UserList) ProtoReflect ¶ added in v2.14.0
func (x *UserList) ProtoReflect() protoreflect.Message
type WalletLedger ¶
type WalletLedger struct { // The identifier of this wallet change. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The user ID this wallet ledger item belongs to. UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // The changeset. Changeset string `protobuf:"bytes,3,opt,name=changeset,proto3" json:"changeset,omitempty"` // Any associated metadata. Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` // The UNIX time when the wallet ledger item was created. CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The UNIX time when the wallet ledger item was updated. UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // contains filtered or unexported fields }
An individual update to a user's wallet.
func (*WalletLedger) Descriptor
deprecated
func (*WalletLedger) Descriptor() ([]byte, []int)
Deprecated: Use WalletLedger.ProtoReflect.Descriptor instead.
func (*WalletLedger) GetChangeset ¶
func (x *WalletLedger) GetChangeset() string
func (*WalletLedger) GetCreateTime ¶
func (x *WalletLedger) GetCreateTime() *timestamp.Timestamp
func (*WalletLedger) GetId ¶
func (x *WalletLedger) GetId() string
func (*WalletLedger) GetMetadata ¶
func (x *WalletLedger) GetMetadata() string
func (*WalletLedger) GetUpdateTime ¶
func (x *WalletLedger) GetUpdateTime() *timestamp.Timestamp
func (*WalletLedger) GetUserId ¶
func (x *WalletLedger) GetUserId() string
func (*WalletLedger) ProtoMessage ¶
func (*WalletLedger) ProtoMessage()
func (*WalletLedger) ProtoReflect ¶ added in v2.14.0
func (x *WalletLedger) ProtoReflect() protoreflect.Message
func (*WalletLedger) Reset ¶
func (x *WalletLedger) Reset()
func (*WalletLedger) String ¶
func (x *WalletLedger) String() string
type WalletLedgerList ¶
type WalletLedgerList struct { // A list of wallet ledger items. Items []*WalletLedger `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
List of wallet ledger items for a particular user.
func (*WalletLedgerList) Descriptor
deprecated
func (*WalletLedgerList) Descriptor() ([]byte, []int)
Deprecated: Use WalletLedgerList.ProtoReflect.Descriptor instead.
func (*WalletLedgerList) GetItems ¶
func (x *WalletLedgerList) GetItems() []*WalletLedger
func (*WalletLedgerList) ProtoMessage ¶
func (*WalletLedgerList) ProtoMessage()
func (*WalletLedgerList) ProtoReflect ¶ added in v2.14.0
func (x *WalletLedgerList) ProtoReflect() protoreflect.Message
func (*WalletLedgerList) Reset ¶
func (x *WalletLedgerList) Reset()
func (*WalletLedgerList) String ¶
func (x *WalletLedgerList) String() string
type WriteStorageObjectRequest ¶
type WriteStorageObjectRequest struct { // Collection. Collection string `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"` // Key. Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // Owner user ID. UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // Value. Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` // Version for OCC. Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"` // Read permission value. PermissionRead *wrappers.Int32Value `protobuf:"bytes,6,opt,name=permission_read,json=permissionRead,proto3" json:"permission_read,omitempty"` // Write permission value. PermissionWrite *wrappers.Int32Value `protobuf:"bytes,7,opt,name=permission_write,json=permissionWrite,proto3" json:"permission_write,omitempty"` // contains filtered or unexported fields }
Write a new storage object or update an existing one.
func (*WriteStorageObjectRequest) Descriptor
deprecated
func (*WriteStorageObjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use WriteStorageObjectRequest.ProtoReflect.Descriptor instead.
func (*WriteStorageObjectRequest) GetCollection ¶
func (x *WriteStorageObjectRequest) GetCollection() string
func (*WriteStorageObjectRequest) GetKey ¶
func (x *WriteStorageObjectRequest) GetKey() string
func (*WriteStorageObjectRequest) GetPermissionRead ¶
func (x *WriteStorageObjectRequest) GetPermissionRead() *wrappers.Int32Value
func (*WriteStorageObjectRequest) GetPermissionWrite ¶
func (x *WriteStorageObjectRequest) GetPermissionWrite() *wrappers.Int32Value
func (*WriteStorageObjectRequest) GetUserId ¶
func (x *WriteStorageObjectRequest) GetUserId() string
func (*WriteStorageObjectRequest) GetValue ¶
func (x *WriteStorageObjectRequest) GetValue() string
func (*WriteStorageObjectRequest) GetVersion ¶
func (x *WriteStorageObjectRequest) GetVersion() string
func (*WriteStorageObjectRequest) ProtoMessage ¶
func (*WriteStorageObjectRequest) ProtoMessage()
func (*WriteStorageObjectRequest) ProtoReflect ¶ added in v2.14.0
func (x *WriteStorageObjectRequest) ProtoReflect() protoreflect.Message
func (*WriteStorageObjectRequest) Reset ¶
func (x *WriteStorageObjectRequest) Reset()
func (*WriteStorageObjectRequest) String ¶
func (x *WriteStorageObjectRequest) String() string