Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ADG ¶
type ADG struct { HostURL string HTTPClient *http.Client Auth AuthStruct }
ADG Client
func (*ADG) CreateClient ¶
CreateClient - Create a client
func (*ADG) DeleteClient ¶
func (c *ADG) DeleteClient(clientDelete ClientDelete) error
DeleteClient - Deletes a client
func (*ADG) UpdateClient ¶
func (c *ADG) UpdateClient(clientUpdate ClientUpdate) (*Client, error)
UpdateClient - Update a client
type AllClients ¶
type AllClients struct { Clients []Client `json:"clients"` ClientAuto []ClientAuto `json:"auto_clients"` SupportedTags []string `json:"supported_tags"` }
AllClients
type AuthStruct ¶
AuthStruct
type Client ¶
type Client struct { Name string `json:"name"` Ids []string `json:"ids"` UseGlobalSettings bool `json:"use_global_settings"` FilteringEnabled bool `json:"filtering_enabled"` ParentalEnabled bool `json:"parental_enabled"` SafebrowsingEnabled bool `json:"safebrowsing_enabled"` SafesearchEnabled bool `json:"safesearch_enabled"` UseGlobalBlockedServices bool `json:"use_global_blocked_services"` BlockedServices []string `json:"blocked_services"` Upstreams []string `json:"upstreams"` Tags []string `json:"tags"` }
Client
type ClientAuto ¶
type ClientAuto struct { Name string `json:"name"` Ip string `json:"ip"` Source string `json:"source"` WhoisInfo map[string]string `json:"whois_info"` }
ClientAuto
type ClientUpdate ¶
ClientUpdate
Click to show internal directories.
Click to hide internal directories.