Documentation ¶
Index ¶
- type Account
- func AccountCreate(ctx context.Context, address common.Address, databaseClient *gorm.DB, ...) (*Account, error)
- func AccountGetByAddress(ctx context.Context, address common.Address, databaseClient *gorm.DB, ...) (*Account, bool, error)
- func AccountGetOrCreate(ctx context.Context, address common.Address, databaseClient *gorm.DB, ...) (*Account, error)
- func (acc *Account) GetBalance(ctx context.Context) (int64, error)
- func (acc *Account) GetKey(ctx context.Context, keyID uint64) (*Key, bool, error)
- func (acc *Account) GetUsage(ctx context.Context) (int64, int64, int64, int64, error)
- func (acc *Account) GetUsageByDate(ctx context.Context, since time.Time, until time.Time) (*[]schema.UsageByDate, error)
- func (acc *Account) ListKeys(ctx context.Context) ([]*Key, error)
- type Key
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { table.GatewayAccount // contains filtered or unexported fields }
func AccountCreate ¶
func AccountGetByAddress ¶
func AccountGetOrCreate ¶
func (*Account) GetUsageByDate ¶
type Key ¶
type Key struct { table.GatewayKey // contains filtered or unexported fields }
func KeyGetByID ¶
Click to show internal directories.
Click to hide internal directories.