Documentation ¶
Index ¶
- func New(logf slogf.Logf, path string) (datastore.Storage, error)
- type Storage
- func (s *Storage) AddAddr(name string, ip string) error
- func (s *Storage) AddRewrite(domain string, matchType string, addr string) error
- func (s *Storage) DeleteAddr(name string) error
- func (s *Storage) DeleteRewrite(domain string, matchType string) error
- func (s *Storage) ListAddrs() (datastore.Addrs, error)
- func (s *Storage) ListRewrites() ([]datastore.Entry, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) AddRewrite ¶
func (*Storage) DeleteAddr ¶
func (*Storage) DeleteRewrite ¶
Click to show internal directories.
Click to hide internal directories.