Documentation
¶
Overview ¶
Package home contains AdGuard Home's HTTP API methods.
Index ¶
Constants ¶
View Source
const MaxFileSize = 1024 * 1024
MaxFileSize is a maximum file length in bytes.
View Source
const PasswordMinRunes = 8
PasswordMinRunes is the minimum length of user's password in runes.
Variables ¶
This section is empty.
Functions ¶
func RegisterAuthHandlers ¶
func RegisterAuthHandlers(web *webAPI)
RegisterAuthHandlers - register handlers
Types ¶
type BlockedClientChecker ¶ added in v0.107.49
type BlockedClientChecker interface { // TODO(s.chzhen): Accept [client.FindParams]. IsBlockedClient(ip netip.Addr, clientID string) (blocked bool, rule string) }
BlockedClientChecker checks if a client is blocked by the current access settings.
type Theme ¶ added in v0.107.22
type Theme string
Theme is an enum of all allowed UI themes.
Allowed Theme values.
Keep in sync with client/src/helpers/constants.ts.
func (*Theme) UnmarshalText ¶ added in v0.107.22
UnmarshalText implements encoding.TextUnmarshaler interface for *Theme.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.