hm

package
v0.0.0-...-5f99aa8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

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

View Source
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"
)
View Source
const (
	Msg_UpdateParams_FullMethodName   = "/hm.hm.Msg/UpdateParams"
	Msg_SubmitQuestion_FullMethodName = "/hm.hm.Msg/SubmitQuestion"
	Msg_SubmitAnswer_FullMethodName   = "/hm.hm.Msg/SubmitAnswer"
)

Variables

View Source
var File_hm_hm_answer_proto protoreflect.FileDescriptor
View Source
var File_hm_hm_genesis_proto protoreflect.FileDescriptor
View Source
var File_hm_hm_params_proto protoreflect.FileDescriptor
View Source
var File_hm_hm_query_proto protoreflect.FileDescriptor
View Source
var File_hm_hm_question_proto protoreflect.FileDescriptor
View Source
var File_hm_hm_tx_proto protoreflect.FileDescriptor
View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Answer.ProtoReflect.Descriptor instead.

func (*Answer) GetDesc

func (x *Answer) GetDesc() string

func (*Answer) GetIndex

func (x *Answer) GetIndex() string

func (*Answer) GetPlayer

func (x *Answer) GetPlayer() string

func (*Answer) ProtoMessage

func (*Answer) ProtoMessage()

func (*Answer) ProtoReflect

func (x *Answer) ProtoReflect() protoreflect.Message

func (*Answer) Reset

func (x *Answer) Reset()

func (*Answer) String

func (x *Answer) String() string

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 (*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) Descriptor() ([]byte, []int)

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

func (x *Params) ProtoReflect() protoreflect.Message

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Question.ProtoReflect.Descriptor instead.

func (*Question) GetDesc

func (x *Question) GetDesc() string

func (*Question) GetIndex

func (x *Question) GetIndex() string

func (*Question) ProtoMessage

func (*Question) ProtoMessage()

func (*Question) ProtoReflect

func (x *Question) ProtoReflect() protoreflect.Message

func (*Question) Reset

func (x *Question) Reset()

func (*Question) String

func (x *Question) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) SubmitAnswer

func (UnimplementedMsgServer) SubmitQuestion

func (UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) AnswerAll

func (UnimplementedQueryServer) Params

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.

Directories

Path Synopsis
Code generated by protoc-gen-go-pulsar.
Code generated by protoc-gen-go-pulsar.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL