import "bosun.org/annotate/backend"
backend.go elastic2.go elastic5.go elastic6.go elastic7.go
const Empty = "Empty"
const Is = "Is"
type Backend interface { InsertAnnotation(a *annotate.Annotation) error GetAnnotation(id string) (*annotate.Annotation, bool, error) GetAnnotations(start, end *time.Time, filters ...FieldFilter) (annotate.Annotations, error) DeleteAnnotation(id string) error GetFieldValues(field string) ([]string, error) InitBackend() error }
func NewElastic2(urls []string, simpleclient bool, index string, clientoptions []elastic.ClientOptionFunc) *Elastic2
func (e *Elastic2) GetAnnotations(start, end *time.Time, fieldFilters ...FieldFilter) (annotate.Annotations, error)
func (e *Elastic2) InsertAnnotation(a *annotate.Annotation) error
func NewElastic5(urls []string, simpleclient bool, index string, clientoptions []elastic.ClientOptionFunc) *Elastic5
func (e *Elastic5) GetAnnotations(start, end *time.Time, fieldFilters ...FieldFilter) (annotate.Annotations, error)
func (e *Elastic5) InsertAnnotation(a *annotate.Annotation) error
func NewElastic6(urls []string, simpleclient bool, index string, clientoptions []elastic.ClientOptionFunc) *Elastic6
func (e *Elastic6) GetAnnotations(start, end *time.Time, fieldFilters ...FieldFilter) (annotate.Annotations, error)
func (e *Elastic6) InsertAnnotation(a *annotate.Annotation) error
func NewElastic7(urls []string, simpleclient bool, index string, clientoptions []elastic.ClientOptionFunc) *Elastic7
func (e *Elastic7) GetAnnotations(start, end *time.Time, fieldFilters ...FieldFilter) (annotate.Annotations, error)
func (e *Elastic7) InsertAnnotation(a *annotate.Annotation) error
Package backend imports 12 packages (graph) and is imported by 7 packages. Updated 2020-08-07. Refresh now. Tools for package owners.