Documentation ¶
Overview ¶
//////////////////////////////////////////////////////////////////// server.go ////////////////////////////////////////////////////////////////////
Index ¶
Constants ¶
const ( ADDRESS_LOCAL_HOST = "" SOCKET_FILE_MODE = 0777 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TcpServer ¶
type TcpServer struct { Address string CertFile string IsFcgi bool KeyFile string Port string ServerMux *http.ServeMux }
func NewTcpServer ¶
//////////////////////////////////////////////////////////////////// New TcpServer. ////////////////////////////////////////////////////////////////////
func (*TcpServer) Run ¶
//////////////////////////////////////////////////////////////////// Run with TCP. ////////////////////////////////////////////////////////////////////
type UnixServer ¶
type UnixServer struct { GroupId int IsFcgi bool ServerMux *http.ServeMux SocketPath string UserId int }
func NewUnixServer ¶
func NewUnixServer(socketPath string, serverMux *http.ServeMux) *UnixServer
//////////////////////////////////////////////////////////////////// New UnixServer. ////////////////////////////////////////////////////////////////////
func (*UnixServer) Run ¶
func (s *UnixServer) Run() error
//////////////////////////////////////////////////////////////////// Run with UNIX socket. ////////////////////////////////////////////////////////////////////
func (*UnixServer) SetFcgi ¶
func (s *UnixServer) SetFcgi() *UnixServer
//////////////////////////////////////////////////////////////////// Set FCGI. ////////////////////////////////////////////////////////////////////
func (*UnixServer) SetOwner ¶
func (s *UnixServer) SetOwner(userId, groupId int) *UnixServer
//////////////////////////////////////////////////////////////////// Set owner. ////////////////////////////////////////////////////////////////////
Directories ¶
Path | Synopsis |
---|---|
//////////////////////////////////////////////////////////////////// request.go ////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////// request.go //////////////////////////////////////////////////////////////////// |