Documentation
¶
Index ¶
- func GetFastHttpServer(serverPort int) httpServer.HttpServer
- func UnsafeBytes(s string) []byte
- func UnsafeString(b []byte) string
- type FastHttpServer
- func (m *FastHttpServer) GetHost(hostName string) *httpServer.HttpHost
- func (m *FastHttpServer) GetPort() int
- func (m *FastHttpServer) IsStarted() bool
- func (m *FastHttpServer) SetStartServerParams(params httpServer.StartParams)
- func (m *FastHttpServer) Shutdown()
- func (m *FastHttpServer) StartServer() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFastHttpServer ¶
func GetFastHttpServer(serverPort int) httpServer.HttpServer
func UnsafeBytes ¶
UnsafeBytes returns a byte pointer without allocation.
func UnsafeString ¶
UnsafeString returns a string pointer without allocation
Types ¶
type FastHttpServer ¶ added in v2.0.4
type FastHttpServer struct {
// contains filtered or unexported fields
}
func NewFastHttpServer ¶
func NewFastHttpServer(port int) *FastHttpServer
func (*FastHttpServer) GetHost ¶ added in v2.0.4
func (m *FastHttpServer) GetHost(hostName string) *httpServer.HttpHost
func (*FastHttpServer) GetPort ¶ added in v2.0.4
func (m *FastHttpServer) GetPort() int
func (*FastHttpServer) IsStarted ¶ added in v2.0.4
func (m *FastHttpServer) IsStarted() bool
func (*FastHttpServer) SetStartServerParams ¶ added in v2.0.4
func (m *FastHttpServer) SetStartServerParams(params httpServer.StartParams)
func (*FastHttpServer) Shutdown ¶ added in v2.0.4
func (m *FastHttpServer) Shutdown()
func (*FastHttpServer) StartServer ¶ added in v2.0.4
func (m *FastHttpServer) StartServer() error
Click to show internal directories.
Click to hide internal directories.