util

package
v3.4.9 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: LGPL-2.1 Imports: 1 Imported by: 5

Documentation

Index

Constants

View Source
const Version = `3.4.9`

Variables

View Source
var RecordStructTag = `pivot`

Functions

func AnyFeatures added in v3.3.2

func AnyFeatures(names ...string) bool

func DisableFeature added in v3.3.2

func DisableFeature(name string)

func EnableFeature added in v3.3.2

func EnableFeature(name string)

func Features added in v3.3.2

func Features(names ...string) bool

Types

type Endpoint

type Endpoint struct {
	BackendName string
	Method      string
	Path        string
	Handler     EndpointResponseFunc
}

type EndpointResponseFunc

type EndpointResponseFunc func(*http.Request, map[string]string) (int, interface{}, error)

type Status

type Status struct {
	OK          bool   `json:"ok"`
	Application string `json:"application"`
	Version     string `json:"version"`
	Backend     string `json:"backend,omitempty"`
	Indexer     string `json:"indexer,omitempty"`
}

Jump to

Keyboard shortcuts

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