grpc_pool/pool_handler.go

17 lines
254 B
Go
Raw Normal View History

2017-09-05 05:42:54 +00:00
package overflow_grpc_pool
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()
}