Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base interface { MiddlewareInfo() (rpcmessages.SampleInfoResponse, error) VerificationProgress() (rpcmessages.VerificationProgressResponse, error) ConnectElectrum() error Status() bitboxbasestatus.Status ChannelHash() (string, bool) Deregister() (bool, error) SyncWithOption(bitboxbase.SyncOption) (bool, error) }
Base models the api of the base middleware
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.