model

package
v0.0.0-...-bc1f52c Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IModel

type IModel interface {
	Post(string, PostInput) (io.ReadCloser, error)
}

type Model

type Model struct {
	// contains filtered or unexported fields
}

func New

func New(cfg config.BlockchainAPI, log *zap.Logger) (*Model, error)

func (*Model) CreateBlock

func (m *Model) CreateBlock(ctx context.Context, privKey string) (*api.CreateBlockOutput, error)

func (*Model) CreateWallet

func (m *Model) CreateWallet(ctx context.Context, password []byte) (*api.CreateWalletOutput, error)

func (*Model) GetBalance

func (m *Model) GetBalance(ctx context.Context, privKey string) (*api.GetBalanceOutput, error)

func (*Model) GetTraces

func (m *Model) GetTraces()

func (*Model) GetWallet

func (m *Model) GetWallet(ctx context.Context, mnemonic, password []byte) (*api.GetWalletOutput, error)

func (*Model) ShutDown

func (m *Model) ShutDown()

func (*Model) ValidWallet

func (m *Model) ValidWallet(ctx context.Context, privKey []byte) (*api.ValidWalletOutput, error)

type Option

type Option func(e *Model)

type PostInput

type PostInput interface{}

type PostOutput

type PostOutput interface{}

Jump to

Keyboard shortcuts

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