Documentation ¶
Overview ¶
Package digest provides api features.
Index ¶
- Variables
- func DIDData(db *cdigest.Database, contract, key string) (*types.Data, base.State, error)
- func DIDDesign(st *cdigest.Database, contract string) (types.Design, base.State, error)
- func DIDDocument(db *cdigest.Database, contract, key string) (*types.Document, base.State, error)
- func DigestBlock(ctx context.Context, st *currencydigest.Database, blk base.BlockMap, ...) error
- type BlockSession
- type DIDDataDoc
- type DIDDocumentDoc
- type DIDRegistryDesignDoc
- type Digester
- type Handlers
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HandlerPathDIDDesign = `/did-registry/{contract:(?i)` + types.REStringAddressString + `}` HandlerPathDIDData = `/did-registry/{contract:(?i)` + types.REStringAddressString + `}/did/{pubKey:` + types.ReSpecialCh + `}` HandlerPathDIDDocument = `/did-registry/{contract:(?i)` + types.REStringAddressString + `}/document` )
Functions ¶
func DIDDocument ¶
Types ¶
type BlockSession ¶
func NewBlockSession ¶
func NewBlockSession( st *currencydigest.Database, blk mitumbase.BlockMap, ops []mitumbase.Operation, opstree fixedtree.Tree, sts []mitumbase.State, proposal mitumbase.ProposalSignFact, vs string, ) (*BlockSession, error)
func (*BlockSession) Close ¶
func (bs *BlockSession) Close() error
func (*BlockSession) Prepare ¶
func (bs *BlockSession) Prepare() error
type DIDDataDoc ¶
func NewDIDDataDoc ¶
func (DIDDataDoc) MarshalBSON ¶
func (doc DIDDataDoc) MarshalBSON() ([]byte, error)
type DIDDocumentDoc ¶
func NewDIDDocumentDoc ¶
func (DIDDocumentDoc) MarshalBSON ¶
func (doc DIDDocumentDoc) MarshalBSON() ([]byte, error)
type DIDRegistryDesignDoc ¶
func NewDIDRegistryDesignDoc ¶
NewDIDRegistryDesignDoc get the State of DID Design
func (DIDRegistryDesignDoc) MarshalBSON ¶
func (doc DIDRegistryDesignDoc) MarshalBSON() ([]byte, error)
type Digester ¶
type Digester struct { sync.RWMutex *util.ContextDaemon *logging.Logging // contains filtered or unexported fields }
func NewDigester ¶
func NewDigester( st *currencydigest.Database, root string, sourceReaders *isaac.BlockItemReaders, fromRemotes isaac.RemotesBlockItemReadFunc, networkID base.NetworkID, vs string, errChan chan error, ) *Digester
type Handlers ¶
func NewHandlers ¶
func (*Handlers) Cache ¶
func (hd *Handlers) Cache() currencydigest.Cache
func (*Handlers) Initialize ¶
Click to show internal directories.
Click to hide internal directories.