Documentation
¶
Index ¶
- Constants
- func DecodeEx(bts []byte, useStruct bool) (ret structure.Element, err error)
- func NewDebugMiddleWare() endpoint.Middleware
- type AuthType
- type Client
- type DebugKey
- type Option
- func WithAuthPort(port int) Option
- func WithDefaultTable(table string) Option
- func WithHostPort(hosts ...string) Option
- func WithRpcTimeout(d time.Duration) Option
- func WithServiceNamePort(domainName string, port int) Option
- func WithUserPwd(username, password string) Option
- func WithUserPwdEncrypted(username, password string) Option
- type Options
Constants ¶
View Source
const ( BinaryV1MagicNumber = 0x0101 BinaryV1CompressionMagicNumber = 0x0102 )
View Source
const ( DefaultMaxIdle = 10 DefaultMaxIdleGlobal = 2147483647 DefaultMaxIdleTimeout = time.Millisecond * 2500 DefaultRpcTimeout = time.Millisecond * 6000 )
Variables ¶
This section is empty.
Functions ¶
func NewDebugMiddleWare ¶
func NewDebugMiddleWare() endpoint.Middleware
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type Option ¶
type Option func(*Options)
func WithAuthPort ¶
func WithDefaultTable ¶
func WithHostPort ¶
Specify hosts for the client to connect to
func WithRpcTimeout ¶
func WithServiceNamePort ¶
func WithUserPwdEncrypted ¶
Click to show internal directories.
Click to hide internal directories.