server

package
v0.0.0-...-cbe532a Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2014 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUnixAddress

func GetUnixAddress(basepath string) *net.UnixAddr

Types

type ModuleProc

type ModuleProc struct {
	Process *os.Process
}

type Server

type Server struct {
	Modules       []string
	ModuleProcs   []*ModuleProc
	SocketListen  *net.UnixListener
	SocketAddress *net.UnixAddr
	// contains filtered or unexported fields
}

func CreateServer

func CreateServer(basepath string) *Server

func (*Server) Bootstrap

func (s *Server) Bootstrap(basepath string) error

func (*Server) CloseSocket

func (s *Server) CloseSocket() error

func (*Server) FindModules

func (s *Server) FindModules() error

func (*Server) ListenSignal

func (s *Server) ListenSignal()

func (*Server) ListenUnixConnection

func (s *Server) ListenUnixConnection()

func (*Server) LoadModules

func (s *Server) LoadModules() error

func (*Server) OpenSocket

func (s *Server) OpenSocket() error

func (*Server) PingModules

func (s *Server) PingModules()

func (*Server) Run

func (s *Server) Run()

func (*Server) Shutdown

func (s *Server) Shutdown()

Jump to

Keyboard shortcuts

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