Help us shape the future of Go! Take the 2026 Go Developer Survey

server

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunServer

func RunServer(
	ctx context.Context,
	c Config,
	logger log.Logger,
	nr *newrelic.Application,
	apiDeps *api.Deps) error

RunServer runs the application server

Types

type Config

type Config struct {
	Host          string            `mapstructure:"host" yaml:"host" default:"localhost"`
	Port          int               `mapstructure:"port" yaml:"port" default:"8080"`
	EncryptionKey string            `mapstructure:"encryption_key" yaml:"encryption_key" default:"_ENCRYPTIONKEY_OF_32_CHARACTERS_"`
	APIHeaders    api.HeadersConfig `mapstructure:"api_headers" yaml:"api_headers"`
}

Jump to

Keyboard shortcuts

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