Documentation ¶
Index ¶
- func GetWhoisIDBytes(id uint64) []byte
- func GetWhoisIDFromBytes(bz []byte) uint64
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AppendWhois(ctx sdk.Context, whois types.Whois) uint64
- func (k Keeper) GetAllWhois(ctx sdk.Context) (list []types.Whois)
- func (k Keeper) GetWhois(ctx sdk.Context, id uint64) types.Whois
- func (k Keeper) GetWhoisCount(ctx sdk.Context) uint64
- func (k Keeper) GetWhoisOwner(ctx sdk.Context, id uint64) string
- func (k Keeper) HasWhois(ctx sdk.Context, id uint64) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) RemoveWhois(ctx sdk.Context, id uint64)
- func (k Keeper) SetWhois(ctx sdk.Context, whois types.Whois)
- func (k Keeper) SetWhoisCount(ctx sdk.Context, count uint64)
- func (k Keeper) Whois(c context.Context, req *types.QueryGetWhoisRequest) (*types.QueryGetWhoisResponse, error)
- func (k Keeper) WhoisAll(c context.Context, req *types.QueryAllWhoisRequest) (*types.QueryAllWhoisResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetWhoisIDBytes ¶
GetWhoisIDBytes returns the byte representation of the ID
func GetWhoisIDFromBytes ¶
GetWhoisIDFromBytes returns ID in uint64 format from a byte array
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func (Keeper) AppendWhois ¶
AppendWhois appends a whois in the store with a new id and update the count
func (Keeper) GetAllWhois ¶
GetAllWhois returns all whois
func (Keeper) GetWhoisCount ¶
GetWhoisCount get the total number of TypeName.LowerCamel
func (Keeper) GetWhoisOwner ¶
GetWhoisOwner returns the creator of the
func (Keeper) RemoveWhois ¶
RemoveWhois removes a whois from the store
func (Keeper) SetWhoisCount ¶
SetWhoisCount set the total number of whois
func (Keeper) Whois ¶
func (k Keeper) Whois(c context.Context, req *types.QueryGetWhoisRequest) (*types.QueryGetWhoisResponse, error)
func (Keeper) WhoisAll ¶
func (k Keeper) WhoisAll(c context.Context, req *types.QueryAllWhoisRequest) (*types.QueryAllWhoisResponse, error)
Click to show internal directories.
Click to hide internal directories.