annotations

package
v1.2.0-sm-switchrw-rc1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2017 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AnnotationsDriver driver
View Source
var CacheControlHeader string

Functions

func BuildInfoHandler

func BuildInfoHandler(w http.ResponseWriter, req *http.Request)

buildInfoHandler - This is a stop gap and will be added to when we can define what we should display here

func Checker

func Checker() (string, error)

func GetAnnotations

func GetAnnotations(w http.ResponseWriter, r *http.Request)

func GetFilteredAnnotations

func GetFilteredAnnotations(w http.ResponseWriter, r *http.Request)

func GoodToGo

func GoodToGo(writer http.ResponseWriter, req *http.Request)

goodToGo returns a 503 if the healthcheck fails - suitable for use from varnish to check availability of a node

func HealthCheck

func HealthCheck() v1a.Check

func MethodNotAllowedHandler

func MethodNotAllowedHandler(w http.ResponseWriter, r *http.Request)

methodNotAllowedHandler handles 405

func NewCypherDriver

func NewCypherDriver(conn neoutils.NeoConnection, env string) cypherDriver

func Ping

func Ping(w http.ResponseWriter, r *http.Request)

Types

type AnnotationsFilter

type AnnotationsFilter struct {
	// Definition of predicate groups to whom Rule of Importance should be applied.
	// Each group contains a list of predicate names in the order of increasing importance.
	ImportanceRuleConfig [][]string
	// contains filtered or unexported fields
}

func NewAnnotationsFilter

func NewAnnotationsFilter() *AnnotationsFilter

func (*AnnotationsFilter) Add

func (f *AnnotationsFilter) Add(a annotation)

func (*AnnotationsFilter) Filter

func (f *AnnotationsFilter) Filter() []annotation

Jump to

Keyboard shortcuts

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