mock

package
v0.0.0-...-1a43f7c Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package mock contains mocks for testing against Indy VDR.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndyClient

type IndyClient struct {
	GetNymErr      error
	GetNymValue    *vdr.ReadReply
	GetEndpointErr error
	GetEndpointVal *vdr.ReadReply
	RefreshErr     error
	CloseErr       error
}

IndyClient is a mock for the Indy VDR.

func (*IndyClient) Close

func (r *IndyClient) Close() error

Close mocks the close method.

func (*IndyClient) GetEndpoint

func (r *IndyClient) GetEndpoint(did string) (*vdr.ReadReply, error)

GetEndpoint mocks the GetEndpoint method.

func (*IndyClient) GetNym

func (r *IndyClient) GetNym(did string) (*vdr.ReadReply, error)

GetNym mocks the GetNym method.

func (*IndyClient) GetPoolStatus

func (r *IndyClient) GetPoolStatus() (*vdr.PoolStatus, error)

GetPoolStatus mocks the GetPoolStatus method.

func (*IndyClient) RefreshPool

func (r *IndyClient) RefreshPool() error

RefreshPool mocks the RefreshPool method.

Jump to

Keyboard shortcuts

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