Documentation ¶
Index ¶
- type URL
- func (u *URL) GetURL() *url.URL
- func (u *URL) IsHTTPOrHTTPS() bool
- func (u *URL) MarshalYAML() (interface{}, error)
- func (u *URL) NewDialFunc(ac *promauth.Config) (fasthttp.DialFunc, error)
- func (u *URL) SetFasthttpHeaders(ac *promauth.Config, req *fasthttp.Request)
- func (u *URL) SetHeaders(ac *promauth.Config, req *http.Request)
- func (u *URL) String() string
- func (u *URL) UnmarshalYAML(unmarshal func(interface{}) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type URL ¶
URL implements YAML.Marshaler and yaml.Unmarshaler interfaces for url.URL.
func (*URL) IsHTTPOrHTTPS ¶
IsHTTPOrHTTPS returns true if u is http or https
func (*URL) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler interface.
func (*URL) NewDialFunc ¶
NewDialFunc returns dial func for the given u and ac.
func (*URL) SetFasthttpHeaders ¶
SetFasthttpHeaders sets headers to req according to u and ac configs.
func (*URL) SetHeaders ¶
SetHeaders sets headers to req according to u and ac configs.
func (*URL) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.