Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiRequester ¶
type ApiRequester struct { Example *ExampleRequester // contains filtered or unexported fields }
Binder for the Hyperdrive daemon API server
func NewApiRequester ¶
func NewApiRequester(socketPath string) *ApiRequester
Creates a new API requester instance
type ExampleRequester ¶
type ExampleRequester struct {
// contains filtered or unexported fields
}
func NewExampleRequester ¶
func NewExampleRequester(client *http.Client) *ExampleRequester
func (*ExampleRequester) CallDaemon ¶
func (r *ExampleRequester) CallDaemon(command string) (*api.ApiResponse[api.CallDaemonData], error)
Get the response from a subset of the Rocket Pool daemon's `network` commands
func (*ExampleRequester) GetClient ¶
func (r *ExampleRequester) GetClient() *http.Client
func (*ExampleRequester) GetName ¶
func (r *ExampleRequester) GetName() string
func (*ExampleRequester) GetRoute ¶
func (r *ExampleRequester) GetRoute() string
Click to show internal directories.
Click to hide internal directories.