Documentation ¶
Index ¶
- Constants
- func ClientPathEntities(ri stereotypes.ApiRestInteface) string
- func ClientPathEntityId(ri stereotypes.ApiRestInteface) string
- func ConvertoGMTToRFC3339(time string) string
- func CtxParamAsUint64(paramType ParamType, ctx *gin.Context, paramName string, requered bool) (value uint64, err error)
- func EntityIdPath(i stereotypes.ApiRestInteface) string
- func EntityPath(i stereotypes.ApiRestInteface) string
- func GetParam(c *gin.Context, key string) (string, bool)
- func HeaderParam(ctx *gin.Context, pathParamName string, requered bool) (string, error)
- func IsBlankString(string string) bool
- func IsEmptyString(string string) bool
- func IsValidMpan(mpan string) (bool, fault.TypedError)
- func IsValidMsisdn(msisdn string) (bool, fault.TypedError)
- func IsWhiteSpaceChar(char int32) bool
- func Launch(app stereotypes.Application)
- func ParseTime(paramValue string) (time.Time, error)
- func PathParam(ctx *gin.Context, paramName string, requered bool) (value string, err error)
- func PathParamAsString(ctx *gin.Context, pathParamName string, requered bool) (string, error)
- func PathParamAsTime(ctx *gin.Context, paramName string, requered bool) (time.Time, bool, error)
- func PathParamAsUint64(ctx *gin.Context, paramName string, requered bool) (value uint64, err error)
- func QueryParam(ctx *gin.Context, paramName string, requered bool) (value string, err error)
- func QueryParamAsTime(ctx *gin.Context, paramName string, requered bool) (time.Time, bool, error)
- func QueryParamAsUnint64(ctx *gin.Context, paramName string, requered bool) (value uint64, err error)
- func ReadLog(file string) (str string, err error)
- func StringIsBlank(val string) bool
- func StringIsEmpty(val string) bool
- func StringIsNotBlank(val string) bool
- func StringIsNotEmpty(val string) bool
- func ToString(value interface{}) string
- type Bool
- type MDC
- type Optional
- type ParamType
Constants ¶
View Source
const DATETIME_FORMAT_LAYOUT = "2006-01-02 15:04:05 +07:00"
View Source
const DATETIME_FORMAT_LAYOUT_GMT = "2006-01-02 15:04:05 GMT"
View Source
const DATETIME_PARSE_LAYOUT = time.RFC3339
const DATETIME_PARSE_LAYOUT = "2006-01-02T15:04:05Z07" const DATETIME_PARSE_LAYOUT = "2006-01-02T15:04:05"
View Source
const DATETIME_PARSE_LAYOUT_GWT = time.RFC3339
const DATETIME_PARSE_LAYOUT_GWT = "2006-01-02 15:04:05 +07:00"
Variables ¶
This section is empty.
Functions ¶
func ClientPathEntities ¶
func ClientPathEntities(ri stereotypes.ApiRestInteface) string
func ClientPathEntityId ¶
func ClientPathEntityId(ri stereotypes.ApiRestInteface) string
func ConvertoGMTToRFC3339 ¶
convert 2019-05-16 19:31:44 GMT+06:00 to 2019-05-16T19:31:44Z+06:00
func CtxParamAsUint64 ¶
func EntityIdPath ¶
func EntityIdPath(i stereotypes.ApiRestInteface) string
func EntityPath ¶
func EntityPath(i stereotypes.ApiRestInteface) string
func HeaderParam ¶
func IsBlankString ¶
func IsEmptyString ¶
func IsValidMpan ¶
func IsValidMpan(mpan string) (bool, fault.TypedError)
func IsValidMsisdn ¶
func IsValidMsisdn(msisdn string) ( bool, fault.TypedError, )
method check valid format msisdn if msisdn is valid then return true and err nil if msisdn is invalid return false and error struct
func IsWhiteSpaceChar ¶
func Launch ¶
func Launch(app stereotypes.Application)
func PathParamAsString ¶
func PathParamAsTime ¶
func PathParamAsUint64 ¶
func QueryParam ¶
func QueryParamAsTime ¶
func QueryParamAsUnint64 ¶
func StringIsBlank ¶
func StringIsNotBlank ¶
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.