questions

package
v0.0.0-...-59b6e81 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultOffset = 0
	DefaultLimit  = 10
	DefaultSort   = "created_at"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PageableResponse

type PageableResponse struct {
	Data  []repository.QuestionWithRating `json:"data"`
	Count int64                           `json:"count"`
}

type QuestionController

type QuestionController struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(questionRepository repository.QuestionRepository) QuestionController

func (QuestionController) Create

func (QuestionController) Delete

func (QuestionController) Get

func (QuestionController) GetAll

func (QuestionController) Update

type Request

type Request struct {
	Title       string `json:"title"`
	Description string `json:"description"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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