Documentation ¶
Overview ¶
Package question is a generated protocol buffer package.
It is generated from these files:
question.proto
It has these top-level messages:
CreateQuestionRequest CreateQuestionResponse GetQuestionRequest GetQuestionResponse
Index ¶
- func RegisterQuestionServer(s *grpc.Server, srv QuestionServer)
- type CreateQuestionRequest
- func (*CreateQuestionRequest) Descriptor() ([]byte, []int)
- func (m *CreateQuestionRequest) GetAnswer() *CreateQuestionRequest_Answer
- func (m *CreateQuestionRequest) GetAuthToken() string
- func (m *CreateQuestionRequest) GetBody() string
- func (m *CreateQuestionRequest) GetCategory() *CreateQuestionRequest_Category
- func (m *CreateQuestionRequest) GetTitle() string
- func (m *CreateQuestionRequest) GetWeight() *CreateQuestionRequest_Weight
- func (*CreateQuestionRequest) ProtoMessage()
- func (m *CreateQuestionRequest) Reset()
- func (m *CreateQuestionRequest) String() string
- type CreateQuestionRequest_Answer
- func (*CreateQuestionRequest_Answer) Descriptor() ([]byte, []int)
- func (m *CreateQuestionRequest_Answer) GetCategories() []*CreateQuestionRequest_Answer_Category
- func (m *CreateQuestionRequest_Answer) GetOption1() string
- func (m *CreateQuestionRequest_Answer) GetOption2() string
- func (m *CreateQuestionRequest_Answer) GetOption3() string
- func (m *CreateQuestionRequest_Answer) GetOption4() string
- func (m *CreateQuestionRequest_Answer) GetOption5() string
- func (m *CreateQuestionRequest_Answer) GetWeights() []*CreateQuestionRequest_Answer_Weight
- func (*CreateQuestionRequest_Answer) ProtoMessage()
- func (m *CreateQuestionRequest_Answer) Reset()
- func (m *CreateQuestionRequest_Answer) String() string
- type CreateQuestionRequest_Answer_Category
- func (*CreateQuestionRequest_Answer_Category) Descriptor() ([]byte, []int)
- func (m *CreateQuestionRequest_Answer_Category) GetCategories() []*CreateQuestionRequest_Answer_Category
- func (m *CreateQuestionRequest_Answer_Category) GetId() int32
- func (m *CreateQuestionRequest_Answer_Category) GetName() string
- func (m *CreateQuestionRequest_Answer_Category) GetOption() int32
- func (m *CreateQuestionRequest_Answer_Category) GetParent() int32
- func (*CreateQuestionRequest_Answer_Category) ProtoMessage()
- func (m *CreateQuestionRequest_Answer_Category) Reset()
- func (m *CreateQuestionRequest_Answer_Category) String() string
- type CreateQuestionRequest_Answer_Weight
- func (*CreateQuestionRequest_Answer_Weight) Descriptor() ([]byte, []int)
- func (m *CreateQuestionRequest_Answer_Weight) GetOption() int32
- func (m *CreateQuestionRequest_Answer_Weight) GetValue() float32
- func (*CreateQuestionRequest_Answer_Weight) ProtoMessage()
- func (m *CreateQuestionRequest_Answer_Weight) Reset()
- func (m *CreateQuestionRequest_Answer_Weight) String() string
- type CreateQuestionRequest_Category
- func (*CreateQuestionRequest_Category) Descriptor() ([]byte, []int)
- func (m *CreateQuestionRequest_Category) GetCategories() []*CreateQuestionRequest_Category
- func (m *CreateQuestionRequest_Category) GetId() int32
- func (m *CreateQuestionRequest_Category) GetName() string
- func (m *CreateQuestionRequest_Category) GetParent() int32
- func (*CreateQuestionRequest_Category) ProtoMessage()
- func (m *CreateQuestionRequest_Category) Reset()
- func (m *CreateQuestionRequest_Category) String() string
- type CreateQuestionRequest_Weight
- type CreateQuestionResponse
- func (*CreateQuestionResponse) Descriptor() ([]byte, []int)
- func (m *CreateQuestionResponse) GetCategories() []*CreateQuestionResponse_Category
- func (m *CreateQuestionResponse) GetMessage() string
- func (m *CreateQuestionResponse) GetStatus() string
- func (*CreateQuestionResponse) ProtoMessage()
- func (m *CreateQuestionResponse) Reset()
- func (m *CreateQuestionResponse) String() string
- type CreateQuestionResponse_Category
- func (*CreateQuestionResponse_Category) Descriptor() ([]byte, []int)
- func (m *CreateQuestionResponse_Category) GetId() int32
- func (m *CreateQuestionResponse_Category) GetLevel() int32
- func (m *CreateQuestionResponse_Category) GetName() string
- func (m *CreateQuestionResponse_Category) GetParent() int32
- func (m *CreateQuestionResponse_Category) GetWeightRange() string
- func (*CreateQuestionResponse_Category) ProtoMessage()
- func (m *CreateQuestionResponse_Category) Reset()
- func (m *CreateQuestionResponse_Category) String() string
- type GetQuestionRequest
- func (*GetQuestionRequest) Descriptor() ([]byte, []int)
- func (m *GetQuestionRequest) GetAnswer() *GetQuestionRequest_Answer
- func (m *GetQuestionRequest) GetAuthToken() string
- func (m *GetQuestionRequest) GetCategoryId() int32
- func (m *GetQuestionRequest) GetQuestionId() int32
- func (*GetQuestionRequest) ProtoMessage()
- func (m *GetQuestionRequest) Reset()
- func (m *GetQuestionRequest) String() string
- type GetQuestionRequest_Answer
- func (*GetQuestionRequest_Answer) Descriptor() ([]byte, []int)
- func (m *GetQuestionRequest_Answer) GetOption1() bool
- func (m *GetQuestionRequest_Answer) GetOption2() bool
- func (m *GetQuestionRequest_Answer) GetOption3() bool
- func (m *GetQuestionRequest_Answer) GetOption4() bool
- func (m *GetQuestionRequest_Answer) GetOption5() bool
- func (*GetQuestionRequest_Answer) ProtoMessage()
- func (m *GetQuestionRequest_Answer) Reset()
- func (m *GetQuestionRequest_Answer) String() string
- type GetQuestionResponse
- func (*GetQuestionResponse) Descriptor() ([]byte, []int)
- func (m *GetQuestionResponse) GetAnswer() *GetQuestionResponse_Answer
- func (m *GetQuestionResponse) GetBody() string
- func (m *GetQuestionResponse) GetId() int32
- func (m *GetQuestionResponse) GetMessage() string
- func (m *GetQuestionResponse) GetScore() float32
- func (m *GetQuestionResponse) GetStatus() string
- func (m *GetQuestionResponse) GetTitle() string
- func (*GetQuestionResponse) ProtoMessage()
- func (m *GetQuestionResponse) Reset()
- func (m *GetQuestionResponse) String() string
- type GetQuestionResponse_Answer
- func (*GetQuestionResponse_Answer) Descriptor() ([]byte, []int)
- func (m *GetQuestionResponse_Answer) GetOption1() string
- func (m *GetQuestionResponse_Answer) GetOption2() string
- func (m *GetQuestionResponse_Answer) GetOption3() string
- func (m *GetQuestionResponse_Answer) GetOption4() string
- func (m *GetQuestionResponse_Answer) GetOption5() string
- func (*GetQuestionResponse_Answer) ProtoMessage()
- func (m *GetQuestionResponse_Answer) Reset()
- func (m *GetQuestionResponse_Answer) String() string
- type QuestionClient
- type QuestionServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterQuestionServer ¶
func RegisterQuestionServer(s *grpc.Server, srv QuestionServer)
Types ¶
type CreateQuestionRequest ¶
type CreateQuestionRequest struct { AuthToken string `protobuf:"bytes,1,opt,name=auth_token,json=authToken" json:"auth_token,omitempty"` Title string `protobuf:"bytes,2,opt,name=title" json:"title,omitempty"` Body string `protobuf:"bytes,3,opt,name=body" json:"body,omitempty"` Answer *CreateQuestionRequest_Answer `protobuf:"bytes,4,opt,name=answer" json:"answer,omitempty"` Weight *CreateQuestionRequest_Weight `protobuf:"bytes,5,opt,name=weight" json:"weight,omitempty"` Category *CreateQuestionRequest_Category `protobuf:"bytes,6,opt,name=category" json:"category,omitempty"` }
func (*CreateQuestionRequest) Descriptor ¶
func (*CreateQuestionRequest) Descriptor() ([]byte, []int)
func (*CreateQuestionRequest) GetAnswer ¶
func (m *CreateQuestionRequest) GetAnswer() *CreateQuestionRequest_Answer
func (*CreateQuestionRequest) GetAuthToken ¶
func (m *CreateQuestionRequest) GetAuthToken() string
func (*CreateQuestionRequest) GetBody ¶
func (m *CreateQuestionRequest) GetBody() string
func (*CreateQuestionRequest) GetCategory ¶
func (m *CreateQuestionRequest) GetCategory() *CreateQuestionRequest_Category
func (*CreateQuestionRequest) GetTitle ¶
func (m *CreateQuestionRequest) GetTitle() string
func (*CreateQuestionRequest) GetWeight ¶
func (m *CreateQuestionRequest) GetWeight() *CreateQuestionRequest_Weight
func (*CreateQuestionRequest) ProtoMessage ¶
func (*CreateQuestionRequest) ProtoMessage()
func (*CreateQuestionRequest) Reset ¶
func (m *CreateQuestionRequest) Reset()
func (*CreateQuestionRequest) String ¶
func (m *CreateQuestionRequest) String() string
type CreateQuestionRequest_Answer ¶
type CreateQuestionRequest_Answer struct { Option1 string `protobuf:"bytes,1,opt,name=option1" json:"option1,omitempty"` Option2 string `protobuf:"bytes,2,opt,name=option2" json:"option2,omitempty"` Option3 string `protobuf:"bytes,3,opt,name=option3" json:"option3,omitempty"` Option4 string `protobuf:"bytes,4,opt,name=option4" json:"option4,omitempty"` Option5 string `protobuf:"bytes,5,opt,name=option5" json:"option5,omitempty"` Weights []*CreateQuestionRequest_Answer_Weight `protobuf:"bytes,6,rep,name=weights" json:"weights,omitempty"` Categories []*CreateQuestionRequest_Answer_Category `protobuf:"bytes,7,rep,name=categories" json:"categories,omitempty"` }
func (*CreateQuestionRequest_Answer) Descriptor ¶
func (*CreateQuestionRequest_Answer) Descriptor() ([]byte, []int)
func (*CreateQuestionRequest_Answer) GetCategories ¶
func (m *CreateQuestionRequest_Answer) GetCategories() []*CreateQuestionRequest_Answer_Category
func (*CreateQuestionRequest_Answer) GetOption1 ¶
func (m *CreateQuestionRequest_Answer) GetOption1() string
func (*CreateQuestionRequest_Answer) GetOption2 ¶
func (m *CreateQuestionRequest_Answer) GetOption2() string
func (*CreateQuestionRequest_Answer) GetOption3 ¶
func (m *CreateQuestionRequest_Answer) GetOption3() string
func (*CreateQuestionRequest_Answer) GetOption4 ¶
func (m *CreateQuestionRequest_Answer) GetOption4() string
func (*CreateQuestionRequest_Answer) GetOption5 ¶
func (m *CreateQuestionRequest_Answer) GetOption5() string
func (*CreateQuestionRequest_Answer) GetWeights ¶
func (m *CreateQuestionRequest_Answer) GetWeights() []*CreateQuestionRequest_Answer_Weight
func (*CreateQuestionRequest_Answer) ProtoMessage ¶
func (*CreateQuestionRequest_Answer) ProtoMessage()
func (*CreateQuestionRequest_Answer) Reset ¶
func (m *CreateQuestionRequest_Answer) Reset()
func (*CreateQuestionRequest_Answer) String ¶
func (m *CreateQuestionRequest_Answer) String() string
type CreateQuestionRequest_Answer_Category ¶
type CreateQuestionRequest_Answer_Category struct { Id int32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Option int32 `protobuf:"varint,3,opt,name=option" json:"option,omitempty"` Parent int32 `protobuf:"varint,4,opt,name=parent" json:"parent,omitempty"` Categories []*CreateQuestionRequest_Answer_Category `protobuf:"bytes,5,rep,name=categories" json:"categories,omitempty"` }
func (*CreateQuestionRequest_Answer_Category) Descriptor ¶
func (*CreateQuestionRequest_Answer_Category) Descriptor() ([]byte, []int)
func (*CreateQuestionRequest_Answer_Category) GetCategories ¶
func (m *CreateQuestionRequest_Answer_Category) GetCategories() []*CreateQuestionRequest_Answer_Category
func (*CreateQuestionRequest_Answer_Category) GetId ¶
func (m *CreateQuestionRequest_Answer_Category) GetId() int32
func (*CreateQuestionRequest_Answer_Category) GetName ¶
func (m *CreateQuestionRequest_Answer_Category) GetName() string
func (*CreateQuestionRequest_Answer_Category) GetOption ¶
func (m *CreateQuestionRequest_Answer_Category) GetOption() int32
func (*CreateQuestionRequest_Answer_Category) GetParent ¶
func (m *CreateQuestionRequest_Answer_Category) GetParent() int32
func (*CreateQuestionRequest_Answer_Category) ProtoMessage ¶
func (*CreateQuestionRequest_Answer_Category) ProtoMessage()
func (*CreateQuestionRequest_Answer_Category) Reset ¶
func (m *CreateQuestionRequest_Answer_Category) Reset()
func (*CreateQuestionRequest_Answer_Category) String ¶
func (m *CreateQuestionRequest_Answer_Category) String() string
type CreateQuestionRequest_Answer_Weight ¶
type CreateQuestionRequest_Answer_Weight struct { Value float32 `protobuf:"fixed32,1,opt,name=value" json:"value,omitempty"` Option int32 `protobuf:"varint,2,opt,name=option" json:"option,omitempty"` }
func (*CreateQuestionRequest_Answer_Weight) Descriptor ¶
func (*CreateQuestionRequest_Answer_Weight) Descriptor() ([]byte, []int)
func (*CreateQuestionRequest_Answer_Weight) GetOption ¶
func (m *CreateQuestionRequest_Answer_Weight) GetOption() int32
func (*CreateQuestionRequest_Answer_Weight) GetValue ¶
func (m *CreateQuestionRequest_Answer_Weight) GetValue() float32
func (*CreateQuestionRequest_Answer_Weight) ProtoMessage ¶
func (*CreateQuestionRequest_Answer_Weight) ProtoMessage()
func (*CreateQuestionRequest_Answer_Weight) Reset ¶
func (m *CreateQuestionRequest_Answer_Weight) Reset()
func (*CreateQuestionRequest_Answer_Weight) String ¶
func (m *CreateQuestionRequest_Answer_Weight) String() string
type CreateQuestionRequest_Category ¶
type CreateQuestionRequest_Category struct { Id int32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Parent int32 `protobuf:"varint,3,opt,name=parent" json:"parent,omitempty"` Categories []*CreateQuestionRequest_Category `protobuf:"bytes,4,rep,name=categories" json:"categories,omitempty"` }
func (*CreateQuestionRequest_Category) Descriptor ¶
func (*CreateQuestionRequest_Category) Descriptor() ([]byte, []int)
func (*CreateQuestionRequest_Category) GetCategories ¶
func (m *CreateQuestionRequest_Category) GetCategories() []*CreateQuestionRequest_Category
func (*CreateQuestionRequest_Category) GetId ¶
func (m *CreateQuestionRequest_Category) GetId() int32
func (*CreateQuestionRequest_Category) GetName ¶
func (m *CreateQuestionRequest_Category) GetName() string
func (*CreateQuestionRequest_Category) GetParent ¶
func (m *CreateQuestionRequest_Category) GetParent() int32
func (*CreateQuestionRequest_Category) ProtoMessage ¶
func (*CreateQuestionRequest_Category) ProtoMessage()
func (*CreateQuestionRequest_Category) Reset ¶
func (m *CreateQuestionRequest_Category) Reset()
func (*CreateQuestionRequest_Category) String ¶
func (m *CreateQuestionRequest_Category) String() string
type CreateQuestionRequest_Weight ¶
type CreateQuestionRequest_Weight struct {
Value float32 `protobuf:"fixed32,1,opt,name=value" json:"value,omitempty"`
}
func (*CreateQuestionRequest_Weight) Descriptor ¶
func (*CreateQuestionRequest_Weight) Descriptor() ([]byte, []int)
func (*CreateQuestionRequest_Weight) GetValue ¶
func (m *CreateQuestionRequest_Weight) GetValue() float32
func (*CreateQuestionRequest_Weight) ProtoMessage ¶
func (*CreateQuestionRequest_Weight) ProtoMessage()
func (*CreateQuestionRequest_Weight) Reset ¶
func (m *CreateQuestionRequest_Weight) Reset()
func (*CreateQuestionRequest_Weight) String ¶
func (m *CreateQuestionRequest_Weight) String() string
type CreateQuestionResponse ¶
type CreateQuestionResponse struct { Status string `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` Categories []*CreateQuestionResponse_Category `protobuf:"bytes,3,rep,name=categories" json:"categories,omitempty"` }
func (*CreateQuestionResponse) Descriptor ¶
func (*CreateQuestionResponse) Descriptor() ([]byte, []int)
func (*CreateQuestionResponse) GetCategories ¶
func (m *CreateQuestionResponse) GetCategories() []*CreateQuestionResponse_Category
func (*CreateQuestionResponse) GetMessage ¶
func (m *CreateQuestionResponse) GetMessage() string
func (*CreateQuestionResponse) GetStatus ¶
func (m *CreateQuestionResponse) GetStatus() string
func (*CreateQuestionResponse) ProtoMessage ¶
func (*CreateQuestionResponse) ProtoMessage()
func (*CreateQuestionResponse) Reset ¶
func (m *CreateQuestionResponse) Reset()
func (*CreateQuestionResponse) String ¶
func (m *CreateQuestionResponse) String() string
type CreateQuestionResponse_Category ¶
type CreateQuestionResponse_Category struct { Id int32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` WeightRange string `protobuf:"bytes,3,opt,name=weight_range,json=weightRange" json:"weight_range,omitempty"` Parent int32 `protobuf:"varint,4,opt,name=parent" json:"parent,omitempty"` Level int32 `protobuf:"varint,5,opt,name=level" json:"level,omitempty"` }
func (*CreateQuestionResponse_Category) Descriptor ¶
func (*CreateQuestionResponse_Category) Descriptor() ([]byte, []int)
func (*CreateQuestionResponse_Category) GetId ¶
func (m *CreateQuestionResponse_Category) GetId() int32
func (*CreateQuestionResponse_Category) GetLevel ¶
func (m *CreateQuestionResponse_Category) GetLevel() int32
func (*CreateQuestionResponse_Category) GetName ¶
func (m *CreateQuestionResponse_Category) GetName() string
func (*CreateQuestionResponse_Category) GetParent ¶
func (m *CreateQuestionResponse_Category) GetParent() int32
func (*CreateQuestionResponse_Category) GetWeightRange ¶
func (m *CreateQuestionResponse_Category) GetWeightRange() string
func (*CreateQuestionResponse_Category) ProtoMessage ¶
func (*CreateQuestionResponse_Category) ProtoMessage()
func (*CreateQuestionResponse_Category) Reset ¶
func (m *CreateQuestionResponse_Category) Reset()
func (*CreateQuestionResponse_Category) String ¶
func (m *CreateQuestionResponse_Category) String() string
type GetQuestionRequest ¶
type GetQuestionRequest struct { AuthToken string `protobuf:"bytes,1,opt,name=auth_token,json=authToken" json:"auth_token,omitempty"` QuestionId int32 `protobuf:"varint,2,opt,name=question_id,json=questionId" json:"question_id,omitempty"` CategoryId int32 `protobuf:"varint,3,opt,name=category_id,json=categoryId" json:"category_id,omitempty"` Answer *GetQuestionRequest_Answer `protobuf:"bytes,4,opt,name=answer" json:"answer,omitempty"` }
func (*GetQuestionRequest) Descriptor ¶
func (*GetQuestionRequest) Descriptor() ([]byte, []int)
func (*GetQuestionRequest) GetAnswer ¶
func (m *GetQuestionRequest) GetAnswer() *GetQuestionRequest_Answer
func (*GetQuestionRequest) GetAuthToken ¶
func (m *GetQuestionRequest) GetAuthToken() string
func (*GetQuestionRequest) GetCategoryId ¶
func (m *GetQuestionRequest) GetCategoryId() int32
func (*GetQuestionRequest) GetQuestionId ¶
func (m *GetQuestionRequest) GetQuestionId() int32
func (*GetQuestionRequest) ProtoMessage ¶
func (*GetQuestionRequest) ProtoMessage()
func (*GetQuestionRequest) Reset ¶
func (m *GetQuestionRequest) Reset()
func (*GetQuestionRequest) String ¶
func (m *GetQuestionRequest) String() string
type GetQuestionRequest_Answer ¶
type GetQuestionRequest_Answer struct { Option1 bool `protobuf:"varint,1,opt,name=option1" json:"option1,omitempty"` Option2 bool `protobuf:"varint,2,opt,name=option2" json:"option2,omitempty"` Option3 bool `protobuf:"varint,3,opt,name=option3" json:"option3,omitempty"` Option4 bool `protobuf:"varint,4,opt,name=option4" json:"option4,omitempty"` Option5 bool `protobuf:"varint,5,opt,name=option5" json:"option5,omitempty"` }
func (*GetQuestionRequest_Answer) Descriptor ¶
func (*GetQuestionRequest_Answer) Descriptor() ([]byte, []int)
func (*GetQuestionRequest_Answer) GetOption1 ¶
func (m *GetQuestionRequest_Answer) GetOption1() bool
func (*GetQuestionRequest_Answer) GetOption2 ¶
func (m *GetQuestionRequest_Answer) GetOption2() bool
func (*GetQuestionRequest_Answer) GetOption3 ¶
func (m *GetQuestionRequest_Answer) GetOption3() bool
func (*GetQuestionRequest_Answer) GetOption4 ¶
func (m *GetQuestionRequest_Answer) GetOption4() bool
func (*GetQuestionRequest_Answer) GetOption5 ¶
func (m *GetQuestionRequest_Answer) GetOption5() bool
func (*GetQuestionRequest_Answer) ProtoMessage ¶
func (*GetQuestionRequest_Answer) ProtoMessage()
func (*GetQuestionRequest_Answer) Reset ¶
func (m *GetQuestionRequest_Answer) Reset()
func (*GetQuestionRequest_Answer) String ¶
func (m *GetQuestionRequest_Answer) String() string
type GetQuestionResponse ¶
type GetQuestionResponse struct { Status string `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` Id int32 `protobuf:"varint,3,opt,name=id" json:"id,omitempty"` Title string `protobuf:"bytes,4,opt,name=title" json:"title,omitempty"` Body string `protobuf:"bytes,5,opt,name=body" json:"body,omitempty"` Score float32 `protobuf:"fixed32,6,opt,name=score" json:"score,omitempty"` Answer *GetQuestionResponse_Answer `protobuf:"bytes,7,opt,name=answer" json:"answer,omitempty"` }
func (*GetQuestionResponse) Descriptor ¶
func (*GetQuestionResponse) Descriptor() ([]byte, []int)
func (*GetQuestionResponse) GetAnswer ¶
func (m *GetQuestionResponse) GetAnswer() *GetQuestionResponse_Answer
func (*GetQuestionResponse) GetBody ¶
func (m *GetQuestionResponse) GetBody() string
func (*GetQuestionResponse) GetId ¶
func (m *GetQuestionResponse) GetId() int32
func (*GetQuestionResponse) GetMessage ¶
func (m *GetQuestionResponse) GetMessage() string
func (*GetQuestionResponse) GetScore ¶
func (m *GetQuestionResponse) GetScore() float32
func (*GetQuestionResponse) GetStatus ¶
func (m *GetQuestionResponse) GetStatus() string
func (*GetQuestionResponse) GetTitle ¶
func (m *GetQuestionResponse) GetTitle() string
func (*GetQuestionResponse) ProtoMessage ¶
func (*GetQuestionResponse) ProtoMessage()
func (*GetQuestionResponse) Reset ¶
func (m *GetQuestionResponse) Reset()
func (*GetQuestionResponse) String ¶
func (m *GetQuestionResponse) String() string
type GetQuestionResponse_Answer ¶
type GetQuestionResponse_Answer struct { Option1 string `protobuf:"bytes,1,opt,name=option1" json:"option1,omitempty"` Option2 string `protobuf:"bytes,2,opt,name=option2" json:"option2,omitempty"` Option3 string `protobuf:"bytes,3,opt,name=option3" json:"option3,omitempty"` Option4 string `protobuf:"bytes,4,opt,name=option4" json:"option4,omitempty"` Option5 string `protobuf:"bytes,5,opt,name=option5" json:"option5,omitempty"` }
func (*GetQuestionResponse_Answer) Descriptor ¶
func (*GetQuestionResponse_Answer) Descriptor() ([]byte, []int)
func (*GetQuestionResponse_Answer) GetOption1 ¶
func (m *GetQuestionResponse_Answer) GetOption1() string
func (*GetQuestionResponse_Answer) GetOption2 ¶
func (m *GetQuestionResponse_Answer) GetOption2() string
func (*GetQuestionResponse_Answer) GetOption3 ¶
func (m *GetQuestionResponse_Answer) GetOption3() string
func (*GetQuestionResponse_Answer) GetOption4 ¶
func (m *GetQuestionResponse_Answer) GetOption4() string
func (*GetQuestionResponse_Answer) GetOption5 ¶
func (m *GetQuestionResponse_Answer) GetOption5() string
func (*GetQuestionResponse_Answer) ProtoMessage ¶
func (*GetQuestionResponse_Answer) ProtoMessage()
func (*GetQuestionResponse_Answer) Reset ¶
func (m *GetQuestionResponse_Answer) Reset()
func (*GetQuestionResponse_Answer) String ¶
func (m *GetQuestionResponse_Answer) String() string
type QuestionClient ¶
type QuestionClient interface { // Create a new question CreateQuestion(ctx context.Context, in *CreateQuestionRequest, opts ...grpc.CallOption) (*CreateQuestionResponse, error) // Get next question GetQuestion(ctx context.Context, in *GetQuestionRequest, opts ...grpc.CallOption) (*GetQuestionResponse, error) }
func NewQuestionClient ¶
func NewQuestionClient(cc *grpc.ClientConn) QuestionClient
type QuestionServer ¶
type QuestionServer interface { // Create a new question CreateQuestion(context.Context, *CreateQuestionRequest) (*CreateQuestionResponse, error) // Get next question GetQuestion(context.Context, *GetQuestionRequest) (*GetQuestionResponse, error) }
Click to show internal directories.
Click to hide internal directories.