Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// MAPPING is the elastic mapping for a log filter
MAPPING, _ = elastic.NewMapping(mappingString)
)
Functions ¶
Types ¶
type LogFilter ¶
type LogFilter struct { Name string // Name of the filter Version string // Version of the parent service Filter string // the filter string datastore.VersionedEntity }
LogFilter is the definition of a log filter
func (*LogFilter) GetType ¶
GetType returns the LogFilter instance's type It returns the type as a string
func (*LogFilter) ValidEntity ¶
ValidEntity validates LogFilter fields
type Store ¶
type Store interface { // Get a LogFilter by name and version. Return ErrNoSuchEntity if not found Get(ctx datastore.Context, name, version string) (*LogFilter, error) // Put adds or updates a LogFilter Put(ctx datastore.Context, lf *LogFilter) error // Delete removes the a LogFilter if it exists Delete(ctx datastore.Context, name, version string) error // GetLogFilters returns all LogFilters GetLogFilters(ctx datastore.Context) ([]*LogFilter, error) }
Store is the database for the LogFilters
Click to show internal directories.
Click to hide internal directories.