httpapi

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: MIT Imports: 12 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(id auction.BidID) (*bidstore.Bid, error)
	WriteDataURI(payloadCid, uri string) (string, error)
}

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