web

package
v0.0.73 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: AGPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONHandler

type JSONHandler func(ctx context.Context, r *http.Request) (interface{}, int, error)

type Server

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

func NewServer

func NewServer(ctx context.Context, db *sqlx.DB, rp *redis.Pool, config *config.Config, wg *sync.WaitGroup) *Server

NewServer creates a new web server, it will need to be started after being created

func (*Server) Start

func (s *Server) Start()

Start starts our web server, listening for new requests

func (*Server) Stop

func (s *Server) Stop()

Stop stops our web server

Jump to

Keyboard shortcuts

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