server

package
v0.0.0-...-9da61a2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port           int
	RequestTimeout time.Duration
}

Config consists of all server configuration settings

type Server

type Server struct {
	Config       Config
	Storage      storage.Storage
	Router       *mux.Router
	JobContainer job.Container
}

Server represents the application's server

func New

func New(cfg Config, storage storage.Storage, client *github.Client, slackConfig job.SlackConfig) *Server

New creates a new Server instance

func (*Server) Run

func (s *Server) Run() error

Run runs the application server

Jump to

Keyboard shortcuts

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