storage

package
v0.0.0-...-65e1305 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPool

func NewPool(ctx context.Context, cfg Config) (*pgxpool.Pool, error)

Types

type Config

type Config struct {
	DatabaseURL *url.URL
}

type Event

type Event struct {
	Title       string
	Start       time.Time
	End         time.Time
	Description string
	URL         string
	Email       string
}

func GetAll

func GetAll(pool *pgxpool.Pool) ([]Event, error)

Jump to

Keyboard shortcuts

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