Documentation ¶
Index ¶
Constants ¶
View Source
const ( Gsettings = "gsettings" Set = "set" SystemProxy = "org.gnome.system.proxy" SystemProxyHttp = "org.gnome.system.proxy.http" SystemProxyHttps = "org.gnome.system.proxy.https" SystemProxySocks = "org.gnome.system.proxy.socks" ProxyHost = "host" ProxyPort = "port" ProxyMode = "mode" None = "none" Manual = "manual" )
Variables ¶
View Source
var ( CtxKeyProxyName = contextKey("proxy name") CtxKeyProviderName = contextKey("provider name") CtxKeyProxy = contextKey("proxy") CtxKeyProvider = contextKey("provider") )
View Source
var ( ErrBadRequest = newError("Body invalid") ErrForbidden = newError("Forbidden") ErrNotFound = newError("Resource not found") ErrRequestTimeout = newError("Timeout") )
Functions ¶
Types ¶
type HTTPError ¶
type HTTPError struct {
Message string `json:"message"`
}
HTTPError is custom HTTP error for API
type UpdateProxyRequest ¶
type UpdateProxyRequest struct {
Name string `json:"name"`
}
Click to show internal directories.
Click to hide internal directories.