Documentation
¶
Index ¶
- Variables
- func GetCredetialsViper() *viper.Viper
- func GetEnv(name string, defVal string) string
- func GetURL() (*url.URL, error)
- func InitCredentialsViper()
- func OpenURL(url string) error
- func ValidateEmail(email string) bool
- func ValidateEmailFunc(input string) error
- type Client
- func (c *Client) Delete(path string, headers http.Header) (*http.Response, error)
- func (c *Client) Get(path string, headers http.Header) (*http.Response, error)
- func (c *Client) Patch(path string, body io.Reader, headers http.Header) (*http.Response, error)
- func (c *Client) Post(path string, body io.Reader) (*http.Response, error)
- func (c *Client) Put(path string, body io.Reader, headers http.Header) (*http.Response, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var CredentialsViper *viper.Viper = viper.New()
CredentialsViper instance of viper
Functions ¶
func ValidateEmailFunc ¶ added in v0.0.2
ValidateEmailFunc validates users input
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client serves as a wrapper for out client
Click to show internal directories.
Click to hide internal directories.