Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) GetAllHaven(ctx sdk.Context) (list []types.Haven)
- func (k Keeper) GetAllPost(ctx sdk.Context) (list []types.Post)
- func (k Keeper) GetHaven(ctx sdk.Context, uid uint64) (val types.Haven, found bool)
- func (k Keeper) GetHavenUid(ctx sdk.Context, name string) uint64
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetPost(ctx sdk.Context, uid uint64) (val types.Post, found bool)
- func (k Keeper) GetUidCount(ctx sdk.Context) uint64
- func (k Keeper) Haven(c context.Context, req *types.QueryGetHavenRequest) (*types.QueryGetHavenResponse, error)
- func (k Keeper) HavenAll(c context.Context, req *types.QueryAllHavenRequest) (*types.QueryAllHavenResponse, error)
- func (k Keeper) IncUidCount(ctx sdk.Context)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) Post(c context.Context, req *types.QueryGetPostRequest) (*types.QueryGetPostResponse, error)
- func (k Keeper) PostAll(c context.Context, req *types.QueryAllPostRequest) (*types.QueryAllPostResponse, error)
- func (k Keeper) RemoveHaven(ctx sdk.Context, uid uint64)
- func (k Keeper) RemovePost(ctx sdk.Context, uid uint64)
- func (k Keeper) SetHaven(ctx sdk.Context, haven types.Haven)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetPost(ctx sdk.Context, post types.Post)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 sdk.StoreKey, ps paramtypes.Subspace, ) *Keeper
func (Keeper) GetAllHaven ¶
GetAllHaven returns all haven
func (Keeper) GetAllPost ¶
GetAllPost returns all post
func (Keeper) GetHavenUid ¶
GetHaven returns a haven from uid
func (Keeper) Haven ¶
func (k Keeper) Haven(c context.Context, req *types.QueryGetHavenRequest) (*types.QueryGetHavenResponse, error)
func (Keeper) HavenAll ¶
func (k Keeper) HavenAll(c context.Context, req *types.QueryAllHavenRequest) (*types.QueryAllHavenResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) Post ¶
func (k Keeper) Post(c context.Context, req *types.QueryGetPostRequest) (*types.QueryGetPostResponse, error)
func (Keeper) PostAll ¶
func (k Keeper) PostAll(c context.Context, req *types.QueryAllPostRequest) (*types.QueryAllPostResponse, error)
func (Keeper) RemoveHaven ¶
RemoveHaven removes a haven from the store
func (Keeper) RemovePost ¶
RemovePost removes a post from the store
Click to show internal directories.
Click to hide internal directories.