Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitBox02Bootloader ¶
type BitBox02Bootloader interface { Status() *bitbox02bootloader.Status UpgradeFirmware() error Reboot() error ShowFirmwareHashEnabled() (bool, error) SetShowFirmwareHashEnabled(bool) error Erased() (bool, error) ScreenRotate() error }
BitBox02Bootloader models the API of the bitbox02 package.
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.
func (*Handlers) Init ¶
func (handlers *Handlers) Init(device BitBox02Bootloader)
Init installs a bitbox02 bootloader as a base for the web api. This needs to be called before any requests are made.
Click to show internal directories.
Click to hide internal directories.