Documentation ¶
Index ¶
- Variables
- type Deobfser
- type Frame
- type Obfser
- type Session
- type Stream
- type Valve
- func (v *Valve) AddRxCredit(n int64) int64
- func (v *Valve) AddTxCredit(n int64) int64
- func (v *Valve) GetRxCredit() int64
- func (v *Valve) GetTxCredit() int64
- func (v *Valve) SetRxCredit(n int64)
- func (v *Valve) SetRxRate(rate int64)
- func (v *Valve) SetTxCredit(n int64)
- func (v *Valve) SetTxRate(rate int64)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBrokenSession = errors.New("broken session")
View Source
var ErrBrokenStream = errors.New("broken stream")
View Source
var ErrNoRxCredit error = errors.New("No Rx credit is left")
View Source
var ErrNoTxCredit error = errors.New("No Tx credit is left")
Functions ¶
This section is empty.
Types ¶
type Deobfser ¶
func MakeDeobfs ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func MakeSession ¶
func (*Session) AcceptStream ¶
func (*Session) AddConnection ¶
func (*Session) OpenStream ¶
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
type Valve ¶
type Valve struct {
// contains filtered or unexported fields
}
Valve needs to be universal, across all sessions that belong to a user gabe please don't sue
func (*Valve) GetRxCredit ¶
func (*Valve) GetTxCredit ¶
func (*Valve) SetRxCredit ¶
func (*Valve) SetTxCredit ¶
Click to show internal directories.
Click to hide internal directories.