Documentation
¶
Index ¶
- type KapacitorStore
- func (store *KapacitorStore) Add(ctx context.Context, kap cmp.Server) (cmp.Server, error)
- func (store *KapacitorStore) All(ctx context.Context) ([]cmp.Server, error)
- func (store *KapacitorStore) Delete(ctx context.Context, kap cmp.Server) error
- func (store *KapacitorStore) Get(ctx context.Context, id int) (cmp.Server, error)
- func (store *KapacitorStore) Update(ctx context.Context, kap cmp.Server) error
- type SourcesStore
- func (store *SourcesStore) Add(ctx context.Context, src cmp.Source) (cmp.Source, error)
- func (store *SourcesStore) All(ctx context.Context) ([]cmp.Source, error)
- func (store *SourcesStore) Delete(ctx context.Context, src cmp.Source) error
- func (store *SourcesStore) Get(ctx context.Context, id int) (cmp.Source, error)
- func (store *SourcesStore) Update(ctx context.Context, src cmp.Source) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KapacitorStore ¶
KapacitorStore implements the cmp.ServersStore interface, and keeps an in-memory Kapacitor according to startup configuration
func (*KapacitorStore) Delete ¶
Delete removes the in-memory configured Kapacitor if its ID matches what's provided
type SourcesStore ¶
SourcesStore implements the cmp.SourcesStore interface
func (*SourcesStore) Delete ¶
Delete removes the SourcesStore.Soruce if it matches the provided Source
Click to show internal directories.
Click to hide internal directories.