Documentation ¶
Index ¶
- func Migrate(file string) error
- type Option
- type Storage
- func (s *Storage) DeleteLoader(ID string) error
- func (s *Storage) DeleteLoaderTag(loaderUUID string, tags []*model.LoaderTag) (err error)
- func (s *Storage) DeleteTemplate(name string) error
- func (s *Storage) GetLoaderByDescription(description string) ([]*model.Loader, error)
- func (s *Storage) GetLoaderByID(loaderUUID string) (*model.Loader, error)
- func (s *Storage) GetLoaderByName(name string) ([]*model.Loader, error)
- func (s *Storage) GetLoaderByTags(tags []*model.LoaderTag) ([]*model.Loader, error)
- func (s *Storage) GetLoaderTags(loaderUUID string) ([]*model.LoaderTag, error)
- func (s *Storage) GetLoaderTagsByKey(key string) (map[string]*model.LoaderTag, error)
- func (s *Storage) GetLoaders(limit int) ([]*model.Loader, error)
- func (s *Storage) GetLoadersByRange(from, to int64, limit int) ([]*model.Loader, error)
- func (s *Storage) GetSummaries(loaderConfUUID string, opts ...Option) ([]*model.Summary, error)
- func (s *Storage) GetTemplateByName(name string) (*model.Template, error)
- func (s *Storage) GetTemplates(limit int) ([]*model.Template, error)
- func (s *Storage) InsertLoaderConfiguration(loaderConfiguration *model.Loader) (uuid string, err error)
- func (s *Storage) InsertLoaderConfigurationTags(loaderConfUUID string, loaderConfigurationTags []*model.LoaderTag) (err error)
- func (s *Storage) InsertSummary(optsUUID string, summary *model.Summary, saveRequests, saveAggRequests bool) (uuid string, err error)
- func (s *Storage) InsertTemplate(name, content string) error
- func (s *Storage) UpdateLoaderTag(loaderUUID string, key, value string) error
- func (s *Storage) UpdateTemplate(name, content string) error
- type StorageError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func (*Storage) DeleteLoader ¶
func (*Storage) DeleteLoaderTag ¶
func (*Storage) DeleteTemplate ¶ added in v1.2.0
func (*Storage) GetLoaderByDescription ¶
func (*Storage) GetLoaderByID ¶
func (*Storage) GetLoaderByName ¶
func (*Storage) GetLoaderByTags ¶
func (*Storage) GetLoaderTags ¶
func (*Storage) GetLoaderTagsByKey ¶
func (*Storage) GetLoadersByRange ¶
func (*Storage) GetSummaries ¶
func (*Storage) GetTemplateByName ¶ added in v1.2.0
func (*Storage) GetTemplates ¶ added in v1.2.0
func (*Storage) InsertLoaderConfiguration ¶
func (s *Storage) InsertLoaderConfiguration(loaderConfiguration *model.Loader) (uuid string, err error)
InsertLoaderConfiguration method is saving Loader structure in the database It will create parameters and headers in separate tables
func (*Storage) InsertLoaderConfigurationTags ¶
func (*Storage) InsertSummary ¶
func (*Storage) InsertTemplate ¶ added in v1.2.0
func (*Storage) UpdateLoaderTag ¶ added in v1.3.0
func (*Storage) UpdateTemplate ¶ added in v1.2.0
type StorageError ¶
func (StorageError) Error ¶
func (s StorageError) Error() string
Click to show internal directories.
Click to hide internal directories.