Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) Answer(ctx context.Context, req *types.QueryGetAnswerRequest) (*types.QueryGetAnswerResponse, error)
- func (k Keeper) AnswerAll(ctx context.Context, req *types.QueryAllAnswerRequest) (*types.QueryAllAnswerResponse, error)
- func (k Keeper) GetAllAnswer(ctx context.Context) (list []types.Answer)
- func (k Keeper) GetAllQuestion(ctx context.Context) (list []types.Question)
- func (k Keeper) GetAnswer(ctx context.Context, index string) (val types.Answer, found bool)
- func (k Keeper) GetAnswers(goCtx context.Context, req *types.QueryGetAnswersRequest) (*types.QueryGetAnswersResponse, error)
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetParams(ctx context.Context) (params types.Params)
- func (k Keeper) GetQuestion(ctx context.Context, index string) (val types.Question, found bool)
- func (k Keeper) Logger() log.Logger
- func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) Question(ctx context.Context, req *types.QueryGetQuestionRequest) (*types.QueryGetQuestionResponse, error)
- func (k Keeper) QuestionAll(ctx context.Context, req *types.QueryAllQuestionRequest) (*types.QueryAllQuestionResponse, error)
- func (k Keeper) RemoveAnswer(ctx context.Context, index string)
- func (k Keeper) RemoveQuestion(ctx context.Context, index string)
- func (k Keeper) SetAnswer(ctx context.Context, answer types.Answer)
- func (k Keeper) SetParams(ctx context.Context, params types.Params) error
- func (k Keeper) SetQuestion(ctx context.Context, question types.Question)
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, storeService store.KVStoreService, logger log.Logger, authority string, ) Keeper
func (Keeper) Answer ¶
func (k Keeper) Answer(ctx context.Context, req *types.QueryGetAnswerRequest) (*types.QueryGetAnswerResponse, error)
func (Keeper) AnswerAll ¶
func (k Keeper) AnswerAll(ctx context.Context, req *types.QueryAllAnswerRequest) (*types.QueryAllAnswerResponse, error)
func (Keeper) GetAllAnswer ¶
GetAllAnswer returns all answer
func (Keeper) GetAllQuestion ¶
GetAllQuestion returns all question
func (Keeper) GetAnswers ¶
func (k Keeper) GetAnswers(goCtx context.Context, req *types.QueryGetAnswersRequest) (*types.QueryGetAnswersResponse, error)
func (Keeper) GetAuthority ¶
GetAuthority returns the module's authority.
func (Keeper) GetQuestion ¶
GetQuestion returns a question from its index
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) Question ¶
func (k Keeper) Question(ctx context.Context, req *types.QueryGetQuestionRequest) (*types.QueryGetQuestionResponse, error)
func (Keeper) QuestionAll ¶
func (k Keeper) QuestionAll(ctx context.Context, req *types.QueryAllQuestionRequest) (*types.QueryAllQuestionResponse, error)
func (Keeper) RemoveAnswer ¶
RemoveAnswer removes a answer from the store
func (Keeper) RemoveQuestion ¶
RemoveQuestion removes a question from the store
Click to show internal directories.
Click to hide internal directories.