storage

package
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConditionKeyStore

func NewConditionKeyStore(js nats.JetStreamContext) nats.KeyValue

func NewDefaultAlertingBroker added in v0.11.0

func NewDefaultAlertingBroker(js nats.JetStreamContext, opts ...storage_opts.ClientSetOption) spec.AlertingStoreBroker

func NewEndpointKeyStore

func NewEndpointKeyStore(js nats.JetStreamContext) nats.KeyValue

func NewIncidentKeyStore

func NewIncidentKeyStore(js nats.JetStreamContext) nats.KeyValue

func NewRouterObjectStore

func NewRouterObjectStore(js nats.JetStreamContext) nats.ObjectStore

func NewStatusCache

func NewStatusCache(js nats.JetStreamContext) nats.KeyValue

Types

type CompositeAlertingBroker

type CompositeAlertingBroker struct {
	opts.ClientSetOptions
	*CompositeAlertingClientSet
}

func NewCompositeAlertingBroker

func NewCompositeAlertingBroker(options opts.ClientSetOptions) *CompositeAlertingBroker

func (*CompositeAlertingBroker) NewClientSet

func (*CompositeAlertingBroker) Use

func (c *CompositeAlertingBroker) Use(store any)

type CompositeAlertingClientSet

type CompositeAlertingClientSet struct {
	Logger *zap.SugaredLogger
	// contains filtered or unexported fields
}

func (*CompositeAlertingClientSet) CalculateHash

func (c *CompositeAlertingClientSet) CalculateHash(ctx context.Context, key string, syncOptions *storage_opts.SyncOptions) error

func (CompositeAlertingClientSet) Conditions

func (CompositeAlertingClientSet) Endpoints

func (*CompositeAlertingClientSet) ForceSync

func (c *CompositeAlertingClientSet) ForceSync(ctx context.Context, incomingOpts ...storage_opts.SyncOption) error

Based on the other storage, calculate what the virtual config should be, then overwrite the virtual config storage

func (*CompositeAlertingClientSet) GetHash

func (c *CompositeAlertingClientSet) GetHash(ctx context.Context, key string) (string, error)

func (CompositeAlertingClientSet) Incidents

func (*CompositeAlertingClientSet) Purge

func (CompositeAlertingClientSet) Routers

func (CompositeAlertingClientSet) States

func (*CompositeAlertingClientSet) Sync

func (c *CompositeAlertingClientSet) Sync(ctx context.Context, incomingOpts ...storage_opts.SyncOption) ([]string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL