Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Host() string Status() (*types.Status, error) ToggleProtection(enable bool) error RewriteList() (*types.RewriteEntries, error) AddRewriteEntries(e ...types.RewriteEntry) error DeleteRewriteEntries(e ...types.RewriteEntry) error Filtering() (*types.FilteringStatus, error) ToggleFiltering(enabled bool, interval int) error AddFilters(whitelist bool, e ...types.Filter) error DeleteFilters(whitelist bool, e ...types.Filter) error RefreshFilters(whitelist bool) error SetCustomRules(rules types.UserRules) error SafeBrowsing() (bool, error) ToggleSafeBrowsing(enable bool) error Parental() (bool, error) ToggleParental(enable bool) error SafeSearch() (bool, error) ToggleSafeSearch(enable bool) error Services() (*types.Services, error) SetServices(services types.Services) error Clients() (*types.Clients, error) AddClients(client ...types.Client) error UpdateClients(client ...types.Client) error DeleteClients(client ...types.Client) error QueryLogConfig() (*types.QueryLogConfig, error) SetQueryLogConfig(enabled bool, interval int, anonymizeClientIP bool) error StatsConfig() (*types.IntervalConfig, error) SetStatsConfig(interval int) error }
Click to show internal directories.
Click to hide internal directories.