publicapi

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const APIApproveSuffix = "approve"
View Source
const APIDebugSuffix = "debug"
View Source
const APIPrefix = "compute/"

Variables

This section is empty.

Functions

This section is empty.

Types

type ComputeAPIClient

type ComputeAPIClient struct {
	publicapi.APIClient
}

ComputeAPIClient is a utility for interacting with a node's API server.

func NewComputeAPIClient

func NewComputeAPIClient(host string, port uint16, path ...string) *ComputeAPIClient

NewComputeAPIClient returns a new client for a node's API server.

func NewComputeAPIClientFromClient

func NewComputeAPIClientFromClient(baseClient *publicapi.APIClient) *ComputeAPIClient

NewComputeAPIClientFromClient returns a new client for a node's API server.

func (*ComputeAPIClient) Debug

func (apiClient *ComputeAPIClient) Debug(ctx context.Context) (map[string]model.DebugInfo, error)

type ComputeAPIServer

type ComputeAPIServer struct {
	// contains filtered or unexported fields
}

func NewComputeAPIServer

func NewComputeAPIServer(params ComputeAPIServerParams) *ComputeAPIServer

func (*ComputeAPIServer) RegisterAllHandlers

func (s *ComputeAPIServer) RegisterAllHandlers() error

type ComputeAPIServerParams

type ComputeAPIServerParams struct {
	APIServer          *publicapi.APIServer
	Bidder             compute.Bidder
	Store              store.ExecutionStore
	DebugInfoProviders []model.DebugInfoProvider
}

Jump to

Keyboard shortcuts

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