Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { ReadSize int `toml:"read-size"` WriteSize int `toml:"write-size"` WriteDeadline time.Duration `toml:"write-deadline"` PingInterval time.Duration `toml:"ping-interval"` PingTimeout time.Duration `toml:"ping-timeout"` ReadMsgLimit int64 `toml:"read-msg-limit"` }
func (*Options) FillDefaults ¶
func (o *Options) FillDefaults()
type ReceiverFunc ¶
type SessionFactory ¶
type SessionFactory struct {
// contains filtered or unexported fields
}
func NewSessionFactory ¶
func NewSessionFactory(o Options) *SessionFactory
func (*SessionFactory) NewSession ¶
func (f *SessionFactory) NewSession( w http.ResponseWriter, req *http.Request, log *slog.Logger, recv ReceiverFunc, ) (*Session, error)
Click to show internal directories.
Click to hide internal directories.