config

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorStatus

func ErrorStatus(message string, httpStatusCode int, w http.ResponseWriter, err error)

ErrorStatus is a useful function that will log, write http headers and body for a give message, status code and err

Types

type Config

type Config struct {
	URL          string
	DatabaseName string
	BaseURL      string
	Port         string
}

Config holds the project config values

func New

func New() *Config

New sets up all config related services

Jump to

Keyboard shortcuts

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