core

package
v0.0.0-...-d5063c0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2015 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HOOK_BEFORE_START int = iota
	HOOK_AFTER_STOP
	HOOK_MAX
)
View Source
const (
	ObjId_RootId int = iota
	ObjId_CoreId
	ObjId_ExecutorId
	ObjId_TimerId
	ObjId_ProfileId
)

Variables

View Source
var Config = Configuration{}

Functions

func ClosePackages

func ClosePackages()

func CoreObject

func CoreObject() *basic.Object

func ExecuteHook

func ExecuteHook(hookpos int) error

func LaunchChild

func LaunchChild(o *basic.Object)

func LoadPackages

func LoadPackages(configFile string)

func RegisteHook

func RegisteHook(hookpos int, f hookfunc)

func RegistePackage

func RegistePackage(p Package)

func Terminate

func Terminate(o *basic.Object)

func WritePid

func WritePid()

Types

type Configuration

type Configuration struct {
	MaxProcs int
}

func (*Configuration) Close

func (c *Configuration) Close() error

func (*Configuration) Init

func (c *Configuration) Init() error

func (*Configuration) Name

func (c *Configuration) Name() string

type Ctx

type Ctx struct {
	*basic.Object
}
var (
	AppCtx *Ctx = newCtx()
)

type Package

type Package interface {
	Name() string
	Init() error
	io.Closer
}

Directories

Path Synopsis
builtin
filter
sessionfiltertrace
sessionfiltertrace
queue
queue queue
queue queue
recycler
recycler
recycler
config protocol binary Gbp Gob nil encoding error handler session acceptor connector session connector
config protocol binary Gbp Gob nil encoding error handler session acceptor connector session connector
signal
signal
config transcommskeleton distributed transcation coordinater transctx transhandler transnode transtype
config transcommskeleton distributed transcation coordinater transctx transhandler transnode transtype
AtomicIdGen most reference from github.com/realint/dbgutil idgen
AtomicIdGen most reference from github.com/realint/dbgutil idgen

Jump to

Keyboard shortcuts

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