util

package
v4.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: LGPL-2.1 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

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