web

package
v0.0.0-...-967dab9 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(s *Server) error

func MustRegister

func MustRegister(m ModuleFactory)

func Register

func Register(m ModuleFactory) error

Types

type Module

type Module interface {
	Configure(s *Server) error
}

type ModuleFactory

type ModuleFactory func(injector inject.Injector) (Module, error)

type Server

type Server struct {
	*martini.ClassicMartini
	// contains filtered or unexported fields
}

func NewServer

func NewServer(injector inject.Injector, conf *config.Configuration, l *log.Logger) *Server

func (*Server) Configure

func (s *Server) Configure()

func (*Server) ListenAndServe

func (s *Server) ListenAndServe()

func (*Server) StopListenAndServe

func (s *Server) StopListenAndServe() error

func (*Server) StopListenAndServeTLS

func (s *Server) StopListenAndServeTLS() error

type StickHandler

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

func (*StickHandler) HTML

func (h *StickHandler) HTML(status int, name string, ctx map[string]stick.Value)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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