starter

package
v0.0.46 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package starter provides server startup and shutdown flow control

Package starter provides server startup and shutdown flow control

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*srvs)

func WithConfig

func WithConfig(cfg *config.Servers) Option

func WithGQL

func WithGQL(opts func(cfg *config.Server) []server.Option) Option

func WithGRPC

func WithGRPC(opts func(cfg *config.Server) []server.Option) Option

func WithPreStartFunc

func WithPreStartFunc(name string, f func() error) Option

func WithPreStopFunc

func WithPreStopFunc(name string, f func() error) Option

func WithREST

func WithREST(opts func(cfg *config.Server) []server.Option) Option

type Server

type Server servers.Listener

func New

func New(sopts ...Option) (Server, error)

Jump to

Keyboard shortcuts

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