freeserver

package
v0.0.0-...-50a6135 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2015 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTigerTonicLogger

func NewTigerTonicLogger(log logging.Logger) tigertonic.Logger

Types

type Initer

type Initer interface {
	Init(mux *tigertonic.TrieServeMux) *tigertonic.TrieServeMux
}

Initer is for initializing the api endpoints for a module

type LoggerHolder

type LoggerHolder interface {
	Logger() logging.Logger
}

type Server

type Server struct {
	Mux    *tigertonic.TrieServeMux
	Port   int
	Server *tigertonic.Server
	// App handles all the required information about the application
	// eg. database connections, singletons etc
	App interface{}

	// DebugEnabled holds the status of the server's debug level
	DebugEnabled bool
}

func New

func New(app interface{}) *Server

func (*Server) Close

func (s *Server) Close() error

func (*Server) InitWith

func (s *Server) InitWith(initers ...Initer) *Server

func (*Server) Listen

func (s *Server) Listen() error

type TigerTonicLogger

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

func (*TigerTonicLogger) Output

func (t *TigerTonicLogger) Output(calldepth int, s string) error

func (*TigerTonicLogger) Print

func (t *TigerTonicLogger) Print(v ...interface{})

func (*TigerTonicLogger) Printf

func (t *TigerTonicLogger) Printf(format string, v ...interface{})

func (*TigerTonicLogger) Println

func (t *TigerTonicLogger) Println(v ...interface{})

Jump to

Keyboard shortcuts

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