 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- type MockVDRI
- func (m *MockVDRI) Accept(method string) bool
- func (m *MockVDRI) Build(pubKey *vdriapi.PubKey, opts ...vdriapi.DocOpts) (*did.Doc, error)
- func (m *MockVDRI) Close() error
- func (m *MockVDRI) Read(didID string, opts ...vdriapi.ResolveOpts) (*did.Doc, error)
- func (m *MockVDRI) Store(doc *did.Doc, by *[]vdriapi.ModifiedBy) error
 
- type MockVDRIRegistry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockVDRI ¶
type MockVDRI struct {
	AcceptValue bool
	StoreErr    error
	ReadFunc    func(didID string, opts ...vdriapi.ResolveOpts) (*did.Doc, error)
	BuildFunc   func(pubKey *vdriapi.PubKey, opts ...vdriapi.DocOpts) (*did.Doc, error)
	CloseErr    error
}
    MockVDRI mock implementation of vdri to be used only for unit tests
type MockVDRIRegistry ¶
type MockVDRIRegistry struct {
	CreateErr    error
	CreateValue  *did.Doc
	CreateFunc   func(string, ...vdriapi.DocOpts) (*did.Doc, error)
	MemStore     map[string]*did.Doc
	PutErr       error
	ResolveErr   error
	ResolveValue *did.Doc
	ResolveFunc  func(didID string, opts ...vdriapi.ResolveOpts) (*did.Doc, error)
}
    MockVDRIRegistry mock implementation of vdri to be used only for unit tests
func (*MockVDRIRegistry) Close ¶
func (m *MockVDRIRegistry) Close() error
Close frees resources being maintained by vdri.
func (*MockVDRIRegistry) Resolve ¶
func (m *MockVDRIRegistry) Resolve(didID string, opts ...vdriapi.ResolveOpts) (*did.Doc, error)
Resolve did document
 Click to show internal directories. 
   Click to hide internal directories.