database

package
v0.0.0-...-369b881 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	Pool *pgxpool.Pool
}

func NewStorage

func NewStorage(config StorageConfig) (*Storage, error)

func (*Storage) Shutdown

func (s *Storage) Shutdown() error

type StorageConfig

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

func NewStorageConfig

func NewStorageConfig() (*StorageConfig, error)

func (StorageConfig) FormatDSN

func (c StorageConfig) FormatDSN() string

func (StorageConfig) FormatDSNConn

func (c StorageConfig) FormatDSNConn() string

func (StorageConfig) GetDatabase

func (c StorageConfig) GetDatabase() string

func (StorageConfig) GetHost

func (c StorageConfig) GetHost() string

func (StorageConfig) GetPort

func (c StorageConfig) GetPort() string

func (StorageConfig) GetUsername

func (c StorageConfig) GetUsername() string

Jump to

Keyboard shortcuts

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