allowedoriginsmgr

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager manages the allowed anchor origins.

func New

func New(store storage.Store, initialList ...*url.URL) (*Manager, error)

New creates an allowed anchor origins manager.

func (*Manager) Get

func (s *Manager) Get() ([]*url.URL, error)

Get returns the allowed anchor origins stored in the database. (Note: Use function AllowedOrigins for improved performance since results are cached.)

func (*Manager) Update

func (s *Manager) Update(additions, deletions []*url.URL) error

Update updates the allowed anchor origin list.

Jump to

Keyboard shortcuts

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