Documentation ¶
Overview ¶
Package asmap contains the tables for remote SIGs, ASes and their prefixes.
Index ¶
- Variables
- type ASEntry
- type ASMap
- func (am *ASMap) ASEntry(ia addr.IA) *ASEntry
- func (am *ASMap) AddIA(ia addr.IA) (*ASEntry, error)
- func (am *ASMap) DelIA(ia addr.IA) error
- func (am *ASMap) Delete(key addr.IAInt)
- func (am *ASMap) Load(key addr.IAInt) (*ASEntry, bool)
- func (am *ASMap) LoadOrStore(key addr.IAInt, value *ASEntry) (*ASEntry, bool)
- func (am *ASMap) Range(f func(key addr.IAInt, value *ASEntry) bool)
- func (am *ASMap) ReloadConfig(cfg *sigjson.Cfg) bool
- func (am *ASMap) Store(key addr.IAInt, value *ASEntry)
Constants ¶
This section is empty.
Variables ¶
View Source
var Map = &ASMap{}
Functions ¶
This section is empty.
Types ¶
type ASEntry ¶
type ASEntry struct { sync.RWMutex Nets map[string]*net.IPNet IA addr.IA IAString string Session *session.Session // contains filtered or unexported fields }
ASEntry contains all of the information required to interact with a remote AS.
type ASMap ¶
ASMap is not concurrency safe against multiple writers.
func (*ASMap) ASEntry ¶
ASEntry returns the entry for the specified remote IA, or nil if not present.
func (*ASMap) LoadOrStore ¶
Click to show internal directories.
Click to hide internal directories.