Skip to content
Draft
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
10 changes: 10 additions & 0 deletions fastly/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ type Backend struct {
Hostname *string `mapstructure:"hostname"`
KeepAliveTime *int `mapstructure:"keepalive_time"`
MaxConn *int `mapstructure:"max_conn"`
MaxUse *int `mapstructure:"max_use"`
MaxLifetime *int `mapstructure:"max_lifetime"`
MaxTLSVersion *string `mapstructure:"max_tls_version"`
MinTLSVersion *string `mapstructure:"min_tls_version"`
Name *string `mapstructure:"name"`
Expand Down Expand Up @@ -103,6 +105,10 @@ type CreateBackendInput struct {
KeepAliveTime *int `url:"keepalive_time,omitempty"`
// MaxConn is the maximum number of concurrent connections this backend will accept.
MaxConn *int `url:"max_conn,omitempty"`
// MaxUse is the maximum number of times an HTTP keepalive connection can be used. `0` is unlimited.
MaxUse *int `url:"max_use,omitempty"`
// MaxLifetime is the upper bound in milliseconds for how long an HTTP keepalive connection can be open before it is no longer used. `0` is unlimited.
MaxLifetime *int `url:"max_lifetime,omitempty"`
// MaxTLSVersion is the maximum allowed TLS version on SSL connections to this backend.
MaxTLSVersion *string `url:"max_tls_version,omitempty"`
// MinTLSVersion is the minimum allowed TLS version on SSL connections to this backend.
Expand Down Expand Up @@ -236,6 +242,10 @@ type UpdateBackendInput struct {
KeepAliveTime *int `url:"keepalive_time,omitempty"`
// MaxConn is the maximum number of concurrent connections this backend will accept.
MaxConn *int `url:"max_conn,omitempty"`
// MaxUse is the maximum number of times an HTTP keepalive connection can be used. `0` is unlimited.
MaxUse *int `url:"max_use,omitempty"`
// MaxLifetime is the upper bound in milliseconds for how long an HTTP keepalive connection can be open before it is no longer used. `0` is unlimited.
MaxLifetime *int `url:"max_lifetime,omitempty"`
// MaxTLSVersion is the maximum allowed TLS version on SSL connections to this backend.
MaxTLSVersion *string `url:"max_tls_version,omitempty"`
// MinTLSVersion is the minimum allowed TLS version on SSL connections to this backend.
Expand Down
Loading