Documentation ¶
Index ¶
- Constants
- func Auth(c *gin.Context) string
- func Coid(c *gin.Context) string
- func CreateService(serviceName string, port int, fnc func(*gin.Engine))
- func FormatDate(date time.Time) string
- func FormatDatetime(date time.Time) string
- func Log(service, coid, date, message string)
- func NewAuthFilter(serviceName string) gin.HandlerFunc
- func NewLoggerFilter(service string) gin.HandlerFunc
- func ToDate(value string) (time.Time, error)
- type LogEntry
Constants ¶
View Source
const ( DATETIME_FORMAT = "2006-01-02 15:04:05" DATE_FORMAT = "2006-01-02" )
Variables ¶
This section is empty.
Functions ¶
func FormatDate ¶
func FormatDatetime ¶
func NewAuthFilter ¶
func NewAuthFilter(serviceName string) gin.HandlerFunc
func NewLoggerFilter ¶
func NewLoggerFilter(service string) gin.HandlerFunc
Types ¶
Click to show internal directories.
Click to hide internal directories.