Discover Packages
github.com/go-enjin/be
pkg
net
ip
ranges
atlassian
package
Version:
v0.2.13
Opens a new window with list of versions in this module.
Published: Jul 18, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
CheckRequestIP returns TRUE if the remote IP in an http.Request is from an
Atlassian IP range
GetIpRanges retrieves Atlassian IP ranges and returns the results
Init retrieves the latest IP range list from Atlassian's service and enables
developers to have control over when in their application lifecycle to
perform network operations.
type IpRangeItem struct {
Network string `json:"network"`
MaskLen int `json:"mask_len"`
Cidr string `json:"cidr"`
Mask string `json:"mask"`
Region []string `json:"region"`
Product []string `json:"product"`
Direction []string `json:"direction"`
}
type IpRangeResponse struct {
CreationDate string `json:"creationDate"`
SyncToken int `json:"syncToken"`
Items []IpRangeItem `json:"items"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.