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