---
title: Shield
summary: Shield is a shielding site within Fastly.
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/shielding/struct.Shield/
---

**Kind:** Struct  
**Module:** [shielding](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/shielding/)  
**Package:** compute-sdk-go v1.11.0  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/shielding/shielding.go#L10

```go
type Shield struct {
	// contains filtered or unexported fields
}
```

Shield is a shielding site within Fastly.

## Methods

### Backend

**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/shielding/shielding.go#L52

```go
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

**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/shielding/shielding.go#L32

```go
func (s *Shield) IsRunningOn() bool
```

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

**Returns**

`bool`

### Name

**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/shielding/shielding.go#L29

```go
func (s *Shield) Name() string
```

Name returns the name of the shield site.

**Returns**

`string`
