Documentation ¶
Index ¶
- Constants
- Variables
- func NewStdLogger() (l *stdLogger)
- type CipherKey
- type Client
- type ClientSettings
- type CryptCipherKey
- type CryptMessage
- type Handler
- type HandlerType
- type Limiter
- type Logger
- type Message
- type Metrics
- type PrivateKey
- type PublicKey
- type RSA
- type Request
- func (req *Request) GetBytes() (bs []byte)
- func (req *Request) GetGob(val interface{}) (err error)
- func (req *Request) GetJson(val interface{}) (err error)
- func (req *Request) SetBytes(bs []byte)
- func (req *Request) SetGob(val interface{}) (err error)
- func (req *Request) SetJson(val interface{}) (err error)
- func (req *Request) String() (str string)
- type Response
- func (res *Response) GetBytes() (bs []byte)
- func (res *Response) GetGob(val interface{}) (err error)
- func (res *Response) GetJson(val interface{}) (err error)
- func (res *Response) SetBytes(bs []byte)
- func (res *Response) SetGob(val interface{}) (err error)
- func (res *Response) SetJson(val interface{}) (err error)
- func (res *Response) String() (str string)
- type Retry
- type Server
- type ServerSettings
- type TCP
- type Timeout
Constants ¶
View Source
const ( DefaultConnTimeout = 250 * time.Millisecond DefaultHandleTimeout = 250 * time.Millisecond )
View Source
const ( DefaultRetries = 3 DefaultDelayTimeout = 50 * time.Millisecond )
View Source
const DefaultBodyLimit = 1024
Variables ¶
Functions ¶
func NewStdLogger ¶ added in v1.2.0
func NewStdLogger() (l *stdLogger)
Types ¶
type CipherKey ¶ added in v1.3.2
type CipherKey []byte
func NewCipherKey ¶ added in v1.3.2
type Client ¶ added in v1.2.0
type Client struct {
// contains filtered or unexported fields
}
type ClientSettings ¶ added in v1.2.0
func NewClientSettings ¶ added in v1.2.0
func NewClientSettings() (stg *ClientSettings)
func (*ClientSettings) SetBodyLimit ¶ added in v1.2.2
func (stg *ClientSettings) SetBodyLimit(limit uint)
func (*ClientSettings) SetConnTimeout ¶ added in v1.2.0
func (stg *ClientSettings) SetConnTimeout(dur time.Duration)
func (*ClientSettings) SetLogger ¶ added in v1.2.0
func (stg *ClientSettings) SetLogger(l Logger)
type CryptCipherKey ¶ added in v1.3.2
type CryptCipherKey []byte
type CryptMessage ¶ added in v1.3.1
type CryptMessage []byte
type HandlerType ¶ added in v1.2.5
type HandlerType uint
type Limiter ¶ added in v1.2.0
type Limiter struct { Timeout // contains filtered or unexported fields }
type PrivateKey ¶ added in v1.3.1
type PrivateKey struct {
// contains filtered or unexported fields
}
func (PrivateKey) Decode ¶ added in v1.3.1
func (pk PrivateKey) Decode(cck CryptCipherKey) (ck CipherKey, err error)
type RSA ¶ added in v1.3.1
type RSA struct {
// contains filtered or unexported fields
}
func (*RSA) PrivateKey ¶ added in v1.3.1
func (r *RSA) PrivateKey() (pk PrivateKey)
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
type Server ¶ added in v1.2.0
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶ added in v1.2.0
func NewServer(tcp *TCP, stg *ServerSettings) (s *Server, err error)
func (*Server) SetContext ¶ added in v1.2.4
type ServerSettings ¶ added in v1.2.0
func NewServerSettings ¶ added in v1.2.0
func NewServerSettings() (stg *ServerSettings)
func (*ServerSettings) SetBodyLimit ¶ added in v1.2.2
func (stg *ServerSettings) SetBodyLimit(limit uint)
func (*ServerSettings) SetConnTimeout ¶ added in v1.2.0
func (stg *ServerSettings) SetConnTimeout(dur time.Duration)
func (*ServerSettings) SetHandleTimeout ¶ added in v1.2.0
func (stg *ServerSettings) SetHandleTimeout(dur time.Duration)
func (*ServerSettings) SetLogger ¶ added in v1.2.0
func (stg *ServerSettings) SetLogger(l Logger)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.