Documentation ¶
Index ¶
- type Network
- func (sn *Network) CheckConfig() bool
- func (sn *Network) CheckHashWithLocalKey(hash string) bool
- func (sn *Network) CheckID(id string) bool
- func (sn *Network) CheckKey(key []byte) bool
- func (sn Network) Get() Network
- func (sn *Network) GetAnnounceInterval() time.Duration
- func (sn *Network) GetAnnounceIntervalInt() int
- func (sn *Network) GetHelloInterval() time.Duration
- func (sn *Network) GetHelloIntervalInt() int
- func (sn *Network) GetID() string
- func (sn *Network) GetMaxClientAge() float64
- func (sn *Network) SetAnnounceInterval(sec int)
- func (sn *Network) SetHelloInterval(sec int)
- func (sn *Network) SetKey(key []byte)
- func (sn *Network) SetMaxClientAge(maxage float64)
- func (sn *Network) SetTimeStamp(t time.Time)
- func (sn *Network) Update(net Network)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Network ¶
type Network struct { TimeStamp time.Time ID string AnnounceInterval int // seconds HelloInterval int // seconds (0=disabled) MaxClientAge float64 // days Hash string }
func (*Network) CheckConfig ¶
func (*Network) CheckHashWithLocalKey ¶
func (*Network) GetAnnounceInterval ¶
func (*Network) GetAnnounceIntervalInt ¶
func (*Network) GetHelloInterval ¶
func (*Network) GetHelloIntervalInt ¶
func (*Network) GetMaxClientAge ¶
func (*Network) SetAnnounceInterval ¶
func (*Network) SetHelloInterval ¶
func (*Network) SetMaxClientAge ¶
func (*Network) SetTimeStamp ¶
Click to show internal directories.
Click to hide internal directories.