view

package
v0.0.0-...-827a594 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2020 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInput = errors.New("input error")
View Source
var SplashCreateView = SplashView{rowBlank(2), rowTitle(), rowCreateTip(), rowCreateEnter()}
View Source
var SplashStartView = SplashView{rowBlank(2), rowTitle(), rowStartTip(), rowProjectUrl(), rowEnter()}

Functions

func ShowSplashView

func ShowSplashView(rows SplashView)

Types

type AccountView

type AccountView struct {
	GridView

	Data interface{}
	// contains filtered or unexported fields
}

func NewAccountView

func NewAccountView(ws []*wallet.Wallet) (v *AccountView)

type GridView

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

func NewTipView

func NewTipView(name string) (view *GridView)

func (*GridView) Control

func (v *GridView) Control(name string) *GridViewControl

func (*GridView) Show

func (v *GridView) Show()

func (*GridView) Update

func (v *GridView) Update()

type GridViewControl

type GridViewControl struct {
	Name     string
	Element  interface{}
	Handlers HandlerMap
	Data     interface{}
}

func NewGridViewControl

func NewGridViewControl(name string, element ui.GridBufferer, handlers HandlerMap) *GridViewControl

type HandlerMap

type HandlerMap map[string]func(ui.Event)

type SplashView

type SplashView []*ui.Row

type WalletParam

type WalletParam struct {
	Secret string
	Salt   string
}

func InputNewParameters

func InputNewParameters(chance uint32) (wp *WalletParam, err error)

func (*WalletParam) SaltBytes

func (wp *WalletParam) SaltBytes() []byte

func (*WalletParam) SecretBytes

func (wp *WalletParam) SecretBytes() []byte

Jump to

Keyboard shortcuts

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