Documentation ¶
Overview ¶
Package addons includes ledger addons.
Index ¶
- type Indy
- func (ao *Indy) Close()
- func (ao *Indy) Open(name ...string) (ok bool)
- func (ao *Indy) Read(tx plugin.TxInfo, ID string) (name string, value string, err error)
- func (ao *Indy) ReadCredDef(tx plugin.TxInfo, credDefID string) (name string, value string, err error)
- func (ao *Indy) ReadSchema(tx plugin.TxInfo, ID string) (name string, value string, err error)
- func (ao *Indy) Write(tx plugin.TxInfo, ID, data string) error
- func (ao *Indy) WriteCredDef(tx plugin.TxInfo, _ string, data string) (err error)
- func (ao *Indy) WriteDID(tx plugin.TxInfo, _ string, data string) (err error)
- func (ao *Indy) WriteSchema(tx plugin.TxInfo, _ string, data string) (err error)
- type Mem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Indy ¶ added in v0.3.5
type Indy struct {
// contains filtered or unexported fields
}
Indy is a ledger addon which implements real Indy ledger pool client. The machine which uses it must have indy pool named FINDY_LEDGER. Also it's important that memory or file ledger is used same time because both writing and reading to addon is done asynchronously.
func (*Indy) ReadCredDef ¶ added in v0.3.5
func (*Indy) ReadSchema ¶ added in v0.3.5
func (*Indy) WriteCredDef ¶ added in v0.3.5
type Mem ¶
type Mem struct { Mem struct { sync.Mutex Ory map[string]string } // Seq is seqNo in real Indy ledger, by this we get correct behaviour Seq struct { sync.Mutex No uint } // contains filtered or unexported fields }
Mem is a ledger addon which implements transient ledger. It writes ledger data to memory and reads it from there. It's convenient for unit test and some development cases.
Click to show internal directories.
Click to hide internal directories.