Documentation ¶
Index ¶
- func NewHandler(k Keeper) sdk.Handler
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) Delete(ctx sdk.Context, key []byte, prefix []byte)
- func (k Keeper) Get(ctx sdk.Context, key []byte, prefix []byte, unmarshal UnmarshalFn) (i interface{}, found bool)
- func (k Keeper) GetAll(ctx sdk.Context, prefix []byte) sdk.Iterator
- func (k Keeper) GetAllIdentifiers(ctx sdk.Context) []types.DidDocument
- func (k Keeper) GetAllIdentifiersWithCondition(ctx sdk.Context, key []byte, ...) (identifiers []types.DidDocument)
- func (k Keeper) GetIdentifier(ctx sdk.Context, key []byte) (types.DidDocument, bool)
- func (q Keeper) Identifier(c context.Context, req *types.QueryIdentifierRequest) (*types.QueryIdentifierResponse, error)
- func (q Keeper) Identifiers(c context.Context, req *types.QueryIdentifiersRequest) (*types.QueryIdentifiersResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MarshalIdentifier(value interface{}) []byte
- func (k Keeper) Set(ctx sdk.Context, key []byte, prefix []byte, i interface{}, marshal MarshalFn)
- func (k Keeper) SetIdentifier(ctx sdk.Context, key []byte, document types.DidDocument)
- func (k Keeper) UnmarshalIdentifier(value []byte) (interface{}, bool)
- type MarshalFn
- type UnmarshalFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the identity MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func (Keeper) Get ¶
func (k Keeper) Get( ctx sdk.Context, key []byte, prefix []byte, unmarshal UnmarshalFn, ) (i interface{}, found bool)
Get gets an item from the store by bytes
func (Keeper) GetAllIdentifiers ¶
func (k Keeper) GetAllIdentifiers(ctx sdk.Context) []types.DidDocument
func (Keeper) GetAllIdentifiersWithCondition ¶
func (k Keeper) GetAllIdentifiersWithCondition( ctx sdk.Context, key []byte, identifierSelector func(identifiers types.DidDocument) bool, ) (identifiers []types.DidDocument)
func (Keeper) GetIdentifier ¶
func (Keeper) Identifier ¶
func (q Keeper) Identifier( c context.Context, req *types.QueryIdentifierRequest, ) (*types.QueryIdentifierResponse, error)
Identifers implements the Identifers gRPC method
func (Keeper) Identifiers ¶
func (q Keeper) Identifiers( c context.Context, req *types.QueryIdentifiersRequest, ) (*types.QueryIdentifiersResponse, error)
Identifers implements the Identifers gRPC method
func (Keeper) MarshalIdentifier ¶
func (Keeper) SetIdentifier ¶
func (Keeper) UnmarshalIdentifier ¶
type MarshalFn ¶
type MarshalFn func(value interface{}) []byte
UnmarshalFn is a generic function to unmarshal bytes
type UnmarshalFn ¶
UnmarshalFn is a generic function to unmarshal bytes
Click to show internal directories.
Click to hide internal directories.