Documentation ¶
Overview ¶
The app package provides the application level feature for oryx, for example, the server object and some stream control service.
Index ¶
- Variables
- type Heartbeat
- type IfaceType
- type NetworkIface
- type Server
- func (v *Server) Close()
- func (v *Server) GFork(name string, f func(core.WorkerContainer))
- func (v *Server) Initialize() (err error)
- func (v *Server) OnReloadGlobal(scope int, cc, pc *core.Config) (err error)
- func (v *Server) OnReloadVhost(vhost string, scope int, cc, pc *core.Config) (err error)
- func (v *Server) ParseConfig(conf string) (err error)
- func (v *Server) PrepareLogger() (err error)
- func (v *Server) QC() <-chan bool
- func (v *Server) Quit() error
- func (v *Server) Run() (err error)
- type ServerState
- type Summary
Constants ¶
This section is empty.
Variables ¶
View Source
var SIGUSR1 = syscall.SIGUSR1
View Source
var SIGUSR2 = syscall.SIGUSR2
Functions ¶
This section is empty.
Types ¶
type Heartbeat ¶
type Heartbeat struct {
// contains filtered or unexported fields
}
func NewHeartbeat ¶
func (*Heartbeat) Initialize ¶
func (v *Heartbeat) Initialize(w core.WorkerContainer) (err error)
type NetworkIface ¶
type NetworkIface struct { // interface name. Ifname string // the ip address of interface. Ip string // the mac address of interface. Mac string // whether the interface ip is public. Internet IfaceType }
func (*NetworkIface) String ¶
func (v *NetworkIface) String() string
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) Initialize ¶
func (*Server) OnReloadGlobal ¶
interface ReloadHandler
func (*Server) OnReloadVhost ¶
func (*Server) ParseConfig ¶
func (*Server) PrepareLogger ¶
type ServerState ¶
type ServerState int
the state of server, state graph:
Init => Normal(Ready => Running) Init/Normal => Closed
const ( StateInit ServerState = 1 << iota StateReady StateRunning StateClosed )
Click to show internal directories.
Click to hide internal directories.