types

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Quota

type Quota struct {
	Address   string `json:"address"`
	Consumed  int64  `json:"consumed"`
	Allocated int64  `json:"allocated"`
}

func NewQuotaFromRaw

func NewQuotaFromRaw(v *subscriptiontypes.Quota) Quota

type Quotas

type Quotas []Quota

func NewQuotasFromRaw

func NewQuotasFromRaw(v subscriptiontypes.Quotas) Quotas

type Subscription

type Subscription struct {
	ID       uint64           `json:"id"`
	Owner    string           `json:"owner"`
	Plan     uint64           `json:"plan"`
	Expiry   time.Time        `json:"expiry"`
	Denom    string           `json:"denom"`
	Node     string           `json:"node"`
	Price    clienttypes.Coin `json:"price"`
	Deposit  clienttypes.Coin `json:"deposit"`
	Free     int64            `json:"free"`
	Status   string           `json:"status"`
	StatusAt time.Time        `json:"status_at"`
}

type Subscriptions

type Subscriptions []Subscription

Jump to

Keyboard shortcuts

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