Documentation ¶
Index ¶
- Variables
- func AesCBCDncrypt(rawData string, key []byte) (string, error)
- func AesCBCEncrypt(rawData, key []byte) (string, error)
- func Cors(ctx iris.Context)
- func GetLogFile() *os.File
- func GetModelDBFieldNames(module interface{}) (result map[string]string, err error)
- func LoadEnv() (err error)
- func LogCenter() *logrus.Logger
- func Md5Hash(source string) string
- func NewGuid() (result uuid.UUID)
- func NewGuidString() (result string)
- func NewPprof() context.Handler
- func ReadBody(ctx iris.Context, jsonEncoder jsoniter.API, vModel interface_core.IViewModel) (err error)
- func SHA1(data string) string
- type DateTime
- type ES_LogCenter
- type QueryCondition
- type UUIDTransformer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ENV_LOADED bool = false IS_DEV_MODE bool = false USE_PPROF bool = false APP_NAME string = "" APP_HOST string = "" APP_PORT int = 0 )
View Source
var LogCenterSingle sync.Once
Functions ¶
func AesCBCEncrypt ¶
func GetModelDBFieldNames ¶
通过反射转换,反向通过字段Tag信息查找字段名,然后转换成实际数据库字段名称
func NewGuidString ¶
func NewGuidString() (result string)
func NewPprof ¶
New returns a new pprof (profile, cmdline, symbol, goroutine, heap, threadcreate, debug/block) Middleware. Note: Route MUST have the last named parameter wildcard named '{action:path}'
func ReadBody ¶
func ReadBody(ctx iris.Context, jsonEncoder jsoniter.API, vModel interface_core.IViewModel) (err error)
Types ¶
type DateTime ¶
func (DateTime) MarshalJSON ¶
type ES_LogCenter ¶
var LogCenterInstance *ES_LogCenter
func (*ES_LogCenter) Init ¶
func (m *ES_LogCenter) Init()
type QueryCondition ¶
type QueryCondition struct { Page int `json:"page"` Size int `json:"size"` Sort string `json:"sort"` Order string `json:"order"` StartDate time.Time `json:"startDate"` EndDate time.Time `json:"endDate"` }
func NewQueryCondition ¶
func NewQueryCondition() *QueryCondition
Click to show internal directories.
Click to hide internal directories.