owl

package
v0.0.0-...-5416f79 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetQueryObjectByUuid

func GetQueryObjectByUuid(
	d *struct {
		Uuid uuid.UUID `mvc:"param[uuid]"`
		Uri  string    `mvc:"req[RequestURI]"`
	},
) mvc.OutputBody

func SaveQueryObject

func SaveQueryObject(jsonQuery *QueryObject) mvc.OutputBody

func VacuumOldQueryObjects

func VacuumOldQueryObjects(
	d *struct {
		ForDays int `mvc:"query[for_days] default[180]" validate:"min=14"`
	},
) mvc.OutputBody

Types

type QueryObject

type QueryObject struct {
	NamedId string `json:"feature_name" validate:"min=1"`

	Content    json.VarBytes `json:"content" validate:"min=1"`
	Md5Content json.Bytes16  `json:"md5_content" validate:"non_zero_slice"`
}

func (*QueryObject) Bind

func (qb *QueryObject) Bind(c *gin.Context)

Jump to

Keyboard shortcuts

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