httpapi

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(listenAddr string, service Service) (*http.Server, error)

NewServer returns a new http server for bidbot commands.

Types

type Service

type Service interface {
	PeerInfo() (*peer.Info, error)
	ListBids(query bidstore.Query) ([]*bidstore.Bid, error)
	GetBid(ctx context.Context, id auction.BidID) (*bidstore.Bid, error)
	WriteDataURI(payloadCid, uri string) (string, error)
	SetPaused(paused bool)
}

Service provides scoped access to the bidbot service.

Jump to

Keyboard shortcuts

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