Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultLogLevel = logrus.InfoLevel
View Source
const DefaultTimeFormat = "2006-01-02"
Variables ¶
View Source
var Logger = logrus.New()
View Source
var (
Validate *validator.Validate
)
Functions ¶
func GetMongoURI ¶
func GetMongoURI() string
GetMongoURI Resolves Mongo URI for the application database from environment variables.
func GetPort ¶
func GetPort() string
GetPort Resolves port that application needs to be start from environment variables.
func NewApiError ¶
NewApiError Returns a new API Error with custom statusCode, code and message
func NewBadRequestError ¶
func NewBadRequestError() error
NewBadRequestError Returns a new API Error with Bad Request specified in it.
func NewBadRequestErrorWithMessage ¶
NewBadRequestErrorWithMessage Returns a new API Error with Bad Request specified in it with custom message.
Types ¶
Click to show internal directories.
Click to hide internal directories.