server

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(ca string, cert string, key string)

Serve starts the gromit server

Types

type App

type App struct {
	Router *mux.Router

	Env *EnvConfig

	ECR ecriface.ClientAPI
	DB  dynamodbiface.ClientAPI
	R53 route53iface.ClientAPI
	// contains filtered or unexported fields
}

App holds the API clients for the gromit server

func (*App) Init

func (a *App) Init(ca string)

Init loads env vars, AWS, TLS config Keep this separate from App.Run() for testing purposes

func (*App) Run

func (a *App) Run(addr string, cert string, key string)

Run will start GromitServer

type EnvConfig

type EnvConfig struct {
	Repos      []string
	TableName  string
	RegistryID string
	ZoneID     string
	Domain     string
}

EnvConfig loaded by kelseyhightower/envconfig

Jump to

Keyboard shortcuts

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