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

Shield is a shielding site within Fastly.

Methods

func (s *Shield) Backend(opts *BackendOptions) (string, error)

Backend returns a named backend for use with the fsthttp package.

Parameters

opts: *BackendOptions

Returns

(string, error)

IsRunningOn

View source
func (s *Shield) IsRunningOn() bool

IsRunningOn returns whether the Compute node is currently in the shielding site.

Returns

bool
func (s *Shield) Name() string

Name returns the name of the shield site.

Returns

string