Documentation
¶
Index ¶
- func ErrorResponse(w http.ResponseWriter, msg string, status int) error
- func PrettyPrint(i interface{}) string
- func ReadBody(w http.ResponseWriter, r *http.Request, data any) error
- func WriteResponse(w http.ResponseWriter, status int, data any, headers ...http.Header) error
- type ClientResponse
- type EnvVariables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorResponse ¶
func ErrorResponse(w http.ResponseWriter, msg string, status int) error
func PrettyPrint ¶
func PrettyPrint(i interface{}) string
func WriteResponse ¶
Types ¶
type ClientResponse ¶
type EnvVariables ¶
type EnvVariables struct { PORT string `mapstructure:"PORT"` DB_DRIVER string `mapstructure:"DB_DRIVER"` DB_SOURCE string `mapstructure:"DB_SOURCE"` GOOGLE_CLIENT_ID string `mapstructure:"GOOGLE_CLIENT_ID"` GOOGLE_CLIENT_SECRET string `mapstructure:"GOOGLE_CLIENT_SECRET"` GOOGLE_REDIRECT_URI string `mapstructure:"GOOGLE_REDIRECT_URI"` GOOGLE_GRANT_TYPE string `mapstructure:"GOOGLE_GRANT_TYPE"` ACCESS_TOKEN_KEY string `mapstructure:"ACCESS_TOKEN_KEY"` REFRESH_TOKEN_KEY string `mapstructure:"REFRESH_TOKEN_KEY"` }
func LoadEnv ¶
func LoadEnv() (config EnvVariables, err error)
Click to show internal directories.
Click to hide internal directories.