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
Click to show internal directories.
Click to hide internal directories.