2017-11-09 06:47:07 +00:00
|
|
|
package grpc_pool
|
2017-09-05 05:42:54 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"google.golang.org/grpc"
|
|
|
|
)
|
|
|
|
|
|
|
|
type PoolHandler interface {
|
2017-11-09 05:47:37 +00:00
|
|
|
Dial() (conn *grpc.ClientConn, client interface{}, err error)
|
2017-11-09 05:46:04 +00:00
|
|
|
|
2017-09-05 05:42:54 +00:00
|
|
|
GetIdleTimeout() time.Duration
|
|
|
|
GetMaxIdle() int
|
|
|
|
GetMaxCapacity() int
|
|
|
|
Validate()
|
|
|
|
}
|