pg

package
v0.0.0-...-0490640 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProjectsListFromContext

func ProjectsListFromContext(ctx context.Context) ([]string, error)

ProjectsListFromContext returns the project list from the context. In the case that the project list was ["*"], we return an empty list, since we do not wish to filter on projects.

Types

type Config

type Config struct {
	PGURL          string `json:"pg_url"`
	Database       string `json:"database"`
	MaxConnections int    `json:"max_connections"`
}

Config is the configuration this adapter takes

func (*Config) Open

func (c *Config) Open(_ *certs.ServiceCerts, logger *zap.Logger) (tokens.Storage, error)

Open returns a storage adapter based on the config.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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