owl

package
v3.14.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2017 License: Apache-2.0 Imports: 12 Imported by: 2

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