http

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleGetAllEvents

func HandleGetAllEvents(pool *pgxpool.Pool) mux.ErrHandlerFunc

func NewServer

func NewServer(cfg Config) (*http.Server, error)

Types

type Config

type Config struct {
	Port           int
	AllowedOrigins []string
	Pool           *pgxpool.Pool
}

Jump to

Keyboard shortcuts

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