bootstrapserver

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Error = errs.Class("bootstrap web error")

Error is bootstrap web error type

Functions

This section is empty.

Types

type Config

type Config struct {
	Address   string `help:"server address of the graphql api gateway and frontend app" default:"127.0.0.1:8082"`
	StaticDir string `help:"path to static resources" default:""`
}

Config contains configuration for bootstrap web server

type Server

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

Server represents bootstrap web server

func NewServer

func NewServer(logger *zap.Logger, config Config, service *bootstrapweb.Service, listener net.Listener) *Server

NewServer creates new instance of bootstrap web server

func (*Server) Close

func (s *Server) Close() error

Close closes server and underlying listener

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

Run starts the server that host webapp and api endpoint

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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