app

package module
v0.0.0-...-fd6f602 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2020 License: MIT Imports: 9 Imported by: 0

README

App

A minimal golang application boilerplate.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func New

func New(options ...Option) *App

func (*App) Start

func (a *App) Start() error

type Option

type Option func(*App)

func WithAutoCert

func WithAutoCert() Option

func WithHost

func WithHost(ip string) Option

func WithPort

func WithPort(port int) Option

func WithServer

func WithServer(b Server) Option

func WithStopChan

func WithStopChan(stopChan chan os.Signal) Option

type Server

type Server interface {
	GracefulStop()
	Serve(net.Listener) error
}

type TLSProvider

type TLSProvider interface {
	TLSConfig() (*tls.Config, error)
}

Jump to

Keyboard shortcuts

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