Documentation ¶
Index ¶
- type Asset
- type Broker
- func (b Broker) GetSnapshot(ctx context.Context, snapshotID string) (*Snapshot, error)
- func (b Broker) IsDebug() bool
- func (b Broker) Login(ctx context.Context, foxId string) (*UserResponse, error)
- func (b Broker) PullSnapshots(ctx context.Context, userId, assetId, cursor string, asc bool, limit int) (*SnapshotResponse, error)
- func (b Broker) Register(ctx context.Context, traceId, name, avatar string) (*UserResponse, error)
- func (b Broker) Signature(ts int64, nonce string) string
- type Config
- type Err
- type OffsetPagination
- type SingleSnapshotResponse
- type Snapshot
- type SnapshotResponse
- type SnapshotUser
- type Snapshots
- type User
- type UserResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker struct {
// contains filtered or unexported fields
}
func (Broker) GetSnapshot ¶
func (Broker) PullSnapshots ¶
type OffsetPagination ¶
type SingleSnapshotResponse ¶
type SingleSnapshotResponse struct {
Snapshot Snapshot `json:"snapshot"`
}
type Snapshot ¶
type Snapshot struct { SnapshotId string `json:"snapshotId"` TraceId string `json:"traceId"` UserId string `json:"userId"` CreatedAt int64 `json:"createdAt"` Source string `json:"source"` Amount string `json:"amount"` InsideMixin bool `json:"insideMixin"` Memo string `json:"memo"` Sender string `json:"sender,omitempty"` Receiver string `json:"receiver,omitempty"` TransactionHash string `json:"transactionHash,omitempty"` Asset Asset `json:"asset,omitempty"` User SnapshotUser `json:"user,omitempty"` Opponent SnapshotUser `json:"opponent,omitempty"` ExtraData map[string]interface{} `json:"extraData,omitempty"` }
type SnapshotResponse ¶
type SnapshotResponse struct { Pagination OffsetPagination `json:"pagination"` Snapshots Snapshots `json:"snapshots"` }
type SnapshotUser ¶
type UserResponse ¶
Click to show internal directories.
Click to hide internal directories.