grpc_pool/pool_handler.go

17 lines
245 B
Go
Raw Normal View History

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