Documentation
¶
Index ¶
- type Config
- func (c *Config) Merge(c2 *Config)
- func (c *Config) ParseColor(value string) error
- func (c *Config) ParseDNSServer(value string) error
- func (c *Config) ParseFormat(value string) error
- func (c *Config) ParseHTTP(value string) error
- func (c *Config) ParseHeader(value string) error
- func (c *Config) ParseIgnoreStatus(value string) error
- func (c *Config) ParseInsecure(value string) error
- func (c *Config) ParseNoEncode(value string) error
- func (c *Config) ParseNoPager(value string) error
- func (c *Config) ParseProxy(value string) error
- func (c *Config) ParseQuery(value string) error
- func (c *Config) ParseRedirects(value string) error
- func (c *Config) ParseSilent(value string) error
- func (c *Config) ParseTLS(value string) error
- func (c *Config) ParseTimeout(value string) error
- func (c *Config) ParseVerbosity(value string) error
- func (c *Config) Set(key, val string) error
- type File
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Color core.Color
DNSServer *url.URL
Format core.Format
Headers []core.KeyVal
HTTP core.HTTPVersion
IgnoreStatus *bool
Insecure *bool
NoEncode *bool
NoPager *bool
Proxy *url.URL
QueryParams []core.KeyVal
Redirects *int
Silent *bool
Timeout *time.Duration
TLS *uint16
Verbosity *int
// contains filtered or unexported fields
}
Config represents the configuration options for fetch.
func (*Config) ParseColor ¶
func (*Config) ParseDNSServer ¶
func (*Config) ParseFormat ¶
func (*Config) ParseHeader ¶
func (*Config) ParseIgnoreStatus ¶
func (*Config) ParseInsecure ¶
func (*Config) ParseNoEncode ¶
func (*Config) ParseNoPager ¶
func (*Config) ParseProxy ¶
func (*Config) ParseQuery ¶
func (*Config) ParseRedirects ¶
func (*Config) ParseSilent ¶
func (*Config) ParseTimeout ¶
func (*Config) ParseVerbosity ¶
Click to show internal directories.
Click to hide internal directories.