console

package
v2.3.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2018 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package console is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler() http.Handler

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 RegisterConsoleServer

func RegisterConsoleServer(s *grpc.Server, srv ConsoleServer)

Types

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"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

* Deletion request for a user account.

func (*AccountDeleteRequest) Descriptor

func (*AccountDeleteRequest) Descriptor() ([]byte, []int)

func (*AccountDeleteRequest) GetId

func (m *AccountDeleteRequest) GetId() string

func (*AccountDeleteRequest) GetRecordDeletion

func (m *AccountDeleteRequest) GetRecordDeletion() *wrappers.BoolValue

func (*AccountDeleteRequest) ProtoMessage

func (*AccountDeleteRequest) ProtoMessage()

func (*AccountDeleteRequest) Reset

func (m *AccountDeleteRequest) Reset()

func (*AccountDeleteRequest) String

func (m *AccountDeleteRequest) String() string

func (*AccountDeleteRequest) XXX_DiscardUnknown

func (m *AccountDeleteRequest) XXX_DiscardUnknown()

func (*AccountDeleteRequest) XXX_Marshal

func (m *AccountDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccountDeleteRequest) XXX_Merge

func (m *AccountDeleteRequest) XXX_Merge(src proto.Message)

func (*AccountDeleteRequest) XXX_Size

func (m *AccountDeleteRequest) XXX_Size() int

func (*AccountDeleteRequest) XXX_Unmarshal

func (m *AccountDeleteRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

* An export of all information stored for a user account.

func (*AccountExport) Descriptor

func (*AccountExport) Descriptor() ([]byte, []int)

func (*AccountExport) GetAccount

func (m *AccountExport) GetAccount() *api.Account

func (*AccountExport) GetFriends

func (m *AccountExport) GetFriends() []*api.Friend

func (*AccountExport) GetGroups

func (m *AccountExport) GetGroups() []*api.Group

func (*AccountExport) GetLeaderboardRecords

func (m *AccountExport) GetLeaderboardRecords() []*api.LeaderboardRecord

func (*AccountExport) GetMessages

func (m *AccountExport) GetMessages() []*api.ChannelMessage

func (*AccountExport) GetNotifications

func (m *AccountExport) GetNotifications() []*api.Notification

func (*AccountExport) GetObjects

func (m *AccountExport) GetObjects() []*api.StorageObject

func (*AccountExport) GetWalletLedgers

func (m *AccountExport) GetWalletLedgers() []*WalletLedger

func (*AccountExport) ProtoMessage

func (*AccountExport) ProtoMessage()

func (*AccountExport) Reset

func (m *AccountExport) Reset()

func (*AccountExport) String

func (m *AccountExport) String() string

func (*AccountExport) XXX_DiscardUnknown

func (m *AccountExport) XXX_DiscardUnknown()

func (*AccountExport) XXX_Marshal

func (m *AccountExport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccountExport) XXX_Merge

func (m *AccountExport) XXX_Merge(src proto.Message)

func (*AccountExport) XXX_Size

func (m *AccountExport) XXX_Size() int

func (*AccountExport) XXX_Unmarshal

func (m *AccountExport) XXX_Unmarshal(b []byte) error

type AccountIdRequest

type AccountIdRequest struct {
	// The unique identifier of the user account.
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* The identifier for a user account.

func (*AccountIdRequest) Descriptor

func (*AccountIdRequest) Descriptor() ([]byte, []int)

func (*AccountIdRequest) GetId

func (m *AccountIdRequest) GetId() string

func (*AccountIdRequest) ProtoMessage

func (*AccountIdRequest) ProtoMessage()

func (*AccountIdRequest) Reset

func (m *AccountIdRequest) Reset()

func (*AccountIdRequest) String

func (m *AccountIdRequest) String() string

func (*AccountIdRequest) XXX_DiscardUnknown

func (m *AccountIdRequest) XXX_DiscardUnknown()

func (*AccountIdRequest) XXX_Marshal

func (m *AccountIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccountIdRequest) XXX_Merge

func (m *AccountIdRequest) XXX_Merge(src proto.Message)

func (*AccountIdRequest) XXX_Size

func (m *AccountIdRequest) XXX_Size() int

func (*AccountIdRequest) XXX_Unmarshal

func (m *AccountIdRequest) XXX_Unmarshal(b []byte) error

type AccountList

type AccountList struct {
	Accounts             []*api.Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

* Get the recent list of accounts.

func (*AccountList) Descriptor

func (*AccountList) Descriptor() ([]byte, []int)

func (*AccountList) GetAccounts

func (m *AccountList) GetAccounts() []*api.Account

func (*AccountList) ProtoMessage

func (*AccountList) ProtoMessage()

func (*AccountList) Reset

func (m *AccountList) Reset()

func (*AccountList) String

func (m *AccountList) String() string

func (*AccountList) XXX_DiscardUnknown

func (m *AccountList) XXX_DiscardUnknown()

func (*AccountList) XXX_Marshal

func (m *AccountList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccountList) XXX_Merge

func (m *AccountList) XXX_Merge(src proto.Message)

func (*AccountList) XXX_Size

func (m *AccountList) XXX_Size() int

func (*AccountList) XXX_Unmarshal

func (m *AccountList) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Authenticate against the server with username+password.

func (*AuthenticateRequest) Descriptor

func (*AuthenticateRequest) Descriptor() ([]byte, []int)

func (*AuthenticateRequest) GetPassword

func (m *AuthenticateRequest) GetPassword() string

func (*AuthenticateRequest) GetUsername

func (m *AuthenticateRequest) GetUsername() string

func (*AuthenticateRequest) ProtoMessage

func (*AuthenticateRequest) ProtoMessage()

func (*AuthenticateRequest) Reset

func (m *AuthenticateRequest) Reset()

func (*AuthenticateRequest) String

func (m *AuthenticateRequest) String() string

func (*AuthenticateRequest) XXX_DiscardUnknown

func (m *AuthenticateRequest) XXX_DiscardUnknown()

func (*AuthenticateRequest) XXX_Marshal

func (m *AuthenticateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthenticateRequest) XXX_Merge

func (m *AuthenticateRequest) XXX_Merge(src proto.Message)

func (*AuthenticateRequest) XXX_Size

func (m *AuthenticateRequest) XXX_Size() int

func (*AuthenticateRequest) XXX_Unmarshal

func (m *AuthenticateRequest) XXX_Unmarshal(b []byte) error

type ConsoleClient

type ConsoleClient interface {
	// Authenticate a user with username+password.
	Login(ctx context.Context, in *AuthenticateRequest, 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 all accounts.
	DeleteAccounts(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 all storage objects.
	DeleteStorageObjects(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
	// Export all information stored about a user account.
	ExportAccount(ctx context.Context, in *AccountIdRequest, opts ...grpc.CallOption) (*AccountExport, error)
	// Get info about a particular account
	GetAccount(ctx context.Context, in *AccountIdRequest, opts ...grpc.CallOption) (*api.Account, error)
	// Get a storage object
	GetStorage(ctx context.Context, in *GetStorageObjectRequest, opts ...grpc.CallOption) (*StorageObject, error)
	// List all recent accounts.
	ListAccounts(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*AccountList, error)
	// List all storage collections.
	ListStorageCollections(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*StorageCollectionList, error)
	// List storage objects in a given collection.
	ListStorageObjects(ctx context.Context, in *ListStorageObjectRequest, opts ...grpc.CallOption) (*StorageObjectList, error)
	// Create or overwrite a storage object.
	WriteStorageObject(ctx context.Context, in *WriteStorageObjectRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}

ConsoleClient is the client API for Console service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewConsoleClient

func NewConsoleClient(cc *grpc.ClientConn) ConsoleClient

type ConsoleServer

type ConsoleServer interface {
	// Authenticate a user with username+password.
	Login(context.Context, *AuthenticateRequest) (*empty.Empty, error)
	// Delete all information stored for a user account.
	DeleteAccount(context.Context, *AccountDeleteRequest) (*empty.Empty, error)
	// Delete all accounts.
	DeleteAccounts(context.Context, *empty.Empty) (*empty.Empty, error)
	// Delete a storage object.
	DeleteStorageObject(context.Context, *DeleteStorageObjectRequest) (*empty.Empty, error)
	// Delete all storage objects.
	DeleteStorageObjects(context.Context, *empty.Empty) (*empty.Empty, error)
	// Export all information stored about a user account.
	ExportAccount(context.Context, *AccountIdRequest) (*AccountExport, error)
	// Get info about a particular account
	GetAccount(context.Context, *AccountIdRequest) (*api.Account, error)
	// Get a storage object
	GetStorage(context.Context, *GetStorageObjectRequest) (*StorageObject, error)
	// List all recent accounts.
	ListAccounts(context.Context, *empty.Empty) (*AccountList, error)
	// List all storage collections.
	ListStorageCollections(context.Context, *empty.Empty) (*StorageCollectionList, error)
	// List storage objects in a given collection.
	ListStorageObjects(context.Context, *ListStorageObjectRequest) (*StorageObjectList, error)
	// Create or overwrite a storage object.
	WriteStorageObject(context.Context, *WriteStorageObjectRequest) (*empty.Empty, error)
}

ConsoleServer is the server API for Console service.

type DeleteStorageObjectRequest

type DeleteStorageObjectRequest struct {
	// The collection which stores the object.
	Collection string `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"`
	// The key of the object within the collection.
	Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// ID of the user that this object belongs to.
	UserId               string   `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Delete a storage object.

func (*DeleteStorageObjectRequest) Descriptor

func (*DeleteStorageObjectRequest) Descriptor() ([]byte, []int)

func (*DeleteStorageObjectRequest) GetCollection

func (m *DeleteStorageObjectRequest) GetCollection() string

func (*DeleteStorageObjectRequest) GetKey

func (m *DeleteStorageObjectRequest) GetKey() string

func (*DeleteStorageObjectRequest) GetUserId

func (m *DeleteStorageObjectRequest) GetUserId() string

func (*DeleteStorageObjectRequest) ProtoMessage

func (*DeleteStorageObjectRequest) ProtoMessage()

func (*DeleteStorageObjectRequest) Reset

func (m *DeleteStorageObjectRequest) Reset()

func (*DeleteStorageObjectRequest) String

func (m *DeleteStorageObjectRequest) String() string

func (*DeleteStorageObjectRequest) XXX_DiscardUnknown

func (m *DeleteStorageObjectRequest) XXX_DiscardUnknown()

func (*DeleteStorageObjectRequest) XXX_Marshal

func (m *DeleteStorageObjectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteStorageObjectRequest) XXX_Merge

func (m *DeleteStorageObjectRequest) XXX_Merge(src proto.Message)

func (*DeleteStorageObjectRequest) XXX_Size

func (m *DeleteStorageObjectRequest) XXX_Size() int

func (*DeleteStorageObjectRequest) XXX_Unmarshal

func (m *DeleteStorageObjectRequest) XXX_Unmarshal(b []byte) error

type GetStorageObjectRequest

type GetStorageObjectRequest struct {
	// The collection which stores the object.
	Collection string `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"`
	// The key of the object within the collection.
	Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// The user owner of the object.
	UserId               string   `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Retrieve a storage object.

func (*GetStorageObjectRequest) Descriptor

func (*GetStorageObjectRequest) Descriptor() ([]byte, []int)

func (*GetStorageObjectRequest) GetCollection

func (m *GetStorageObjectRequest) GetCollection() string

func (*GetStorageObjectRequest) GetKey

func (m *GetStorageObjectRequest) GetKey() string

func (*GetStorageObjectRequest) GetUserId

func (m *GetStorageObjectRequest) GetUserId() string

func (*GetStorageObjectRequest) ProtoMessage

func (*GetStorageObjectRequest) ProtoMessage()

func (*GetStorageObjectRequest) Reset

func (m *GetStorageObjectRequest) Reset()

func (*GetStorageObjectRequest) String

func (m *GetStorageObjectRequest) String() string

func (*GetStorageObjectRequest) XXX_DiscardUnknown

func (m *GetStorageObjectRequest) XXX_DiscardUnknown()

func (*GetStorageObjectRequest) XXX_Marshal

func (m *GetStorageObjectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetStorageObjectRequest) XXX_Merge

func (m *GetStorageObjectRequest) XXX_Merge(src proto.Message)

func (*GetStorageObjectRequest) XXX_Size

func (m *GetStorageObjectRequest) XXX_Size() int

func (*GetStorageObjectRequest) XXX_Unmarshal

func (m *GetStorageObjectRequest) XXX_Unmarshal(b []byte) error

type ListStorageObjectRequest

type ListStorageObjectRequest struct {
	// The collection which stores the object.
	Collection string `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"`
	// ID of the user that this object belongs to.
	UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// The cursor to page through results from.
	Cursor               string   `protobuf:"bytes,3,opt,name=cursor,proto3" json:"cursor,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

List object belonging to a user and/or a collection.

func (*ListStorageObjectRequest) Descriptor

func (*ListStorageObjectRequest) Descriptor() ([]byte, []int)

func (*ListStorageObjectRequest) GetCollection

func (m *ListStorageObjectRequest) GetCollection() string

func (*ListStorageObjectRequest) GetCursor

func (m *ListStorageObjectRequest) GetCursor() string

func (*ListStorageObjectRequest) GetUserId

func (m *ListStorageObjectRequest) GetUserId() string

func (*ListStorageObjectRequest) ProtoMessage

func (*ListStorageObjectRequest) ProtoMessage()

func (*ListStorageObjectRequest) Reset

func (m *ListStorageObjectRequest) Reset()

func (*ListStorageObjectRequest) String

func (m *ListStorageObjectRequest) String() string

func (*ListStorageObjectRequest) XXX_DiscardUnknown

func (m *ListStorageObjectRequest) XXX_DiscardUnknown()

func (*ListStorageObjectRequest) XXX_Marshal

func (m *ListStorageObjectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListStorageObjectRequest) XXX_Merge

func (m *ListStorageObjectRequest) XXX_Merge(src proto.Message)

func (*ListStorageObjectRequest) XXX_Size

func (m *ListStorageObjectRequest) XXX_Size() int

func (*ListStorageObjectRequest) XXX_Unmarshal

func (m *ListStorageObjectRequest) XXX_Unmarshal(b []byte) error

type StorageCollectionList

type StorageCollectionList struct {
	// Storage collections.
	Collections          []string `protobuf:"bytes,1,rep,name=collections,proto3" json:"collections,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* List of collections available in storage.

func (*StorageCollectionList) Descriptor

func (*StorageCollectionList) Descriptor() ([]byte, []int)

func (*StorageCollectionList) GetCollections

func (m *StorageCollectionList) GetCollections() []string

func (*StorageCollectionList) ProtoMessage

func (*StorageCollectionList) ProtoMessage()

func (*StorageCollectionList) Reset

func (m *StorageCollectionList) Reset()

func (*StorageCollectionList) String

func (m *StorageCollectionList) String() string

func (*StorageCollectionList) XXX_DiscardUnknown

func (m *StorageCollectionList) XXX_DiscardUnknown()

func (*StorageCollectionList) XXX_Marshal

func (m *StorageCollectionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StorageCollectionList) XXX_Merge

func (m *StorageCollectionList) XXX_Merge(src proto.Message)

func (*StorageCollectionList) XXX_Size

func (m *StorageCollectionList) XXX_Size() int

func (*StorageCollectionList) XXX_Unmarshal

func (m *StorageCollectionList) XXX_Unmarshal(b []byte) error

type StorageObject

type StorageObject struct {
	// The collection to store the object.
	Collection string `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"`
	// The key for the object within the collection.
	Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// ID of the user that this object belongs to.
	UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// The value of the object.
	Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	// The read access permissions for the object.
	PermissionRead int32 `protobuf:"varint,5,opt,name=permission_read,json=permissionRead,proto3" json:"permission_read,omitempty"`
	// The write access permissions for the object.
	PermissionWrite      int32    `protobuf:"varint,6,opt,name=permission_write,json=permissionWrite,proto3" json:"permission_write,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A storage record.

func (*StorageObject) Descriptor

func (*StorageObject) Descriptor() ([]byte, []int)

func (*StorageObject) GetCollection

func (m *StorageObject) GetCollection() string

func (*StorageObject) GetKey

func (m *StorageObject) GetKey() string

func (*StorageObject) GetPermissionRead

func (m *StorageObject) GetPermissionRead() int32

func (*StorageObject) GetPermissionWrite

func (m *StorageObject) GetPermissionWrite() int32

func (*StorageObject) GetUserId

func (m *StorageObject) GetUserId() string

func (*StorageObject) GetValue

func (m *StorageObject) GetValue() string

func (*StorageObject) ProtoMessage

func (*StorageObject) ProtoMessage()

func (*StorageObject) Reset

func (m *StorageObject) Reset()

func (*StorageObject) String

func (m *StorageObject) String() string

func (*StorageObject) XXX_DiscardUnknown

func (m *StorageObject) XXX_DiscardUnknown()

func (*StorageObject) XXX_Marshal

func (m *StorageObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StorageObject) XXX_Merge

func (m *StorageObject) XXX_Merge(src proto.Message)

func (*StorageObject) XXX_Size

func (m *StorageObject) XXX_Size() int

func (*StorageObject) XXX_Unmarshal

func (m *StorageObject) XXX_Unmarshal(b []byte) error

type StorageObjectList

type StorageObjectList struct {
	// The list of storage objects.
	Objects []*StorageObject `protobuf:"bytes,1,rep,name=objects,proto3" json:"objects,omitempty"`
	// The cursor associated with the query a page of results.
	Cursor               string   `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* List of objects in a given collection.

func (*StorageObjectList) Descriptor

func (*StorageObjectList) Descriptor() ([]byte, []int)

func (*StorageObjectList) GetCursor

func (m *StorageObjectList) GetCursor() string

func (*StorageObjectList) GetObjects

func (m *StorageObjectList) GetObjects() []*StorageObject

func (*StorageObjectList) ProtoMessage

func (*StorageObjectList) ProtoMessage()

func (*StorageObjectList) Reset

func (m *StorageObjectList) Reset()

func (*StorageObjectList) String

func (m *StorageObjectList) String() string

func (*StorageObjectList) XXX_DiscardUnknown

func (m *StorageObjectList) XXX_DiscardUnknown()

func (*StorageObjectList) XXX_Marshal

func (m *StorageObjectList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StorageObjectList) XXX_Merge

func (m *StorageObjectList) XXX_Merge(src proto.Message)

func (*StorageObjectList) XXX_Size

func (m *StorageObjectList) XXX_Size() int

func (*StorageObjectList) XXX_Unmarshal

func (m *StorageObjectList) XXX_Unmarshal(b []byte) error

type WalletLedger

type WalletLedger struct {
	// The unique ID of the change.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The user ID this change belongs to.
	UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// The changes to the wallet.
	Changeset string `protobuf:"bytes,3,opt,name=changeset,proto3" json:"changeset,omitempty"`
	// 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,8,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,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

* A wallet ledger item representing a change to the user's wallet.

func (*WalletLedger) Descriptor

func (*WalletLedger) Descriptor() ([]byte, []int)

func (*WalletLedger) GetChangeset

func (m *WalletLedger) GetChangeset() string

func (*WalletLedger) GetCreateTime

func (m *WalletLedger) GetCreateTime() *timestamp.Timestamp

func (*WalletLedger) GetId

func (m *WalletLedger) GetId() string

func (*WalletLedger) GetMetadata

func (m *WalletLedger) GetMetadata() string

func (*WalletLedger) GetUpdateTime

func (m *WalletLedger) GetUpdateTime() *timestamp.Timestamp

func (*WalletLedger) GetUserId

func (m *WalletLedger) GetUserId() string

func (*WalletLedger) ProtoMessage

func (*WalletLedger) ProtoMessage()

func (*WalletLedger) Reset

func (m *WalletLedger) Reset()

func (*WalletLedger) String

func (m *WalletLedger) String() string

func (*WalletLedger) XXX_DiscardUnknown

func (m *WalletLedger) XXX_DiscardUnknown()

func (*WalletLedger) XXX_Marshal

func (m *WalletLedger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WalletLedger) XXX_Merge

func (m *WalletLedger) XXX_Merge(src proto.Message)

func (*WalletLedger) XXX_Size

func (m *WalletLedger) XXX_Size() int

func (*WalletLedger) XXX_Unmarshal

func (m *WalletLedger) XXX_Unmarshal(b []byte) error

type WriteStorageObjectRequest

type WriteStorageObjectRequest struct {
	Object               *StorageObject `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

Write an object to storage.

func (*WriteStorageObjectRequest) Descriptor

func (*WriteStorageObjectRequest) Descriptor() ([]byte, []int)

func (*WriteStorageObjectRequest) GetObject

func (m *WriteStorageObjectRequest) GetObject() *StorageObject

func (*WriteStorageObjectRequest) ProtoMessage

func (*WriteStorageObjectRequest) ProtoMessage()

func (*WriteStorageObjectRequest) Reset

func (m *WriteStorageObjectRequest) Reset()

func (*WriteStorageObjectRequest) String

func (m *WriteStorageObjectRequest) String() string

func (*WriteStorageObjectRequest) XXX_DiscardUnknown

func (m *WriteStorageObjectRequest) XXX_DiscardUnknown()

func (*WriteStorageObjectRequest) XXX_Marshal

func (m *WriteStorageObjectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WriteStorageObjectRequest) XXX_Merge

func (m *WriteStorageObjectRequest) XXX_Merge(src proto.Message)

func (*WriteStorageObjectRequest) XXX_Size

func (m *WriteStorageObjectRequest) XXX_Size() int

func (*WriteStorageObjectRequest) XXX_Unmarshal

func (m *WriteStorageObjectRequest) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL