response

package
v0.0.0-...-0eba841 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorDocumentNotFound = NewError("DOCUMENT_NOT_FOUND")
	ErrorInvalidData      = NewError("INVALID_DATA")
	ErrorTitleTooLong     = NewError("TITLE_TOO_LONG")
	ErrorAuthorTooLong    = NewError("AUTHOR_TOO_LONG")
	ErrorContentEmpty     = NewError("CONTENT_EMPTY")
	ErrorContentTooLong   = NewError("CONTENT_TOO_LONG")
	ErrorTooFast          = NewError("TOO_FAST")
)

Functions

This section is empty.

Types

type Error

type Error struct {
	Ok    bool   `json:"ok"`
	Error string `json:"error"`
}

func NewError

func NewError(error string) *Error

type Result

type Result struct {
	Ok     bool        `json:"ok"`
	Result interface{} `json:"result"`
}

func NewResult

func NewResult(result interface{}) *Result

Jump to

Keyboard shortcuts

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