responses

package
v0.0.0-...-7184739 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Answer

type Answer struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Success bool   `json:"success"`
}

Answer http standard response

type QuestionResponse

type QuestionResponse struct {
	Question models.Question `json:"question"`
	Answers  []models.Answer `json:"answers"`
}

QuestionResponse http response for question req

type Stat

type Stat struct {
	Category string `json:"category"`
	Total    int    `json:"total"`
	Hits     int    `json:"hits"`
}

Stat http response for stats

Jump to

Keyboard shortcuts

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