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