Documentation
¶
Index ¶
- Constants
- func ChangeTitle(title string)
- func CreateGinConetxt(value xgin.HandlerFunc) gin.HandlerFunc
- func GetFullPath(path string) string
- func GetTimeFromList(name string, l []interface{}) int64
- func StripPrefix(prefix string, h http.Handler) http.Handler
- func StripPrefixAdmin(prefix string, h http.Handler) http.Handler
- type Connection
- type Listener
- type XServer
- func (this *XServer) ConnectToProcess()
- func (s *XServer) DownloadFileDelegate(call func(string, string, string, string))
- func (s *XServer) GET(key string, call xgin.HandlerFunc)
- func (s *XServer) HandfuncWebSocket(key string, call websocket.Handler)
- func (this *XServer) ListenAndServer() error
- func (this *XServer) ListenAndServerTLS(certFile, keyFile string) error
- func (s *XServer) POST(key string, call xgin.HandlerFunc)
- func (this *XServer) RunServer()
- func (this *XServer) Server() error
- func (this *XServer) ServerTLS(srv http.Server, ln net.Listener) error
- func (s *XServer) SetMainRouter(mainRouter string)
- func (this *XServer) StartListenHandler()
Constants ¶
View Source
const ( GRACEFUL_ENVIRON_KEY = "IS_GRACEFUL" GRACEFUL_ENVIRON_STRING = GRACEFUL_ENVIRON_KEY + "=1" DEFAULT_READ_TIMEOUT = 60 * time.Second DEFAULT_WRITE_TIMEOUT = DEFAULT_READ_TIMEOUT )
Variables ¶
This section is empty.
Functions ¶
func ChangeTitle ¶
func ChangeTitle(title string)
func CreateGinConetxt ¶
func CreateGinConetxt(value xgin.HandlerFunc) gin.HandlerFunc
func GetFullPath ¶
func GetTimeFromList ¶
Types ¶
type Connection ¶
func (*Connection) Close ¶
func (this *Connection) Close() error
type Listener ¶
type Listener struct {
*net.TCPListener
// contains filtered or unexported fields
}
type XServer ¶
type XServer struct {
// contains filtered or unexported fields
}
func (*XServer) ConnectToProcess ¶
func (this *XServer) ConnectToProcess()
func (*XServer) DownloadFileDelegate ¶
func (*XServer) HandfuncWebSocket ¶
func (*XServer) ListenAndServer ¶
func (*XServer) ListenAndServerTLS ¶
func (*XServer) SetMainRouter ¶
func (*XServer) StartListenHandler ¶
func (this *XServer) StartListenHandler()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.