apitest

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 15 Imported by: 0

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) Close

func (g *DataURIHTTPGateway) Close()

Close it.

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.

Jump to

Keyboard shortcuts

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