acceptlist

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: 8 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 reads and updates to accept lists of various types.

func NewManager

func NewManager(s storage.Store) *Manager

NewManager returns a new accept list manager.

func (*Manager) Get

func (m *Manager) Get(acceptType string) ([]*url.URL, error)

Get returns the URIs in the 'accept list' of the given type.

func (*Manager) GetAll

func (m *Manager) GetAll() ([]*spi.AcceptList, error)

GetAll returns accept lists for all types.

func (*Manager) Update

func (m *Manager) Update(acceptType string, additions, deletions []*url.URL) error

Update updates an 'accept list' of the given type with the given additions and deletions.

Jump to

Keyboard shortcuts

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