postgres

package
v1.11.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ErrorMissingTableName        = "missing postgreSQL configuration table name"
	ErrorMissingTable            = "postgreSQL configuration table - '%s' does not exist"
	InfoStartInit                = "initializing postgreSQL configuration store"
	ErrorMissingConnectionString = "missing postgreSQL connection string"
	ErrorAlreadyInitialized      = "postgreSQL configuration store already initialized"
	ErrorMissingMaxTimeout       = "missing PostgreSQL maxTimeout setting in configuration"
	QueryTableExists             = "SELECT EXISTS (SELECT FROM pg_tables where tablename = $1)"
	ErrorTooLongFieldLength      = "field name is too long"
)

Variables

This section is empty.

Functions

func Connect

func Connect(ctx context.Context, conn string, maxTimeout time.Duration) (*pgxpool.Pool, error)

func NewPostgresConfigurationStore

func NewPostgresConfigurationStore(logger logger.Logger) configuration.Store

Types

type ConfigurationStore

type ConfigurationStore struct {
	ActiveSubscriptions map[string]*subscription
	// contains filtered or unexported fields
}

func (*ConfigurationStore) Get

func (*ConfigurationStore) Init

func (p *ConfigurationStore) Init(metadata configuration.Metadata) error

func (*ConfigurationStore) Subscribe

func (*ConfigurationStore) Unsubscribe

Jump to

Keyboard shortcuts

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