shielding

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2025 License: Apache-2.0, BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendOptions

type BackendOptions struct {
}

BackendOptions

type Shield

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

Shield is a shielding site withing Fastly.

func ShieldFromName

func ShieldFromName(n string) (*Shield, error)

ShieldFromName returns information about a particular shield site.

func (*Shield) Backend

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

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

func (*Shield) IsRunningOn

func (s *Shield) IsRunningOn() bool

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

func (*Shield) Name

func (s *Shield) Name() string

Name returns the name of the shield site.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL