diagnostics

package
v3.0.0-...-76fd240 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiagnosticsService

type DiagnosticsService struct {
	Session  session.Session
	Response *http.Response
	CacheDir string
	IpCache  map[string]bool
	// contains filtered or unexported fields
}

func NewDiagnosticsService

func NewDiagnosticsService(s session.Session, cacheFile string) (ds *DiagnosticsService)

func (*DiagnosticsService) FlushCache

func (ds *DiagnosticsService) FlushCache()

func (*DiagnosticsService) IsAkamaiIp

func (ds *DiagnosticsService) IsAkamaiIp(ips []string) (ismap map[string]bool, is int, err error)

func (*DiagnosticsService) ReadCache

func (ds *DiagnosticsService) ReadCache()

type IsAkamaiIpResponse

type IsAkamaiIpResponse struct {
	IsCdnIP bool `json:"isCdnIp"`
}

type RequestVerifyIP

type RequestVerifyIP struct {
	IPAddresses []string `json:"ipAddresses"`
}

type ResponseVerifyIP

type ResponseVerifyIP struct {
	Request struct {
		IPAddresses []string `json:"ipAddresses"`
	} `json:"request"`
	CreatedBy       string `json:"createdBy"`
	CreatedTime     string `json:"createdTime"`
	CompletedTime   string `json:"completedTime"`
	ExecutionStatus string `json:"executionStatus"`
	Results         []struct {
		ExecutionStatus string `json:"executionStatus"`
		IPAddress       string `json:"ipAddress"`
		IsEdgeIP        bool   `json:"isEdgeIp"`
	} `json:"results"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL