Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NewQuestion ¶
type NewQuestionTranslation ¶
type NewQuestionTranslation struct {
Text string `json:"text" validate:"required"`
}
type QuestionServicer ¶
type QuestionServicer interface { Add(ctx context.Context, text string, group string, roundType string) (service.Question, error) AddTranslation( ctx context.Context, questionID uuid.UUID, text string, locale string, ) (service.QuestionTranslation, error) GetQuestions( ctx context.Context, filters service.GetQuestionFilters, limit int32, pageNum int32, ) ([]service.Question, error) DisableQuestion(ctx context.Context, id uuid.UUID) error EnableQuestion(ctx context.Context, id uuid.UUID) error AddGroup(ctx context.Context, name string) (service.Group, error) GetGroups(ctx context.Context) ([]service.Group, error) }
type Server ¶
type Server struct { Logger *slog.Logger Websocket websocketer Config ServerConfig Server *http.Server QuestionService QuestionServicer }
func NewServer ¶
func NewServer( websocketer websocketer, logger *slog.Logger, staticFS http.FileSystem, keyfunc jwt.Keyfunc, questionService QuestionServicer, config ServerConfig, ) *Server
Source Files
¶
Click to show internal directories.
Click to hide internal directories.