Documentation ¶
Index ¶
- func NewMockServer(index map[cid.Cid][]peer.AddrInfo) http.HandlerFunc
- type MockServer
- func (x MockServer) FindProviders(ctx context.Context, key cid.Cid) (<-chan client.FindProvidersAsyncResult, error)
- func (x MockServer) GetIPNS(ctx context.Context, id []byte) (<-chan client.GetIPNSAsyncResult, error)
- func (x MockServer) PutIPNS(ctx context.Context, id []byte, record []byte) (<-chan client.PutIPNSAsyncResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockServer ¶
func NewMockServer(index map[cid.Cid][]peer.AddrInfo) http.HandlerFunc
Types ¶
type MockServer ¶
func (MockServer) FindProviders ¶
func (x MockServer) FindProviders(ctx context.Context, key cid.Cid) (<-chan client.FindProvidersAsyncResult, error)
func (MockServer) GetIPNS ¶
func (x MockServer) GetIPNS(ctx context.Context, id []byte) (<-chan client.GetIPNSAsyncResult, error)
func (MockServer) PutIPNS ¶
func (x MockServer) PutIPNS(ctx context.Context, id []byte, record []byte) (<-chan client.PutIPNSAsyncResult, error)
Click to show internal directories.
Click to hide internal directories.