servermain

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Main

type Main struct {
	Config     *models.Config
	Store      *store.Store
	HTTPServer *webserver.Webserver
	TLSServer  *webserver.Webserver
	CA         *ca.CA
}

Main contains deps used by server that will be exposed so we can write good end to end tests.

func New

func New(config *models.Config) *Main

New creates a new main.

func (*Main) Init

func (m *Main) Init()

Init initializes the web handlers. Could be used to start server or to test it.

func (*Main) Run

func (c *Main) Run()

func (*Main) TLSConfig

func (m *Main) TLSConfig() *tls.Config

Jump to

Keyboard shortcuts

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