Documentation ¶
Index ¶
Constants ¶
View Source
const ( Data messageType = iota + 1 Connect Error )
Variables ¶
View Source
var ( PingWaitDuration = time.Duration(10 * time.Second) PingWriteInterval = time.Duration(5 * time.Second) MaxRead = 8192 )
View Source
var (
ErrConnClosed = errors.New("ConnClosed")
)
Functions ¶
func ClientConnect ¶
Types ¶
type Authorizer ¶
type ConnectAuthorizer ¶
type ErrorWriter ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func New ¶
func New(auth Authorizer, errorWriter ErrorWriter) *Server
Click to show internal directories.
Click to hide internal directories.