Documentation
¶
Index ¶
- Variables
- func InstanceDB(dbTable string, selector ...int) (dbInstance *database, err error)
- func InstanceRd(rPoT *RdPoT) (rdInstance *rd, err error)
- func New() *module
- func NewDatabase() *database
- func NewI18N() *i18n
- func NewInitialize() *initialize
- func NewRedis() *rd
- func Sd(ctx *gin.Context) *sd
- func SdInstance() gin.HandlerFunc
- type File
- type Mail
- type MailParamsPoT
- type MailPoT
- type RdPoT
- type RedisPoT
- type Token
- type TokenPoT
- type Utils
- func (util *Utils) IntRand(min, max int) int
- func (util *Utils) InterfaceToStringInMap(data map[interface{}]interface{}) (toMap map[string]interface{})
- func (util *Utils) InterfaceToStruct(data map[interface{}]interface{}, res interface{}) (err error)
- func (util *Utils) JsonToMap(data []byte) (toMap map[string]interface{})
- func (util *Utils) MapToStruct(src interface{}, data interface{}) (err error)
- func (util *Utils) SetTimeLocation(toTime string) (*time.Location, error)
- func (util *Utils) StrContains(str string, src ...interface{}) (ok bool, err error)
- func (util *Utils) StructToMap(data interface{}) (res *gin.H, err error)
- type YuwInitialize
Constants ¶
This section is empty.
Variables ¶
View Source
var (
I *initialize = nil
)
View Source
var (
Translated *i18n
)
Functions ¶
func InstanceDB ¶
func InstanceRd ¶
func NewDatabase ¶
func NewDatabase() *database
func NewInitialize ¶
func NewInitialize() *initialize
func SdInstance ¶
func SdInstance() gin.HandlerFunc
Types ¶
type Mail ¶
type Mail struct {
// contains filtered or unexported fields
}
func (*Mail) Send ¶
func (mail *Mail) Send(mpPoT []*MailParamsPoT) (err error)
type Utils ¶
type Utils struct { }
func (*Utils) InterfaceToStringInMap ¶
func (*Utils) InterfaceToStruct ¶
func (*Utils) MapToStruct ¶
func (*Utils) SetTimeLocation ¶
func (*Utils) StrContains ¶
Click to show internal directories.
Click to hide internal directories.