account

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetByPublicKeyHttpHandler

func NewGetByPublicKeyHttpHandler(db *store.Store, c *client.Client) *getByPublicKeyHttpHandler

func NewGetByPublicKeyUseCase

func NewGetByPublicKeyUseCase(db *store.Store, c *client.Client) *getByPublicKeyUseCase

Types

type DetailsView

type DetailsView struct {
	*accountpb.Account

	CurrentDelegations         []model.DelegationSeq          `json:"current_delegations"`
	RecentDebondingDelegations []model.DebondingDelegationSeq `json:"recent_debonding_delegations"`
}

func ToDetailsView

func ToDetailsView(rawAccount *accountpb.Account, accountAgg *model.AccountAgg, ds []model.DelegationSeq, dds []model.DebondingDelegationSeq) *DetailsView

type Request

type Request struct {
	PublicKey string `form:"public_key" binding:"required"`
}

Jump to

Keyboard shortcuts

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