Documentation ¶
Index ¶
- func GetAskIDBytes(id uint64) []byte
- func GetAskIDFromBytes(bz []byte) uint64
- func GetReplyIDBytes(id uint64) []byte
- func GetReplyIDFromBytes(bz []byte) uint64
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AppendAsk(ctx sdk.Context, ask types.Ask) uint64
- func (k Keeper) AppendReply(ctx sdk.Context, reply types.Reply) uint64
- func (k Keeper) Ask(goCtx context.Context, req *types.QueryGetAskRequest) (*types.QueryGetAskResponse, error)
- func (k Keeper) AskAll(goCtx context.Context, req *types.QueryAllAskRequest) (*types.QueryAllAskResponse, error)
- func (k Keeper) GetAllAsk(ctx sdk.Context) (list []types.Ask)
- func (k Keeper) GetAllAskLinks(ctx sdk.Context)
- func (k Keeper) GetAllReply(ctx sdk.Context) (list []types.Reply)
- func (k Keeper) GetAllReplyLinks(ctx sdk.Context)
- func (k Keeper) GetAsk(ctx sdk.Context, id uint64) (val types.Ask, found bool)
- func (k Keeper) GetAskByKey(ctx sdk.Context, key []byte) (val types.Ask, found bool)
- func (k Keeper) GetAskCount(ctx sdk.Context) uint64
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetReply(ctx sdk.Context, id uint64) (val types.Reply, found bool)
- func (k Keeper) GetReplyByKey(ctx sdk.Context, key []byte) (val types.Reply, found bool)
- func (k Keeper) GetReplyCount(ctx sdk.Context) uint64
- func (k Keeper) ListAskByReplier(goCtx context.Context, req *types.QueryListAskByReplierRequest) (*types.QueryListAskByReplierResponse, error)
- func (k Keeper) ListAskBySender(goCtx context.Context, req *types.QueryListAskBySenderRequest) (*types.QueryListAskBySenderResponse, error)
- func (k Keeper) ListReplyByReplier(goCtx context.Context, req *types.QueryListReplyByReplierRequest) (*types.QueryListReplyByReplierResponse, error)
- func (k Keeper) ListReplyBySender(goCtx context.Context, req *types.QueryListReplyBySenderRequest) (*types.QueryListReplyBySenderResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RemoveAsk(ctx sdk.Context, id uint64)
- func (k Keeper) RemoveReply(ctx sdk.Context, id uint64)
- func (k Keeper) Reply(goCtx context.Context, req *types.QueryGetReplyRequest) (*types.QueryGetReplyResponse, error)
- func (k Keeper) ReplyAll(goCtx context.Context, req *types.QueryAllReplyRequest) (*types.QueryAllReplyResponse, error)
- func (k Keeper) SetAsk(ctx sdk.Context, ask types.Ask)
- func (k Keeper) SetAskCount(ctx sdk.Context, count uint64)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetReply(ctx sdk.Context, reply types.Reply)
- func (k Keeper) SetReplyCount(ctx sdk.Context, count uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAskIDBytes ¶
GetAskIDBytes returns the byte representation of the ID
func GetAskIDFromBytes ¶
GetAskIDFromBytes returns ID in uint64 format from a byte array
func GetReplyIDBytes ¶
GetReplyIDBytes returns the byte representation of the ID
func GetReplyIDFromBytes ¶
GetReplyIDFromBytes 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 NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, ps paramtypes.Subspace, ganymedeKeeper types.GanymedeKeeper, ) *Keeper
func (Keeper) AppendReply ¶
AppendReply appends a reply in the store with a new id and update the count
func (Keeper) Ask ¶
func (k Keeper) Ask(goCtx context.Context, req *types.QueryGetAskRequest) (*types.QueryGetAskResponse, error)
func (Keeper) AskAll ¶
func (k Keeper) AskAll(goCtx context.Context, req *types.QueryAllAskRequest) (*types.QueryAllAskResponse, error)
func (Keeper) GetAllAskLinks ¶
GetAllUsers returns all users
func (Keeper) GetAllReply ¶
GetAllReply returns all reply
func (Keeper) GetAllReplyLinks ¶
GetAllUsers returns all users
func (Keeper) GetAskByKey ¶
GetAsk returns a ask from its id
func (Keeper) GetAskCount ¶
GetAskCount get the total number of ask
func (Keeper) GetReplyByKey ¶
GetReply returns a reply from its id
func (Keeper) GetReplyCount ¶
GetReplyCount get the total number of reply
func (Keeper) ListAskByReplier ¶
func (k Keeper) ListAskByReplier(goCtx context.Context, req *types.QueryListAskByReplierRequest) (*types.QueryListAskByReplierResponse, error)
func (Keeper) ListAskBySender ¶
func (k Keeper) ListAskBySender(goCtx context.Context, req *types.QueryListAskBySenderRequest) (*types.QueryListAskBySenderResponse, error)
func (Keeper) ListReplyByReplier ¶
func (k Keeper) ListReplyByReplier(goCtx context.Context, req *types.QueryListReplyByReplierRequest) (*types.QueryListReplyByReplierResponse, error)
func (Keeper) ListReplyBySender ¶
func (k Keeper) ListReplyBySender(goCtx context.Context, req *types.QueryListReplyBySenderRequest) (*types.QueryListReplyBySenderResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RemoveReply ¶
RemoveReply removes a reply from the store
func (Keeper) Reply ¶
func (k Keeper) Reply(goCtx context.Context, req *types.QueryGetReplyRequest) (*types.QueryGetReplyResponse, error)
func (Keeper) ReplyAll ¶
func (k Keeper) ReplyAll(goCtx context.Context, req *types.QueryAllReplyRequest) (*types.QueryAllReplyResponse, error)
func (Keeper) SetAskCount ¶
SetAskCount set the total number of ask