routes

package
v0.0.2-dev Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

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

type IRequester

type IRequester interface {
	GetName() string
	GetRoute() string
	GetClient() *http.Client
}

Jump to

Keyboard shortcuts

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