Documentation ¶
Index ¶
- Constants
- Variables
- type Request
- type Response
- type TCP
- func (tcp *TCP) Close() (err error)
- func (tcp *TCP) GetRequestLimit() (limit int)
- func (tcp *TCP) GetTimeout() (timeout time.Duration)
- func (tcp *TCP) Handle(handler func(req *Request, res *Response)) (err error)
- func (tcp *TCP) Send(bytes []byte) (result []byte, err error)
- func (tcp *TCP) SetRequestLimit(limit int)
- func (tcp *TCP) SetTimeout(timeout time.Duration)
Constants ¶
View Source
const ( DefaultTimeout = 30 * time.Second DefaultRequestLimit int = 1024 )
Variables ¶
View Source
var (
RequestTooLarge = errors.New("request too large")
)
Functions ¶
This section is empty.
Types ¶
type TCP ¶
type TCP struct {
// contains filtered or unexported fields
}
func (*TCP) GetRequestLimit ¶
func (*TCP) GetTimeout ¶
func (*TCP) SetRequestLimit ¶
func (*TCP) SetTimeout ¶
Click to show internal directories.
Click to hide internal directories.