hazel

package module
v0.0.0-...-48a69c0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2015 License: MIT Imports: 13 Imported by: 0

README

tcpx

A simple tcp framework

Dependence

github.com/nu7hatch/gouuid

Example

You can find a example at tcpx_example.

Documentation

Index

Constants

View Source
const (
	DEFAULT_SERVER_NAME = "default"
	LOG_DEFAULT_FILE    = "hazel.log"
)

Variables

This section is empty.

Functions

func MainDaemon

func MainDaemon(config *Config, services ...*service.Service)

func SendMessage

func SendMessage(msg *message.Message)

Types

type Config

type Config struct {
	ServerName string
	Host       string
	Port       string
	LogFile    string
	Db         pgx.ConnConfig
	Redis      db.RedisConfig
}

func LoadConfig

func LoadConfig() (config *Config)

Directories

Path Synopsis
tcpx

Jump to

Keyboard shortcuts

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