Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataURIHTTPGateway ¶
type DataURIHTTPGateway struct {
// contains filtered or unexported fields
}
DataURIHTTPGateway is a test http server for bidbot data uris.
func NewDataURIHTTPGateway ¶
func NewDataURIHTTPGateway(dag format.DAGService) *DataURIHTTPGateway
NewDataURIHTTPGateway returns a new *DataURIHTTPGateway for testing.
func (*DataURIHTTPGateway) CreateHTTPSources ¶
func (g *DataURIHTTPGateway) CreateHTTPSources(serve bool) (cid.Cid, auction.Sources, error)
CreateHTTPSources creates a uri and wraps it into auction.Sources.
func (*DataURIHTTPGateway) CreateURI ¶
func (g *DataURIHTTPGateway) CreateURI(serve bool) (cid.Cid, string, error)
CreateURI creates a uri that will be served over the gateway if serve is true.
func (*DataURIHTTPGateway) CreateURIWithWrongRoot ¶
func (g *DataURIHTTPGateway) CreateURIWithWrongRoot() (cid.Cid, string, error)
CreateURIWithWrongRoot creates a uri whos cid points to a car file with the wrong root.
Click to show internal directories.
Click to hide internal directories.