Documentation ¶
Index ¶
- Constants
- func SetConnParam(conn *net.TCPConn)
- func SetWebSocketConnParam(conn net.Conn)
- type ServerBootStrap
- func (bootStrap *ServerBootStrap) ChannelInitializer(channelInitializer channel.ChannelInitializer) (ret *ServerBootStrap)
- func (bootStrap *ServerBootStrap) Listen() (err error)
- func (bootStrap *ServerBootStrap) Params(channelParams map[string]interface{}) (ret *ServerBootStrap)
- func (bootStrap *ServerBootStrap) Port(port string) (ret *ServerBootStrap)
- type WSServerBootStrap
- func (bootStrap *WSServerBootStrap) ChannelInitializer(channelInitializer channel.ChannelInitializer) (ret *WSServerBootStrap)
- func (bootStrap *WSServerBootStrap) Crt(crt string) (ret *WSServerBootStrap)
- func (bootStrap *WSServerBootStrap) Key(key string) (ret *WSServerBootStrap)
- func (bootStrap *WSServerBootStrap) Listen()
- func (bootStrap *WSServerBootStrap) MsgType(msgType int) (ret *WSServerBootStrap)
- func (bootStrap *WSServerBootStrap) Params(channelParams map[string]interface{}) (ret *WSServerBootStrap)
- func (bootStrap *WSServerBootStrap) Port(port string) (ret *WSServerBootStrap)
- func (bootStrap *WSServerBootStrap) SPort(port string) (ret *WSServerBootStrap)
- func (bootStrap *WSServerBootStrap) ServeHTTP(writer http.ResponseWriter, req *http.Request)
Constants ¶
View Source
const ( LocalHostIp = "127.0.0.1" DefaultIp = LocalHostIp DefaultPort string = ":6829" DefaultClientPort = 6829 DefaultMsgType = websocket.BinaryMessage )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ServerBootStrap ¶
type ServerBootStrap struct {
// contains filtered or unexported fields
}
func NewServerBootStrap ¶
func NewServerBootStrap() (this *ServerBootStrap)
func (*ServerBootStrap) ChannelInitializer ¶
func (bootStrap *ServerBootStrap) ChannelInitializer(channelInitializer channel.ChannelInitializer) (ret *ServerBootStrap)
func (*ServerBootStrap) Listen ¶
func (bootStrap *ServerBootStrap) Listen() (err error)
func (*ServerBootStrap) Params ¶
func (bootStrap *ServerBootStrap) Params(channelParams map[string]interface{}) (ret *ServerBootStrap)
func (*ServerBootStrap) Port ¶
func (bootStrap *ServerBootStrap) Port(port string) (ret *ServerBootStrap)
type WSServerBootStrap ¶
type WSServerBootStrap struct {
// contains filtered or unexported fields
}
func NewWSServerBootStrap ¶
func NewWSServerBootStrap() (this *WSServerBootStrap)
func (*WSServerBootStrap) ChannelInitializer ¶
func (bootStrap *WSServerBootStrap) ChannelInitializer(channelInitializer channel.ChannelInitializer) (ret *WSServerBootStrap)
func (*WSServerBootStrap) Crt ¶ added in v1.0.8
func (bootStrap *WSServerBootStrap) Crt(crt string) (ret *WSServerBootStrap)
func (*WSServerBootStrap) Key ¶ added in v1.0.8
func (bootStrap *WSServerBootStrap) Key(key string) (ret *WSServerBootStrap)
func (*WSServerBootStrap) Listen ¶
func (bootStrap *WSServerBootStrap) Listen()
func (*WSServerBootStrap) MsgType ¶ added in v1.0.15
func (bootStrap *WSServerBootStrap) MsgType(msgType int) (ret *WSServerBootStrap)
func (*WSServerBootStrap) Params ¶
func (bootStrap *WSServerBootStrap) Params(channelParams map[string]interface{}) (ret *WSServerBootStrap)
func (*WSServerBootStrap) Port ¶
func (bootStrap *WSServerBootStrap) Port(port string) (ret *WSServerBootStrap)
func (*WSServerBootStrap) SPort ¶ added in v1.0.8
func (bootStrap *WSServerBootStrap) SPort(port string) (ret *WSServerBootStrap)
func (*WSServerBootStrap) ServeHTTP ¶
func (bootStrap *WSServerBootStrap) ServeHTTP(writer http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.