Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bitbox ¶
type Bitbox interface {
Status() bitbox.Status
BootloaderStatus() (*bitbox.BootloaderStatus, error)
DeviceInfo() (*bitbox.DeviceInfo, error)
SetPassword(string) error
ChangePassword(string, string) error
SetHiddenPassword(string, string) (bool, error)
CreateWallet(string, string) error
Login(string) (bool, string, error)
Blink() error
Random(string) (string, error)
Reset(string) (bool, error)
UnlockBootloader() (bool, error)
LockBootloader() error
EraseBackup(string) error
RestoreBackup(string, string) (bool, error)
CreateBackup(string, string) (bool, error)
BackupList() ([]map[string]string, error)
BootloaderUpgradeFirmware([]byte) error
StartPairing() (*relay.Channel, error)
HasMobileChannel() bool
Lock() (bool, error)
CheckBackup(string, string) (bool, error)
FeatureSet(*bitbox.FeatureSet) error
}
Bitbox models the API of a Bitbox.
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
Handlers provides a web API to the Bitbox.
func NewHandlers ¶
func NewHandlers( handleFunc func(string, func(*http.Request) (interface{}, error)) *mux.Route, log *logrus.Entry, ) *Handlers
NewHandlers creates a new Handlers instance.
Click to show internal directories.
Click to hide internal directories.