corsrfc1918

package
v0.0.0-...-724c8d0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package corsrfc1918 modifications to Fetch which are intended to mitigate the risks associated with unintentional exposure of devices and servers on a client’s internal network to the web at large.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressSpace

type AddressSpace int

enum: AddressSpace

const (
	LocalAddressSpace AddressSpace = iota
	PrivateAddressSpace
	PublicAddressSpace
)

func AddressSpaceFromJS

func AddressSpaceFromJS(value js.Value) AddressSpace

AddressSpaceFromJS is converting a javascript value into a AddressSpace enum value.

func (*AddressSpace) JSValue

func (this *AddressSpace) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (AddressSpace) Value

func (this AddressSpace) Value() string

Value is converting this into javascript defined string value

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

func (u *Union) JSValue() js.Value

Jump to

Keyboard shortcuts

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