models

package
v0.0.0-...-e93a289 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2016 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetQueryResults

func GetQueryResults(form QueryForm) ([][]int, error)

Types

type DatabaseError

type DatabaseError struct {
	Uri string
	Err error
}

func (DatabaseError) Error

func (e DatabaseError) Error() string

type Formatter

type Formatter interface {
	Format() error
}

type QueryForm

type QueryForm struct {
	Sum     int   `form:"sum" json:"sum"`
	Include []int `form:"include" json:"include"`
	Exclude []int `form:"exclude" json:"exclude"`
}

type RadioParamError

type RadioParamError struct {
	Field string
	Msg   string
}

func (RadioParamError) Error

func (e RadioParamError) Error() string

type TooLateForm

type TooLateForm struct {
	Clicked bool `form:"clicked json:"clicked"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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