Documentation
¶
Index ¶
- func RString(r dnsmessage.Resource) string
- type Entry
- type Store
- func (s *Store) Clone() map[string]Entry
- func (s *Store) Get(key string) ([]dnsmessage.Resource, bool)
- func (s *Store) Load() error
- func (s *Store) Override(key string, resources []dnsmessage.Resource)
- func (s *Store) Remove(key string, r *dnsmessage.Resource) bool
- func (s *Store) Save() error
- func (s *Store) Set(key string, resource dnsmessage.Resource, old *dnsmessage.Resource) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Entry ¶
type Entry struct { Resources []dnsmessage.Resource TTL uint32 Created int64 }
Entry entry struct
type Store ¶
Store store struct
func (*Store) Get ¶
func (s *Store) Get(key string) ([]dnsmessage.Resource, bool)
Get get daya by key
func (*Store) Override ¶
func (s *Store) Override(key string, resources []dnsmessage.Resource)
Override override data
func (*Store) Remove ¶
func (s *Store) Remove(key string, r *dnsmessage.Resource) bool
Remove remove data
func (*Store) Set ¶
func (s *Store) Set(key string, resource dnsmessage.Resource, old *dnsmessage.Resource) bool
Set data
Click to show internal directories.
Click to hide internal directories.