models

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWalletFromKey

func NewWalletFromKey(key *entities.Wallet, attr *entities.Attributes) *entities.Wallet

Types

type Wallet

type Wallet struct {
	Pubkey              string `pg:",pk"`
	StoreID             string `pg:",pk"`
	PublicKey           []byte
	CompressedPublicKey []byte
	Tags                map[string]string
	Extra               map[string]interface{}

	Disabled  bool
	CreatedAt time.Time `pg:"default:now()"`
	UpdatedAt time.Time `pg:"default:now()"`
	DeletedAt time.Time `pg:",soft_delete"`
	// contains filtered or unexported fields
}

func NewWallet

func NewWallet(account *entities.Wallet) *Wallet

func (*Wallet) ToEntity

func (w *Wallet) ToEntity() *entities.Wallet

Jump to

Keyboard shortcuts

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