postgres

package
v0.0.0-...-33942d2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: AGPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TokenRefreshWindow   = 2 * time.Minute
	DefaultTokenLifeTime = 15 * time.Minute
	RefreshRetryPeriod   = 10 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSCredentials

type AWSCredentials struct {
	Profile string `json:"profile"`
	Region  string `json:"region"`
}

type AWSDatesourceSettings

type AWSDatesourceSettings struct {
	AuthType    string `json:"authType"`
	Profile     string `json:"profile"`
	Region      string `json:"region"`
	AssumeRole  string `json:"assumeRole"`
	RoleARN     string `json:"roleArn"`
	ExternalID  string `json:"externalId"`
	SessionName string `json:"sessionName"`
}

type PgxDialFunc

type PgxDialFunc = func(ctx context.Context, network string, address string) (net.Conn, error)

type Service

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

func ProvideService

func ProvideService(cfg *setting.Cfg, features featuremgmt.FeatureToggles) *Service

func (*Service) CheckHealth

CheckHealth pings the connected SQL database

func (*Service) QueryData

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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