BackendOptions

Structin shieldingcompute-sdk-go v1.11.0View source
type BackendOptions struct {
// contains filtered or unexported fields
}

BackendOptions controls the options for a backend created for a shield.

Methods

BetweenBytesTimeout

View source
func (b *BackendOptions) BetweenBytesTimeout(t time.Duration) *BackendOptions

BetweenBytesTimeout sets the between-bytes timeout for a derived backend.

Parameters

t: time.Duration

Returns

FirstByteTimeout

View source
func (b *BackendOptions) FirstByteTimeout(t time.Duration) *BackendOptions

FirstByteTimeout sets the first-byte timeout for a derived backend.

Parameters

t: time.Duration

Returns