Documentation ¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type Answer
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)deprecated
- func (x *GenesisState) GetAnswerList() []*Answer
- func (x *GenesisState) GetParams() *Params
- func (x *GenesisState) GetQuestionList() []*Question
- func (*GenesisState) ProtoMessage()
- func (x *GenesisState) ProtoReflect() protoreflect.Message
- func (x *GenesisState) Reset()
- func (x *GenesisState) String() string
- type MsgClient
- type MsgServer
- type MsgSubmitAnswer
- func (*MsgSubmitAnswer) Descriptor() ([]byte, []int)deprecated
- func (x *MsgSubmitAnswer) GetAnswer() string
- func (x *MsgSubmitAnswer) GetCreator() string
- func (x *MsgSubmitAnswer) GetPlayer() string
- func (x *MsgSubmitAnswer) GetQid() string
- func (*MsgSubmitAnswer) ProtoMessage()
- func (x *MsgSubmitAnswer) ProtoReflect() protoreflect.Message
- func (x *MsgSubmitAnswer) Reset()
- func (x *MsgSubmitAnswer) String() string
- type MsgSubmitAnswerResponse
- type MsgSubmitQuestion
- func (*MsgSubmitQuestion) Descriptor() ([]byte, []int)deprecated
- func (x *MsgSubmitQuestion) GetCreator() string
- func (x *MsgSubmitQuestion) GetQid() string
- func (x *MsgSubmitQuestion) GetQuestion() string
- func (*MsgSubmitQuestion) ProtoMessage()
- func (x *MsgSubmitQuestion) ProtoReflect() protoreflect.Message
- func (x *MsgSubmitQuestion) Reset()
- func (x *MsgSubmitQuestion) String() string
- type MsgSubmitQuestionResponse
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateParams) GetAuthority() string
- func (x *MsgUpdateParams) GetParams() *Params
- func (*MsgUpdateParams) ProtoMessage()
- func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateParams) Reset()
- func (x *MsgUpdateParams) String() string
- type MsgUpdateParamsResponse
- type Params
- type QueryAllAnswerRequest
- func (*QueryAllAnswerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAllAnswerRequest) GetPagination() *v1beta1.PageRequest
- func (*QueryAllAnswerRequest) ProtoMessage()
- func (x *QueryAllAnswerRequest) ProtoReflect() protoreflect.Message
- func (x *QueryAllAnswerRequest) Reset()
- func (x *QueryAllAnswerRequest) String() string
- type QueryAllAnswerResponse
- func (*QueryAllAnswerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAllAnswerResponse) GetAnswer() []*Answer
- func (x *QueryAllAnswerResponse) GetPagination() *v1beta1.PageResponse
- func (*QueryAllAnswerResponse) ProtoMessage()
- func (x *QueryAllAnswerResponse) ProtoReflect() protoreflect.Message
- func (x *QueryAllAnswerResponse) Reset()
- func (x *QueryAllAnswerResponse) String() string
- type QueryAllQuestionRequest
- func (*QueryAllQuestionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAllQuestionRequest) GetPagination() *v1beta1.PageRequest
- func (*QueryAllQuestionRequest) ProtoMessage()
- func (x *QueryAllQuestionRequest) ProtoReflect() protoreflect.Message
- func (x *QueryAllQuestionRequest) Reset()
- func (x *QueryAllQuestionRequest) String() string
- type QueryAllQuestionResponse
- func (*QueryAllQuestionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAllQuestionResponse) GetPagination() *v1beta1.PageResponse
- func (x *QueryAllQuestionResponse) GetQuestion() []*Question
- func (*QueryAllQuestionResponse) ProtoMessage()
- func (x *QueryAllQuestionResponse) ProtoReflect() protoreflect.Message
- func (x *QueryAllQuestionResponse) Reset()
- func (x *QueryAllQuestionResponse) String() string
- type QueryClient
- type QueryGetAnswerRequest
- func (*QueryGetAnswerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryGetAnswerRequest) GetIndex() string
- func (*QueryGetAnswerRequest) ProtoMessage()
- func (x *QueryGetAnswerRequest) ProtoReflect() protoreflect.Message
- func (x *QueryGetAnswerRequest) Reset()
- func (x *QueryGetAnswerRequest) String() string
- type QueryGetAnswerResponse
- func (*QueryGetAnswerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryGetAnswerResponse) GetAnswer() *Answer
- func (*QueryGetAnswerResponse) ProtoMessage()
- func (x *QueryGetAnswerResponse) ProtoReflect() protoreflect.Message
- func (x *QueryGetAnswerResponse) Reset()
- func (x *QueryGetAnswerResponse) String() string
- type QueryGetAnswersRequest
- func (*QueryGetAnswersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryGetAnswersRequest) GetPagination() *v1beta1.PageRequest
- func (x *QueryGetAnswersRequest) GetQid() string
- func (*QueryGetAnswersRequest) ProtoMessage()
- func (x *QueryGetAnswersRequest) ProtoReflect() protoreflect.Message
- func (x *QueryGetAnswersRequest) Reset()
- func (x *QueryGetAnswersRequest) String() string
- type QueryGetAnswersResponse
- func (*QueryGetAnswersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryGetAnswersResponse) GetAnswers() []*Answer
- func (x *QueryGetAnswersResponse) GetPagination() *v1beta1.PageResponse
- func (*QueryGetAnswersResponse) ProtoMessage()
- func (x *QueryGetAnswersResponse) ProtoReflect() protoreflect.Message
- func (x *QueryGetAnswersResponse) Reset()
- func (x *QueryGetAnswersResponse) String() string
- type QueryGetQuestionRequest
- func (*QueryGetQuestionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryGetQuestionRequest) GetIndex() string
- func (*QueryGetQuestionRequest) ProtoMessage()
- func (x *QueryGetQuestionRequest) ProtoReflect() protoreflect.Message
- func (x *QueryGetQuestionRequest) Reset()
- func (x *QueryGetQuestionRequest) String() string
- type QueryGetQuestionResponse
- func (*QueryGetQuestionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryGetQuestionResponse) GetQuestion() *Question
- func (*QueryGetQuestionResponse) ProtoMessage()
- func (x *QueryGetQuestionResponse) ProtoReflect() protoreflect.Message
- func (x *QueryGetQuestionResponse) Reset()
- func (x *QueryGetQuestionResponse) String() string
- type QueryParamsRequest
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryParamsResponse) GetParams() *Params
- func (*QueryParamsResponse) ProtoMessage()
- func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryParamsResponse) Reset()
- func (x *QueryParamsResponse) String() string
- type QueryServer
- type Question
- type UnimplementedMsgServer
- func (UnimplementedMsgServer) SubmitAnswer(context.Context, *MsgSubmitAnswer) (*MsgSubmitAnswerResponse, error)
- func (UnimplementedMsgServer) SubmitQuestion(context.Context, *MsgSubmitQuestion) (*MsgSubmitQuestionResponse, error)
- func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) Answer(context.Context, *QueryGetAnswerRequest) (*QueryGetAnswerResponse, error)
- func (UnimplementedQueryServer) AnswerAll(context.Context, *QueryAllAnswerRequest) (*QueryAllAnswerResponse, error)
- func (UnimplementedQueryServer) GetAnswers(context.Context, *QueryGetAnswersRequest) (*QueryGetAnswersResponse, error)
- func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
- func (UnimplementedQueryServer) Question(context.Context, *QueryGetQuestionRequest) (*QueryGetQuestionResponse, error)
- func (UnimplementedQueryServer) QuestionAll(context.Context, *QueryAllQuestionRequest) (*QueryAllQuestionResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
const ( Query_Params_FullMethodName = "/hm.hm.Query/Params" Query_Question_FullMethodName = "/hm.hm.Query/Question" Query_QuestionAll_FullMethodName = "/hm.hm.Query/QuestionAll" Query_Answer_FullMethodName = "/hm.hm.Query/Answer" Query_AnswerAll_FullMethodName = "/hm.hm.Query/AnswerAll" Query_GetAnswers_FullMethodName = "/hm.hm.Query/GetAnswers" )
const ( Msg_UpdateParams_FullMethodName = "/hm.hm.Msg/UpdateParams" Msg_SubmitQuestion_FullMethodName = "/hm.hm.Msg/SubmitQuestion" Msg_SubmitAnswer_FullMethodName = "/hm.hm.Msg/SubmitAnswer" )
Variables ¶
var File_hm_hm_answer_proto protoreflect.FileDescriptor
var File_hm_hm_genesis_proto protoreflect.FileDescriptor
var File_hm_hm_params_proto protoreflect.FileDescriptor
var File_hm_hm_query_proto protoreflect.FileDescriptor
var File_hm_hm_question_proto protoreflect.FileDescriptor
var File_hm_hm_tx_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hm.hm.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, { MethodName: "SubmitQuestion", Handler: _Msg_SubmitQuestion_Handler, }, { MethodName: "SubmitAnswer", Handler: _Msg_SubmitAnswer_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "hm/hm/tx.proto", }
Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hm.hm.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Params", Handler: _Query_Params_Handler, }, { MethodName: "Question", Handler: _Query_Question_Handler, }, { MethodName: "QuestionAll", Handler: _Query_QuestionAll_Handler, }, { MethodName: "Answer", Handler: _Query_Answer_Handler, }, { MethodName: "AnswerAll", Handler: _Query_AnswerAll_Handler, }, { MethodName: "GetAnswers", Handler: _Query_GetAnswers_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "hm/hm/query.proto", }
Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsgServer ¶
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
Types ¶
type Answer ¶
type Answer struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` Player string `protobuf:"bytes,2,opt,name=player,proto3" json:"player,omitempty"` Desc string `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"` // contains filtered or unexported fields }
func (*Answer) Descriptor
deprecated
func (*Answer) ProtoMessage ¶
func (*Answer) ProtoMessage()
func (*Answer) ProtoReflect ¶
func (x *Answer) ProtoReflect() protoreflect.Message
type GenesisState ¶
type GenesisState struct { // params defines all the parameters of the module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` QuestionList []*Question `protobuf:"bytes,2,rep,name=questionList,proto3" json:"questionList,omitempty"` AnswerList []*Answer `protobuf:"bytes,3,rep,name=answerList,proto3" json:"answerList,omitempty"` // contains filtered or unexported fields }
GenesisState defines the hm module's genesis state.
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetAnswerList ¶
func (x *GenesisState) GetAnswerList() []*Answer
func (*GenesisState) GetParams ¶
func (x *GenesisState) GetParams() *Params
func (*GenesisState) GetQuestionList ¶
func (x *GenesisState) GetQuestionList() []*Question
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) ProtoReflect ¶
func (x *GenesisState) ProtoReflect() protoreflect.Message
func (*GenesisState) Reset ¶
func (x *GenesisState) Reset()
func (*GenesisState) String ¶
func (x *GenesisState) String() string
type MsgClient ¶
type MsgClient interface { // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) SubmitQuestion(ctx context.Context, in *MsgSubmitQuestion, opts ...grpc.CallOption) (*MsgSubmitQuestionResponse, error) SubmitAnswer(ctx context.Context, in *MsgSubmitAnswer, opts ...grpc.CallOption) (*MsgSubmitAnswerResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgServer ¶
type MsgServer interface { // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) SubmitQuestion(context.Context, *MsgSubmitQuestion) (*MsgSubmitQuestionResponse, error) SubmitAnswer(context.Context, *MsgSubmitAnswer) (*MsgSubmitAnswerResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
type MsgSubmitAnswer ¶
type MsgSubmitAnswer struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Qid string `protobuf:"bytes,2,opt,name=qid,proto3" json:"qid,omitempty"` Player string `protobuf:"bytes,3,opt,name=player,proto3" json:"player,omitempty"` Answer string `protobuf:"bytes,4,opt,name=answer,proto3" json:"answer,omitempty"` // contains filtered or unexported fields }
func (*MsgSubmitAnswer) Descriptor
deprecated
func (*MsgSubmitAnswer) Descriptor() ([]byte, []int)
Deprecated: Use MsgSubmitAnswer.ProtoReflect.Descriptor instead.
func (*MsgSubmitAnswer) GetAnswer ¶
func (x *MsgSubmitAnswer) GetAnswer() string
func (*MsgSubmitAnswer) GetCreator ¶
func (x *MsgSubmitAnswer) GetCreator() string
func (*MsgSubmitAnswer) GetPlayer ¶
func (x *MsgSubmitAnswer) GetPlayer() string
func (*MsgSubmitAnswer) GetQid ¶
func (x *MsgSubmitAnswer) GetQid() string
func (*MsgSubmitAnswer) ProtoMessage ¶
func (*MsgSubmitAnswer) ProtoMessage()
func (*MsgSubmitAnswer) ProtoReflect ¶
func (x *MsgSubmitAnswer) ProtoReflect() protoreflect.Message
func (*MsgSubmitAnswer) Reset ¶
func (x *MsgSubmitAnswer) Reset()
func (*MsgSubmitAnswer) String ¶
func (x *MsgSubmitAnswer) String() string
type MsgSubmitAnswerResponse ¶
type MsgSubmitAnswerResponse struct {
// contains filtered or unexported fields
}
func (*MsgSubmitAnswerResponse) Descriptor
deprecated
func (*MsgSubmitAnswerResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgSubmitAnswerResponse.ProtoReflect.Descriptor instead.
func (*MsgSubmitAnswerResponse) ProtoMessage ¶
func (*MsgSubmitAnswerResponse) ProtoMessage()
func (*MsgSubmitAnswerResponse) ProtoReflect ¶
func (x *MsgSubmitAnswerResponse) ProtoReflect() protoreflect.Message
func (*MsgSubmitAnswerResponse) Reset ¶
func (x *MsgSubmitAnswerResponse) Reset()
func (*MsgSubmitAnswerResponse) String ¶
func (x *MsgSubmitAnswerResponse) String() string
type MsgSubmitQuestion ¶
type MsgSubmitQuestion struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Qid string `protobuf:"bytes,2,opt,name=qid,proto3" json:"qid,omitempty"` Question string `protobuf:"bytes,3,opt,name=question,proto3" json:"question,omitempty"` // contains filtered or unexported fields }
func (*MsgSubmitQuestion) Descriptor
deprecated
func (*MsgSubmitQuestion) Descriptor() ([]byte, []int)
Deprecated: Use MsgSubmitQuestion.ProtoReflect.Descriptor instead.
func (*MsgSubmitQuestion) GetCreator ¶
func (x *MsgSubmitQuestion) GetCreator() string
func (*MsgSubmitQuestion) GetQid ¶
func (x *MsgSubmitQuestion) GetQid() string
func (*MsgSubmitQuestion) GetQuestion ¶
func (x *MsgSubmitQuestion) GetQuestion() string
func (*MsgSubmitQuestion) ProtoMessage ¶
func (*MsgSubmitQuestion) ProtoMessage()
func (*MsgSubmitQuestion) ProtoReflect ¶
func (x *MsgSubmitQuestion) ProtoReflect() protoreflect.Message
func (*MsgSubmitQuestion) Reset ¶
func (x *MsgSubmitQuestion) Reset()
func (*MsgSubmitQuestion) String ¶
func (x *MsgSubmitQuestion) String() string
type MsgSubmitQuestionResponse ¶
type MsgSubmitQuestionResponse struct {
// contains filtered or unexported fields
}
func (*MsgSubmitQuestionResponse) Descriptor
deprecated
func (*MsgSubmitQuestionResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgSubmitQuestionResponse.ProtoReflect.Descriptor instead.
func (*MsgSubmitQuestionResponse) ProtoMessage ¶
func (*MsgSubmitQuestionResponse) ProtoMessage()
func (*MsgSubmitQuestionResponse) ProtoReflect ¶
func (x *MsgSubmitQuestionResponse) ProtoReflect() protoreflect.Message
func (*MsgSubmitQuestionResponse) Reset ¶
func (x *MsgSubmitQuestionResponse) Reset()
func (*MsgSubmitQuestionResponse) String ¶
func (x *MsgSubmitQuestionResponse) String() string
type MsgUpdateParams ¶
type MsgUpdateParams struct { // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // NOTE: All parameters must be supplied. Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
MsgUpdateParams is the Msg/UpdateParams request type.
func (*MsgUpdateParams) Descriptor
deprecated
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func (*MsgUpdateParams) GetAuthority ¶
func (x *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (x *MsgUpdateParams) GetParams() *Params
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) ProtoReflect ¶
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
func (*MsgUpdateParams) Reset ¶
func (x *MsgUpdateParams) Reset()
func (*MsgUpdateParams) String ¶
func (x *MsgUpdateParams) String() string
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct {
// contains filtered or unexported fields
}
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
func (*MsgUpdateParamsResponse) Descriptor
deprecated
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) ProtoReflect ¶
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateParamsResponse) Reset ¶
func (x *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) String ¶
func (x *MsgUpdateParamsResponse) String() string
type Params ¶
type Params struct {
// contains filtered or unexported fields
}
Params defines the parameters for the module.
func (*Params) Descriptor
deprecated
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
type QueryAllAnswerRequest ¶
type QueryAllAnswerRequest struct { Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*QueryAllAnswerRequest) Descriptor
deprecated
func (*QueryAllAnswerRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryAllAnswerRequest.ProtoReflect.Descriptor instead.
func (*QueryAllAnswerRequest) GetPagination ¶
func (x *QueryAllAnswerRequest) GetPagination() *v1beta1.PageRequest
func (*QueryAllAnswerRequest) ProtoMessage ¶
func (*QueryAllAnswerRequest) ProtoMessage()
func (*QueryAllAnswerRequest) ProtoReflect ¶
func (x *QueryAllAnswerRequest) ProtoReflect() protoreflect.Message
func (*QueryAllAnswerRequest) Reset ¶
func (x *QueryAllAnswerRequest) Reset()
func (*QueryAllAnswerRequest) String ¶
func (x *QueryAllAnswerRequest) String() string
type QueryAllAnswerResponse ¶
type QueryAllAnswerResponse struct { Answer []*Answer `protobuf:"bytes,1,rep,name=answer,proto3" json:"answer,omitempty"` Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*QueryAllAnswerResponse) Descriptor
deprecated
func (*QueryAllAnswerResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryAllAnswerResponse.ProtoReflect.Descriptor instead.
func (*QueryAllAnswerResponse) GetAnswer ¶
func (x *QueryAllAnswerResponse) GetAnswer() []*Answer
func (*QueryAllAnswerResponse) GetPagination ¶
func (x *QueryAllAnswerResponse) GetPagination() *v1beta1.PageResponse
func (*QueryAllAnswerResponse) ProtoMessage ¶
func (*QueryAllAnswerResponse) ProtoMessage()
func (*QueryAllAnswerResponse) ProtoReflect ¶
func (x *QueryAllAnswerResponse) ProtoReflect() protoreflect.Message
func (*QueryAllAnswerResponse) Reset ¶
func (x *QueryAllAnswerResponse) Reset()
func (*QueryAllAnswerResponse) String ¶
func (x *QueryAllAnswerResponse) String() string
type QueryAllQuestionRequest ¶
type QueryAllQuestionRequest struct { Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*QueryAllQuestionRequest) Descriptor
deprecated
func (*QueryAllQuestionRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryAllQuestionRequest.ProtoReflect.Descriptor instead.
func (*QueryAllQuestionRequest) GetPagination ¶
func (x *QueryAllQuestionRequest) GetPagination() *v1beta1.PageRequest
func (*QueryAllQuestionRequest) ProtoMessage ¶
func (*QueryAllQuestionRequest) ProtoMessage()
func (*QueryAllQuestionRequest) ProtoReflect ¶
func (x *QueryAllQuestionRequest) ProtoReflect() protoreflect.Message
func (*QueryAllQuestionRequest) Reset ¶
func (x *QueryAllQuestionRequest) Reset()
func (*QueryAllQuestionRequest) String ¶
func (x *QueryAllQuestionRequest) String() string
type QueryAllQuestionResponse ¶
type QueryAllQuestionResponse struct { Question []*Question `protobuf:"bytes,1,rep,name=question,proto3" json:"question,omitempty"` Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*QueryAllQuestionResponse) Descriptor
deprecated
func (*QueryAllQuestionResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryAllQuestionResponse.ProtoReflect.Descriptor instead.
func (*QueryAllQuestionResponse) GetPagination ¶
func (x *QueryAllQuestionResponse) GetPagination() *v1beta1.PageResponse
func (*QueryAllQuestionResponse) GetQuestion ¶
func (x *QueryAllQuestionResponse) GetQuestion() []*Question
func (*QueryAllQuestionResponse) ProtoMessage ¶
func (*QueryAllQuestionResponse) ProtoMessage()
func (*QueryAllQuestionResponse) ProtoReflect ¶
func (x *QueryAllQuestionResponse) ProtoReflect() protoreflect.Message
func (*QueryAllQuestionResponse) Reset ¶
func (x *QueryAllQuestionResponse) Reset()
func (*QueryAllQuestionResponse) String ¶
func (x *QueryAllQuestionResponse) String() string
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a list of Question items. Question(ctx context.Context, in *QueryGetQuestionRequest, opts ...grpc.CallOption) (*QueryGetQuestionResponse, error) QuestionAll(ctx context.Context, in *QueryAllQuestionRequest, opts ...grpc.CallOption) (*QueryAllQuestionResponse, error) // Queries a list of Answer items. Answer(ctx context.Context, in *QueryGetAnswerRequest, opts ...grpc.CallOption) (*QueryGetAnswerResponse, error) AnswerAll(ctx context.Context, in *QueryAllAnswerRequest, opts ...grpc.CallOption) (*QueryAllAnswerResponse, error) // Queries a list of GetAnswers items. GetAnswers(ctx context.Context, in *QueryGetAnswersRequest, opts ...grpc.CallOption) (*QueryGetAnswersResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryGetAnswerRequest ¶
type QueryGetAnswerRequest struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` // contains filtered or unexported fields }
func (*QueryGetAnswerRequest) Descriptor
deprecated
func (*QueryGetAnswerRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryGetAnswerRequest.ProtoReflect.Descriptor instead.
func (*QueryGetAnswerRequest) GetIndex ¶
func (x *QueryGetAnswerRequest) GetIndex() string
func (*QueryGetAnswerRequest) ProtoMessage ¶
func (*QueryGetAnswerRequest) ProtoMessage()
func (*QueryGetAnswerRequest) ProtoReflect ¶
func (x *QueryGetAnswerRequest) ProtoReflect() protoreflect.Message
func (*QueryGetAnswerRequest) Reset ¶
func (x *QueryGetAnswerRequest) Reset()
func (*QueryGetAnswerRequest) String ¶
func (x *QueryGetAnswerRequest) String() string
type QueryGetAnswerResponse ¶
type QueryGetAnswerResponse struct { Answer *Answer `protobuf:"bytes,1,opt,name=answer,proto3" json:"answer,omitempty"` // contains filtered or unexported fields }
func (*QueryGetAnswerResponse) Descriptor
deprecated
func (*QueryGetAnswerResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryGetAnswerResponse.ProtoReflect.Descriptor instead.
func (*QueryGetAnswerResponse) GetAnswer ¶
func (x *QueryGetAnswerResponse) GetAnswer() *Answer
func (*QueryGetAnswerResponse) ProtoMessage ¶
func (*QueryGetAnswerResponse) ProtoMessage()
func (*QueryGetAnswerResponse) ProtoReflect ¶
func (x *QueryGetAnswerResponse) ProtoReflect() protoreflect.Message
func (*QueryGetAnswerResponse) Reset ¶
func (x *QueryGetAnswerResponse) Reset()
func (*QueryGetAnswerResponse) String ¶
func (x *QueryGetAnswerResponse) String() string
type QueryGetAnswersRequest ¶
type QueryGetAnswersRequest struct { Qid string `protobuf:"bytes,1,opt,name=qid,proto3" json:"qid,omitempty"` Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*QueryGetAnswersRequest) Descriptor
deprecated
func (*QueryGetAnswersRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryGetAnswersRequest.ProtoReflect.Descriptor instead.
func (*QueryGetAnswersRequest) GetPagination ¶
func (x *QueryGetAnswersRequest) GetPagination() *v1beta1.PageRequest
func (*QueryGetAnswersRequest) GetQid ¶
func (x *QueryGetAnswersRequest) GetQid() string
func (*QueryGetAnswersRequest) ProtoMessage ¶
func (*QueryGetAnswersRequest) ProtoMessage()
func (*QueryGetAnswersRequest) ProtoReflect ¶
func (x *QueryGetAnswersRequest) ProtoReflect() protoreflect.Message
func (*QueryGetAnswersRequest) Reset ¶
func (x *QueryGetAnswersRequest) Reset()
func (*QueryGetAnswersRequest) String ¶
func (x *QueryGetAnswersRequest) String() string
type QueryGetAnswersResponse ¶
type QueryGetAnswersResponse struct { Answers []*Answer `protobuf:"bytes,1,rep,name=answers,proto3" json:"answers,omitempty"` Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*QueryGetAnswersResponse) Descriptor
deprecated
func (*QueryGetAnswersResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryGetAnswersResponse.ProtoReflect.Descriptor instead.
func (*QueryGetAnswersResponse) GetAnswers ¶
func (x *QueryGetAnswersResponse) GetAnswers() []*Answer
func (*QueryGetAnswersResponse) GetPagination ¶
func (x *QueryGetAnswersResponse) GetPagination() *v1beta1.PageResponse
func (*QueryGetAnswersResponse) ProtoMessage ¶
func (*QueryGetAnswersResponse) ProtoMessage()
func (*QueryGetAnswersResponse) ProtoReflect ¶
func (x *QueryGetAnswersResponse) ProtoReflect() protoreflect.Message
func (*QueryGetAnswersResponse) Reset ¶
func (x *QueryGetAnswersResponse) Reset()
func (*QueryGetAnswersResponse) String ¶
func (x *QueryGetAnswersResponse) String() string
type QueryGetQuestionRequest ¶
type QueryGetQuestionRequest struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` // contains filtered or unexported fields }
func (*QueryGetQuestionRequest) Descriptor
deprecated
func (*QueryGetQuestionRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryGetQuestionRequest.ProtoReflect.Descriptor instead.
func (*QueryGetQuestionRequest) GetIndex ¶
func (x *QueryGetQuestionRequest) GetIndex() string
func (*QueryGetQuestionRequest) ProtoMessage ¶
func (*QueryGetQuestionRequest) ProtoMessage()
func (*QueryGetQuestionRequest) ProtoReflect ¶
func (x *QueryGetQuestionRequest) ProtoReflect() protoreflect.Message
func (*QueryGetQuestionRequest) Reset ¶
func (x *QueryGetQuestionRequest) Reset()
func (*QueryGetQuestionRequest) String ¶
func (x *QueryGetQuestionRequest) String() string
type QueryGetQuestionResponse ¶
type QueryGetQuestionResponse struct { Question *Question `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"` // contains filtered or unexported fields }
func (*QueryGetQuestionResponse) Descriptor
deprecated
func (*QueryGetQuestionResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryGetQuestionResponse.ProtoReflect.Descriptor instead.
func (*QueryGetQuestionResponse) GetQuestion ¶
func (x *QueryGetQuestionResponse) GetQuestion() *Question
func (*QueryGetQuestionResponse) ProtoMessage ¶
func (*QueryGetQuestionResponse) ProtoMessage()
func (*QueryGetQuestionResponse) ProtoReflect ¶
func (x *QueryGetQuestionResponse) ProtoReflect() protoreflect.Message
func (*QueryGetQuestionResponse) Reset ¶
func (x *QueryGetQuestionResponse) Reset()
func (*QueryGetQuestionResponse) String ¶
func (x *QueryGetQuestionResponse) String() string
type QueryParamsRequest ¶
type QueryParamsRequest struct {
// contains filtered or unexported fields
}
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor
deprecated
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) ProtoReflect ¶
func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message
func (*QueryParamsRequest) Reset ¶
func (x *QueryParamsRequest) Reset()
func (*QueryParamsRequest) String ¶
func (x *QueryParamsRequest) String() string
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor
deprecated
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
func (*QueryParamsResponse) GetParams ¶
func (x *QueryParamsResponse) GetParams() *Params
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) ProtoReflect ¶
func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
func (*QueryParamsResponse) Reset ¶
func (x *QueryParamsResponse) Reset()
func (*QueryParamsResponse) String ¶
func (x *QueryParamsResponse) String() string
type QueryServer ¶
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Queries a list of Question items. Question(context.Context, *QueryGetQuestionRequest) (*QueryGetQuestionResponse, error) QuestionAll(context.Context, *QueryAllQuestionRequest) (*QueryAllQuestionResponse, error) // Queries a list of Answer items. Answer(context.Context, *QueryGetAnswerRequest) (*QueryGetAnswerResponse, error) AnswerAll(context.Context, *QueryAllAnswerRequest) (*QueryAllAnswerResponse, error) // Queries a list of GetAnswers items. GetAnswers(context.Context, *QueryGetAnswersRequest) (*QueryGetAnswersResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
type Question ¶
type Question struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` // contains filtered or unexported fields }
func (*Question) Descriptor
deprecated
func (*Question) ProtoMessage ¶
func (*Question) ProtoMessage()
func (*Question) ProtoReflect ¶
func (x *Question) ProtoReflect() protoreflect.Message
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) SubmitAnswer ¶
func (UnimplementedMsgServer) SubmitAnswer(context.Context, *MsgSubmitAnswer) (*MsgSubmitAnswerResponse, error)
func (UnimplementedMsgServer) SubmitQuestion ¶
func (UnimplementedMsgServer) SubmitQuestion(context.Context, *MsgSubmitQuestion) (*MsgSubmitQuestionResponse, error)
func (UnimplementedMsgServer) UpdateParams ¶
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) Answer ¶
func (UnimplementedQueryServer) Answer(context.Context, *QueryGetAnswerRequest) (*QueryGetAnswerResponse, error)
func (UnimplementedQueryServer) AnswerAll ¶
func (UnimplementedQueryServer) AnswerAll(context.Context, *QueryAllAnswerRequest) (*QueryAllAnswerResponse, error)
func (UnimplementedQueryServer) GetAnswers ¶
func (UnimplementedQueryServer) GetAnswers(context.Context, *QueryGetAnswersRequest) (*QueryGetAnswersResponse, error)
func (UnimplementedQueryServer) Params ¶
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
func (UnimplementedQueryServer) Question ¶
func (UnimplementedQueryServer) Question(context.Context, *QueryGetQuestionRequest) (*QueryGetQuestionResponse, error)
func (UnimplementedQueryServer) QuestionAll ¶
func (UnimplementedQueryServer) QuestionAll(context.Context, *QueryAllQuestionRequest) (*QueryAllQuestionResponse, error)
type UnsafeMsgServer ¶
type UnsafeMsgServer interface {
// contains filtered or unexported methods
}
UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.
type UnsafeQueryServer ¶
type UnsafeQueryServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.