util

package
v3.4.7-0...-d5663eb 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: 0

Documentation

Index

Constants

View Source
const Version = `3.4.6`

Variables

View Source
var RecordStructTag = `pivot`

Functions

func AnyFeatures

func AnyFeatures(names ...string) bool

func DisableFeature

func DisableFeature(name string)

func EnableFeature

func EnableFeature(name string)

func Features

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