focust

package module
v0.0.0-...-1f38375 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2014 License: Apache-2.0 Imports: 8 Imported by: 0

README

focust

Websocket framework.

Documentation

Index

Constants

View Source
const (
	Trace = iota
	Debug
	Info
	Warning
	Error
	Critical
)

Log levels to control the logging output.

View Source
const VERSION = "0.0.1"

Variables

View Source
var (
	AppName       string
	AppPath       string
	AppConfigPath string
	WsPort        int
	LogLevel      int
	AppId         int
)
View Source
var Logger *logs.BeeLogger

logger references the used application logger.

Functions

func C

func C(v ...interface{})

Critical logs a message at critical level.

func D

func D(v ...interface{})

Debug logs a message at debug level.

func E

func E(v ...interface{})

Error logs a message at error level.

func I

func I(v ...interface{})

Info logs a message at info level.

func Log

func Log(level int, format string, v ...interface{})

Used for unify log format

func ParseConfig

func ParseConfig() error

Read config file and init

func Run

func Run()

func Serve

func Serve(path string, handler func(*websocket.Conn))

func ServeHTTP

func ServeHTTP(path string, handler func(http.ResponseWriter, *http.Request))

func SetLevel

func SetLevel(l int)

SetLogLevel sets the global log level used by the simple logger.

func T

func T(v ...interface{})

Trace logs a message at trace level.

func W

func W(v ...interface{})

Warning logs a message at warning level.

Types

This section is empty.

Jump to

Keyboard shortcuts

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