facotory

package
v0.0.0-...-a7e6680 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//CertFile environment variable for CertFile
	CertFile = os.Getenv("CERT_FILE")
	//KeyFile environment variable for KeyFile
	KeyFile = os.Getenv("KEY_FILE")
)

Functions

func NewForProduction

func NewForProduction(logger *log.Logger, mainThreadWG *sync.WaitGroup) (*state.ServerState, error)

func NewForStaging

func NewForStaging(logger *log.Logger, mainThreadWG *sync.WaitGroup) (*state.ServerState, error)

func NewForTesting

func NewForTesting(t *testing.T, callbacks *state.MockCallbacks) *state.ServerState

Types

This section is empty.

Jump to

Keyboard shortcuts

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