Help us shape the future of Go! Take the 2026 Go Developer Survey

configdb

package
v1.21.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "configdb"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store is a concrete implementation of RuleStore that sources rules from the config service

func NewStore

func NewStore(c client.Client) *Store

NewStore constructs a Store

func (*Store) DeleteAlertConfig

func (c *Store) DeleteAlertConfig(ctx context.Context, user string) error

DeleteAlertConfig implements alertstore.AlertStore.

func (*Store) DeleteFullState added in v1.9.0

func (c *Store) DeleteFullState(ctx context.Context, user string) error

DeleteFullState implements alertstore.AlertStore.

func (*Store) GetAlertConfig

func (c *Store) GetAlertConfig(ctx context.Context, user string) (alertspb.AlertConfigDesc, error)

GetAlertConfig implements alertstore.AlertStore.

func (*Store) GetAlertConfigs

func (c *Store) GetAlertConfigs(ctx context.Context, userIDs []string) (map[string]alertspb.AlertConfigDesc, error)

GetAlertConfigs implements alertstore.AlertStore.

func (*Store) GetFullState added in v1.9.0

func (c *Store) GetFullState(ctx context.Context, user string) (alertspb.FullStateDesc, error)

GetFullState implements alertstore.AlertStore.

func (*Store) GetUserIndexUpdater added in v1.21.0

func (c *Store) GetUserIndexUpdater() *users.UserIndexUpdater

GetUserIndexUpdater implements alertstore.AlertStore.

func (*Store) ListAllUsers

func (c *Store) ListAllUsers(ctx context.Context) ([]string, error)

ListAllUsers implements alertstore.AlertStore.

func (*Store) ListUsersWithFullState added in v1.10.0

func (c *Store) ListUsersWithFullState(ctx context.Context) ([]string, error)

ListUsersWithFullState implements alertstore.AlertStore.

func (*Store) SetAlertConfig

func (c *Store) SetAlertConfig(ctx context.Context, cfg alertspb.AlertConfigDesc) error

SetAlertConfig implements alertstore.AlertStore.

func (*Store) SetFullState added in v1.9.0

func (c *Store) SetFullState(ctx context.Context, user string, cfg alertspb.FullStateDesc) error

SetFullState implements alertstore.AlertStore.

Jump to

Keyboard shortcuts

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