Documentation
¶
Index ¶
- Variables
- func ConnectDb(c *DbConf) *pg.DB
- func HealthHandler(w http.ResponseWriter, r *http.Request)
- func LoadEnv(profiles ...string)
- func LoadEnvFile(filename string, profiles ...string)
- func LogrusFormatter(f *runtime.Frame) (string, string)
- func LogrusJsonFmt() *logrus.JSONFormatter
- func LogrusTextFmt() *logrus.TextFormatter
- func MapHeaders(r *http.Request, keys ...string) map[string]string
- func OK(w http.ResponseWriter, body interface{})
- func ParseRequestBody(req *http.Request, model interface{}) error
- func ParseResponseBody(req *http.Response, model interface{}) error
- type DbConf
Constants ¶
This section is empty.
Variables ¶
View Source
var Conn *pg.DB
Functions ¶
func HealthHandler ¶
func HealthHandler(w http.ResponseWriter, r *http.Request)
func LoadEnvFile ¶
func LogrusJsonFmt ¶
func LogrusJsonFmt() *logrus.JSONFormatter
func LogrusTextFmt ¶
func LogrusTextFmt() *logrus.TextFormatter
func OK ¶
func OK(w http.ResponseWriter, body interface{})
func ParseRequestBody ¶
func ParseResponseBody ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.