Documentation ¶ Index ¶ Variables func NewDynamic() *dynamic func NewStatic(backends []*pb.Backend) (*static, error) type Pool Constants ¶ This section is empty. Variables ¶ View Source var ( ErrUnknownBackend = grpc.Errorf(codes.Unimplemented, "unknown backend") ) View Source var ( // Top DialContext func with decreased Dial Timeout in comparison to DefaultDialer. ParentDialFunc = (&net.Dialer{ Timeout: 1 * time.Second, KeepAlive: 30 * time.Second, }).DialContext ) Functions ¶ func NewDynamic ¶ func NewDynamic() *dynamic NewDynamic creates a pool with a dynamic allocator func NewStatic ¶ func NewStatic(backends []*pb.Backend) (*static, error) NewStatic creates a backend pool that has static configuration. Types ¶ type Pool ¶ type Pool interface { // Tripper returns an already established http.RoundTripper just for this backend. Tripper(backendName string) (http.RoundTripper, error) } Source Files ¶ View all Source files backend.go dynamic.go pool.go static.go Click to show internal directories. Click to hide internal directories.