mockindexer

package
v0.9.3-rc1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: Apache-2.0, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIndexer

type MockIndexer struct {
	// contains filtered or unexported fields
}

func NewMockIndexer

func NewMockIndexer(ctx context.Context, address string, port uint64, cidProviders map[cid.Cid][]model.ProviderResult, clock clock.Clock) (*MockIndexer, error)

func (*MockIndexer) Addr

func (s *MockIndexer) Addr() string

Addr returns the listening address of the server

func (*MockIndexer) Close

func (s *MockIndexer) Close() error

Close shutsdown the server and cancels the server context

func (*MockIndexer) Start

func (s *MockIndexer) Start() error

Start starts the http server, returning an error if the server failed to start

Jump to

Keyboard shortcuts

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