Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Ready Can be used Ready condition = iota // Put Not available. Maybe later. Put // Destroy Failure occurs and cannot be restored Destroy )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Pool)
func WithAcquireTimeOut ¶
func WithDialOption ¶
func WithDialOption(ops ...grpc.DialOption) Option
func WithDynamicLink ¶
func WithMaxCap ¶
func WithOverflowCap ¶
func WithServerAddr ¶
type Pool ¶
type Pool struct { ServerAddr string MaxCap int64 AcquireTimeout time.Duration DynamicLink bool OverflowCap bool ChannelStat chanStat // contains filtered or unexported fields }
func NewRpcClientPool ¶
Click to show internal directories.
Click to hide internal directories.