Documentation ¶
Index ¶
- type BaseClient
- type Client
- type Connect
- type LightClient
- type Option
- func SetAUTH(token string) Option
- func SetCompressor(compressor codes.CompressorType) Option
- func SetHeartBeat(heartBeat time.Duration) Option
- func SetLoadBalancing(lb load_banlancing.LoadBalancing) Option
- func SetPoolSize(p int) Option
- func SetRASPublicKey(key []byte) Option
- func SetSerialization(serialization codes.SerializationType) Option
- func SetTimeOut(writeTimeout time.Duration, readTimeout time.Duration) Option
- func Trance() Option
- type Options
- type Payload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseClient ¶
type BaseClient struct {
// contains filtered or unexported fields
}
func (*BaseClient) Call ¶
func (b *BaseClient) Call(ctx *light.Context, serviceMethod string, request interface{}, response interface{}) (err error)
func (*BaseClient) Error ¶ added in v0.0.3
func (b *BaseClient) Error() error
type Connect ¶
type Connect struct { Client *Client // contains filtered or unexported fields }
type LightClient ¶
type Option ¶
type Option func(options *Options)
func SetCompressor ¶
func SetCompressor(compressor codes.CompressorType) Option
func SetHeartBeat ¶
func SetLoadBalancing ¶
func SetLoadBalancing(lb load_banlancing.LoadBalancing) Option
func SetPoolSize ¶
func SetRASPublicKey ¶ added in v0.0.3
func SetSerialization ¶
func SetSerialization(serialization codes.SerializationType) Option
Click to show internal directories.
Click to hide internal directories.