Documentation
¶
Overview ¶
Package giztools provides stateless execution helpers for Tool backends.
Index ¶
Constants ¶
View Source
const ( MaxRequestBytes = 1 << 20 MaxHTTPResponseBytes = 4 << 20 MaxHTTPTimeout = 60 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func BuildHTTPRequest ¶
func BuildHTTPRequest(ctx context.Context, operation HTTPOperation, args json.RawMessage) (*http.Request, error)
Types ¶
type EgressPolicy ¶
type HTTPAuthorizer ¶
type HTTPAuthorizerFunc ¶
type HTTPBinding ¶
type HTTPExecutor ¶
type HTTPExecutor struct {
Transport http.RoundTripper
Policy EgressPolicy
Resolver *net.Resolver
}
func (HTTPExecutor) Invoke ¶
func (e HTTPExecutor) Invoke( ctx context.Context, operation HTTPOperation, args json.RawMessage, authorizer HTTPAuthorizer, ) (json.RawMessage, error)
type HTTPOperation ¶
Click to show internal directories.
Click to hide internal directories.