datastorejson

package
v0.0.0-...-f0fecd2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(logf slogf.Logf, path string) (datastore.Storage, error)

Types

type Storage

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

func (*Storage) AddAddr

func (s *Storage) AddAddr(name string, ip string) error

func (*Storage) AddRewrite

func (s *Storage) AddRewrite(domain string, matchType string, addr string) error

func (*Storage) DeleteAddr

func (s *Storage) DeleteAddr(name string) error

func (*Storage) DeleteRewrite

func (s *Storage) DeleteRewrite(domain string, matchType string) error

func (*Storage) ListAddrs

func (s *Storage) ListAddrs() (datastore.Addrs, error)

func (*Storage) ListRewrites

func (s *Storage) ListRewrites() ([]datastore.Entry, error)

Jump to

Keyboard shortcuts

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