pg

package module
v0.0.0-...-7a063d5 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 25 Imported by: 1

README

PostgreSQL storage for GoActivitypub

builds.sr.ht status Coveralls GitHub License

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bootstrap

func Bootstrap(conf Config) error

func Clean

func Clean(conf Config) error

func New

func New(c Config) (*repo, error)

Types

type Config

type Config struct {
	Host     string // host (e.g. localhost) or absolute path to unix domain socket directory (e.g. /private/tmp)
	Port     uint16
	Database string
	User     string
	Password string

	LogFn func(string, ...any)
	ErrFn func(string, ...any)
}

func ParseConfig

func ParseConfig(connStr string) (Config, error)

func (Config) DSN

func (c Config) DSN() string

type Metadata

type Metadata struct {
	Pw         []byte
	PrivateKey []byte
}

Jump to

Keyboard shortcuts

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