Documentation ¶
Index ¶
- Constants
- type Backend
- type Elastic2
- func (e *Elastic2) DeleteAnnotation(id string) error
- func (e *Elastic2) GetAnnotation(id string) (*annotate.Annotation, bool, error)
- func (e *Elastic2) GetAnnotations(start, end *time.Time, fieldFilters ...FieldFilter) (annotate.Annotations, error)
- func (e *Elastic2) GetFieldValues(field string) ([]string, error)
- func (e *Elastic2) InitBackend() error
- func (e *Elastic2) InsertAnnotation(a *annotate.Annotation) error
- type Elastic5
- func (e *Elastic5) DeleteAnnotation(id string) error
- func (e *Elastic5) GetAnnotation(id string) (*annotate.Annotation, bool, error)
- func (e *Elastic5) GetAnnotations(start, end *time.Time, fieldFilters ...FieldFilter) (annotate.Annotations, error)
- func (e *Elastic5) GetFieldValues(field string) ([]string, error)
- func (e *Elastic5) InitBackend() error
- func (e *Elastic5) InsertAnnotation(a *annotate.Annotation) error
- type Elastic6
- func (e *Elastic6) DeleteAnnotation(id string) error
- func (e *Elastic6) GetAnnotation(id string) (*annotate.Annotation, bool, error)
- func (e *Elastic6) GetAnnotations(start, end *time.Time, fieldFilters ...FieldFilter) (annotate.Annotations, error)
- func (e *Elastic6) GetFieldValues(field string) ([]string, error)
- func (e *Elastic6) InitBackend() error
- func (e *Elastic6) InsertAnnotation(a *annotate.Annotation) error
- type FieldFilter
Constants ¶
View Source
const Empty = "Empty"
View Source
const Is = "Is"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
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 }
type Elastic2 ¶
func NewElastic2 ¶
func (*Elastic2) DeleteAnnotation ¶
func (*Elastic2) GetAnnotation ¶
func (*Elastic2) GetAnnotations ¶
func (e *Elastic2) GetAnnotations(start, end *time.Time, fieldFilters ...FieldFilter) (annotate.Annotations, error)
func (*Elastic2) InitBackend ¶
func (*Elastic2) InsertAnnotation ¶
func (e *Elastic2) InsertAnnotation(a *annotate.Annotation) error
type Elastic5 ¶
func NewElastic5 ¶
func (*Elastic5) DeleteAnnotation ¶
func (*Elastic5) GetAnnotation ¶
func (*Elastic5) GetAnnotations ¶
func (e *Elastic5) GetAnnotations(start, end *time.Time, fieldFilters ...FieldFilter) (annotate.Annotations, error)
func (*Elastic5) InitBackend ¶
func (*Elastic5) InsertAnnotation ¶
func (e *Elastic5) InsertAnnotation(a *annotate.Annotation) error
type Elastic6 ¶
func NewElastic6 ¶
func (*Elastic6) DeleteAnnotation ¶
func (*Elastic6) GetAnnotation ¶
func (*Elastic6) GetAnnotations ¶
func (e *Elastic6) GetAnnotations(start, end *time.Time, fieldFilters ...FieldFilter) (annotate.Annotations, error)
func (*Elastic6) InitBackend ¶
func (*Elastic6) InsertAnnotation ¶
func (e *Elastic6) InsertAnnotation(a *annotate.Annotation) error
Click to show internal directories.
Click to hide internal directories.