Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose KeepAliveTime field from Backend API #405

Merged
merged 3 commits into from
Mar 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions fastly/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ type Backend struct {
FirstByteTimeout int `mapstructure:"first_byte_timeout"`
HealthCheck string `mapstructure:"healthcheck"`
Hostname string `mapstructure:"hostname"`
KeepAliveTime int `mapstructure:"keepalive_time"`
MaxConn int `mapstructure:"max_conn"`
MaxTLSVersion string `mapstructure:"max_tls_version"`
MinTLSVersion string `mapstructure:"min_tls_version"`
Expand Down Expand Up @@ -109,6 +110,8 @@ type CreateBackendInput struct {
FirstByteTimeout *int `url:"first_byte_timeout,omitempty"`
// HealthCheck is the name of the healthcheck to use with this backend.
HealthCheck *string `url:"healthcheck,omitempty"`
// KeepAliveTime is how long in seconds to keep a persistent connection to the backend between requests.
KeepAliveTime *int `url:"keepalive_time,omitempty"`
// MaxConn is the maximum number of concurrent connections this backend will accept.
MaxConn *int `url:"max_conn,omitempty"`
// MaxTLSVersion is the maximum allowed TLS version on SSL connections to this backend.
Expand Down Expand Up @@ -229,6 +232,8 @@ type UpdateBackendInput struct {
FirstByteTimeout *int `url:"first_byte_timeout,omitempty"`
// HealthCheck is the name of the healthcheck to use with this backend.
HealthCheck *string `url:"healthcheck,omitempty"`
// KeepAliveTime is how long in seconds to keep a persistent connection to the backend between requests.
KeepAliveTime *int `url:"keepalive_time,omitempty"`
// MaxConn is the maximum number of concurrent connections this backend will accept.
MaxConn *int `url:"max_conn,omitempty"`
// MaxTLSVersion is the maximum allowed TLS version on SSL connections to this backend.
Expand Down