Documentation ¶
Index ¶
- type Envelope
- type ResolvedIp
- func (resolved *ResolvedIp) Equals(ip *ResolvedIp) bool
- func (resolved *ResolvedIp) HasIpV4() bool
- func (resolved *ResolvedIp) HasIpV6() bool
- func (resolved *ResolvedIp) Hash() string
- func (resolved *ResolvedIp) IsValid() bool
- func (resolved *ResolvedIp) String() string
- func (resolved ResolvedIp) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Envelope ¶
type Envelope struct { PublicIp ResolvedIp `json:"public_ip"` Signature string `json:"signature"` }
type ResolvedIp ¶
type ResolvedIp struct { IpV4 string `json:"ipv4,omitempty"` IpV6 string `json:"ipv6,omitempty"` Host string `json:"host"` Timestamp time.Time `json:"timestamp"` }
func NewResolvedIp ¶
func NewResolvedIp(host string) *ResolvedIp
func (*ResolvedIp) Equals ¶
func (resolved *ResolvedIp) Equals(ip *ResolvedIp) bool
Equals checks for equality and ignores timestamps
func (*ResolvedIp) HasIpV4 ¶
func (resolved *ResolvedIp) HasIpV4() bool
func (*ResolvedIp) HasIpV6 ¶
func (resolved *ResolvedIp) HasIpV6() bool
func (*ResolvedIp) Hash ¶
func (resolved *ResolvedIp) Hash() string
func (*ResolvedIp) IsValid ¶
func (resolved *ResolvedIp) IsValid() bool
func (*ResolvedIp) String ¶
func (resolved *ResolvedIp) String() string
func (ResolvedIp) Validate ¶
func (resolved ResolvedIp) Validate() error
Click to show internal directories.
Click to hide internal directories.