origin

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Same

func Same(a, b *url.URL) bool

Types

type Origin

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

func Of

func Of(u *url.URL) Origin

func Parse

func Parse(raw string) (Origin, error)

func (Origin) Secure

func (o Origin) Secure() bool

func (Origin) String

func (o Origin) String() string

func (Origin) Valid

func (o Origin) Valid() bool

type Set

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

func Any

func Any() Set

func NewSet

func NewSet(origins ...Origin) Set

func ParseSet

func ParseSet(raw string) (Set, error)

func (Set) Allows

func (s Set) Allows(o Origin) bool

func (Set) Empty

func (s Set) Empty() bool

func (Set) String

func (s Set) String() string

Jump to

Keyboard shortcuts

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