pg

package module
v0.0.0-...-71ef87b Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 26 Imported by: 1

README

PostgreSQL storage for GoActivitypub

builds.sr.ht status Coveralls GitHub License

Expanded documentation

For more information about how the module works in the scope of the GoActivityPub library, see the expanded documentation.

For discussions about the projects you can write to the discussions mailing list: ~mariusor/go-activitypub-discuss@lists.sr.ht

For patches and bug reports please use the dev mailing list: ~mariusor/go-activitypub-dev@lists.sr.ht

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
⌂ 换网址