server

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Router *mux.Router

	ECR        ecriface.ClientAPI
	DB         dynamodbiface.ClientAPI
	R53        route53iface.ClientAPI
	Repos      []string
	TableName  string
	RegistryID string
	// contains filtered or unexported fields
}

App holds the API clients for the gromit server

func StartTestServer added in v1.4.5

func StartTestServer(confFile string) (*httptest.Server, *App)

StartTestServer starts an HttpTest server that is suitable for testing

func (*App) Init

func (a *App) Init(ca []byte, cert []byte, key []byte) error

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) error

func (*App) Test added in v1.3.13

func (a *App) Test() *httptest.Server

Test returns a local server suitable for testing, remember to close it

Jump to

Keyboard shortcuts

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