Documentation ¶
Index ¶
- Variables
- func BuildInfoHandler(w http.ResponseWriter, req *http.Request)
- func Checker() (string, error)
- func GetAnnotations(w http.ResponseWriter, r *http.Request)
- func GetFilteredAnnotations(w http.ResponseWriter, r *http.Request)
- func GoodToGo(writer http.ResponseWriter, req *http.Request)
- func HealthCheck() v1a.Check
- func MethodNotAllowedHandler(w http.ResponseWriter, r *http.Request)
- func NewCypherDriver(conn neoutils.NeoConnection, env string) cypherDriver
- func Ping(w http.ResponseWriter, r *http.Request)
- type AnnotationsFilter
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 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 MethodNotAllowedHandler ¶
func MethodNotAllowedHandler(w http.ResponseWriter, r *http.Request)
methodNotAllowedHandler handles 405
func NewCypherDriver ¶
func NewCypherDriver(conn neoutils.NeoConnection, env string) cypherDriver
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
Click to show internal directories.
Click to hide internal directories.