grpc_pool/pool_handler.go

17 lines
245 B
Go
Raw Normal View History

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
GetMaxCapacity() int
2017-11-09 07:43:43 +00:00
GetMaxIdle() int
GetIdleTimeout() time.Duration
2017-09-05 05:42:54 +00:00
Validate()
}