models

package
v0.0.0-...-f5bbbf4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewETHAccountFromKey

func NewETHAccountFromKey(key *entities.Key, attr *entities.Attributes) *entities.ETHAccount

Types

type ETHAccount

type ETHAccount struct {
	Address             string `pg:",pk"`
	StoreID             string `pg:",pk"`
	KeyID               string
	PublicKey           []byte
	CompressedPublicKey []byte
	Tags                map[string]string
	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 NewETHAccount

func NewETHAccount(account *entities.ETHAccount) *ETHAccount

func (*ETHAccount) ToEntity

func (eth *ETHAccount) ToEntity() *entities.ETHAccount

type Key

type Key struct {
	ID               string `pg:",pk"`
	StoreID          string `pg:",pk"`
	PublicKey        []byte
	SigningAlgorithm string
	EllipticCurve    string
	Tags             map[string]string
	Annotations      *entities.Annotation
	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 NewKey

func NewKey(key *entities.Key) *Key

func (*Key) ToEntity

func (k *Key) ToEntity() *entities.Key

type Secret

type Secret struct {
	ID        string `pg:",pk"`
	Version   string `pg:",pk"`
	StoreID   string `pg:",pk"`
	Tags      map[string]string
	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 NewSecret

func NewSecret(secret *entities.Secret) *Secret

func (*Secret) ToEntity

func (s *Secret) ToEntity() *entities.Secret

Jump to

Keyboard shortcuts

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