grpc_pool/pool_handler.go
crusader 87a3b25404 ing
2017-11-09 15:47:07 +09:00

17 lines
245 B
Go

package grpc_pool
import (
"time"
"google.golang.org/grpc"
)
type PoolHandler interface {
Dial() (conn *grpc.ClientConn, client interface{}, err error)
GetIdleTimeout() time.Duration
GetMaxIdle() int
GetMaxCapacity() int
Validate()
}