server

package
Version: v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package server contains the core seer server and API implementation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server contains Seer's core application logic

func New

func New(
	l *zap.Logger,
	riotAPI riot.API,
	backend store.Store,
	jobsQueue jobs.Queue,
	meta config.BuildMeta,
) (*Server, error)

New instantiates a new server

func (*Server) Start

func (s *Server) Start(addr string, stop chan bool) error

Start spins up the API server

func (*Server) Stop

func (s *Server) Stop(ctx context.Context)

Stop shuts down this server and its associated resources

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto