jsonnetplayground

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// HTTPPort is the port for this application to listen on
	HTTPPort int `env:"HTTP_PORT" envDefault:"8000"`

	// HTTPAddress is the address for this application to listen on, minus the port
	// use HTTPPort for that instead.
	HTTPAddress string `env:"HTTP_ADDRESS" envDefault:"0.0.0.0"`

	// DatabaseURL is the URL to connect to for the database
	DatabaseURL string `env:"DATABASE_URL"`
}

func LoadConfig

func LoadConfig() (*Config, error)

LoadConfig reads the configuration from env variables and returns it

type PublicHTTPService

type PublicHTTPService struct {
	// contains filtered or unexported fields
}

PublicHTTPService handles public http service calls

func NewPublicHTTPService

func NewPublicHTTPService(conf *Config) *PublicHTTPService

NewPublicHTTPService creates a new public http service

func (*PublicHTTPService) Run

Jump to

Keyboard shortcuts

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