{"modulePath":"github.com/vscode-lcode/bash","version":"v0.0.14","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package server\n\n## Variables\n\n```go\nvar (\n\tErrClientNotExists = fmt.Errorf(\"client session is not exists\")\n\tErrClientIDReused  = fmt.Errorf(\"client id is reused. %w\", ErrClientNotExists)\n)\n```\n\n## Functions\n\n```go\nfunc ExportClients(hub *Hub) map[uint64]*bash.Client\n```\n\n## Types\n\n```go\ntype Header [12]byte\n```\n\n```go\nfunc (h *Header) ID() uint64\n```\n\n```go\nfunc (h *Header) MsgType() MsgType\n```\n\n```go\nfunc (h *Header) String() string\n```\n\n```go\nfunc (h *Header) Version() uint8\n```\n\n```go\ntype Hub struct {\n\tOnSessionOpen func(bash.Session) func()\n\tTimeout       time.Duration\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewHub() *Hub\n```\n\n```go\nfunc (hub *Hub) Close() (err error)\n```\n\n```go\nfunc (hub *Hub) NewClientSession(conn net.Conn) (err error)\n```\n\n```go\nfunc (hub *Hub) Serve(l net.Listener) (err error)\n```\n\n```go\nfunc (hub *Hub) ServeConn(conn net.Conn) (err error)\n```\n\n```go\ntype MsgType uint8\n```\n\n```go\nconst (\n\tMsgToSession MsgType = iota\n\tMsgInitSession\n)\n```\n\n","path":"github.com/vscode-lcode/bash/server","name":"server","synopsis":"","isRedistributable":true}
