Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckerFunc ¶
CheckerFunc is function to check request.
type Conn ¶
type Conn interface {
ID() string
NextReader() (session.FrameType, io.ReadCloser, error)
NextWriter(fType session.FrameType) (io.WriteCloser, error)
Close() error
URL() url.URL
LocalAddr() net.Addr
RemoteAddr() net.Addr
RemoteHeader() http.Header
SetContext(v interface{})
Context() interface{}
}
Conn is connection by client session
type ConnInitorFunc ¶
ConnInitorFunc is function to do after create connection.
type Opener ¶
type Opener interface {
Open() (transport.ConnParameters, error)
}
Opener is client connection which need receive open message first.
type Options ¶
type Options struct {
PingTimeout time.Duration
PingInterval time.Duration
Transports []transport.Transport
SessionIDGenerator session.IDGenerator
RequestChecker CheckerFunc
ConnInitor ConnInitorFunc
}
Options is options to create a server.
type Pauser ¶
type Pauser interface {
Pause()
Resume()
}
Pauser is connection which can be paused and resumes.
Click to show internal directories.
Click to hide internal directories.