Documentation ¶
Index ¶
- Constants
- func IsText(s []byte) bool
- type Handler
- type Logger
- type TermDumpster
- func (td *TermDumpster) Listen(addr string, port string) error
- func (td *TermDumpster) ListenUnixSocket(path string) error
- func (td *TermDumpster) WithGzip() *TermDumpster
- func (td *TermDumpster) WithLogger(logger Logger) *TermDumpster
- func (td *TermDumpster) WithMaxSize(size int64) *TermDumpster
- func (td *TermDumpster) WithTimeout(timeout time.Duration) *TermDumpster
Constants ¶
View Source
const ( MessageRatelimited = "RATELIMIT_REACHED" MessageSizeLimited = "MAX_SIZE_EXCEEDED" MessageBinaryData = "BINARY_DATA_REJECTED" MessageInternalError = "INTERNAL_ERROR" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TermDumpster ¶
type TermDumpster struct { Pool pool.BufferFactory *rate5.Limiter // contains filtered or unexported fields }
func NewTermDumpster ¶
func NewTermDumpster(handler Handler) *TermDumpster
func (*TermDumpster) Listen ¶
func (td *TermDumpster) Listen(addr string, port string) error
Listen starts the TCP server
func (*TermDumpster) ListenUnixSocket ¶
func (td *TermDumpster) ListenUnixSocket(path string) error
ListenUnixSocket starts the unix socket listener
func (*TermDumpster) WithGzip ¶
func (td *TermDumpster) WithGzip() *TermDumpster
func (*TermDumpster) WithLogger ¶
func (td *TermDumpster) WithLogger(logger Logger) *TermDumpster
func (*TermDumpster) WithMaxSize ¶
func (td *TermDumpster) WithMaxSize(size int64) *TermDumpster
func (*TermDumpster) WithTimeout ¶
func (td *TermDumpster) WithTimeout(timeout time.Duration) *TermDumpster
Click to show internal directories.
Click to hide internal directories.