Documentation
¶
Index ¶
- Variables
- type Server
- func (s *Server) CreateQuestion(ctx context.Context, req *proto.CreateQuestionRequest) (*proto.CreateQuestionResponse, error)
- func (s *Server) GetLatestQuestions(ctx context.Context, req *proto.GetLatestQuestionsRequest) (*proto.GetLatestQuestionsResponse, error)
- func (s *Server) Shutdown()
- func (s *Server) Start() error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { proto.UnimplementedQuizoryServiceServer // contains filtered or unexported fields }
Server represents the gRPC server that handles INTERNAL requests.
func NewServer ¶
func NewServer( cfg config.ServerConfig, questionService *question.Service, ) *Server
func (*Server) CreateQuestion ¶
func (s *Server) CreateQuestion( ctx context.Context, req *proto.CreateQuestionRequest, ) (*proto.CreateQuestionResponse, error)
func (*Server) GetLatestQuestions ¶
func (s *Server) GetLatestQuestions( ctx context.Context, req *proto.GetLatestQuestionsRequest, ) (*proto.GetLatestQuestionsResponse, error)
Click to show internal directories.
Click to hide internal directories.