Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrForbidden = errors.New("forbidden") ErrNotFound = errors.New("not found") ErrMethodNotAllowed = errors.New("method not allowed") ErrTooManyRequests = errors.New("too many requests") ErrInternalServerError = errors.New("internal server error") ErrMaintenance = errors.New("maintenance") )
Errors that are returned by the API.
Functions ¶
Types ¶
type Addresses ¶
type Addresses struct { Overlay swarm.Address `json:"overlay"` Underlay []string `json:"underlay"` }
Addresses ...
type BadRequestError ¶
type BadRequestError struct {
// contains filtered or unexported fields
}
BadRequestError holds list of errors from http response that represent invalid data submitted by the user.
func NewBadRequestError ¶
func NewBadRequestError(errors ...string) (err *BadRequestError)
NewBadRequestError constructs a new BadRequestError with provided errors.
func (*BadRequestError) Error ¶
func (e *BadRequestError) Error() (s string)
func (*BadRequestError) Errors ¶
func (e *BadRequestError) Errors() (errs []string)
Errors returns a list of error messages.
type Client ¶
type Client struct { // Services that API provides. Node *NodeService // contains filtered or unexported fields }
Client manages communication with the Bee Debug API.
type ClientOptions ¶
ClientOptions holds optional parameters for the Client.
type NodeService ¶
type NodeService service
NodeService ...
func (*NodeService) Addresses ¶
func (n *NodeService) Addresses(ctx context.Context) (resp Addresses, err error)
Addresses ...
func (*NodeService) HasChunk ¶ added in v0.1.3
func (n *NodeService) HasChunk(ctx context.Context, address swarm.Address) (resp StatusResponse, err error)
HasChunk ...
type StatusResponse ¶ added in v0.1.3
type StatusResponse struct { Message string `json:"message,omitempty"` Code int `json:"code,omitempty"` }
StatusResponse ...
Click to show internal directories.
Click to hide internal directories.