Documentation ¶
Index ¶
- func ContainKey(m map[string]interface{}, key string) bool
- func ContainKeyCaseInsensitive(m map[string]interface{}, key string) bool
- func Contains(array []string, ele string) bool
- func ConvertDbVals(tp string, bs []byte) interface{}
- func ConvertStrToDate(val string) time.Time
- func ConvertStringToMap(evalStr string) map[string]string
- func ConvertStructureAppendMap(pointer interface{}, m map[string]interface{})
- func ConvertStructureToMap(pointer interface{}) map[string]interface{}
- func ConvertToFloat(i interface{}) float64
- func ConvertToInt(i interface{}) int64
- func ConvertToString(i interface{}) string
- func ConvertValueToRequestType(val string, tp string) interface{}
- func EnabledLog(enabled bool)
- func FromJson(data []byte, v interface{}) error
- func IsEmpty(i interface{}) bool
- func IsNotEmpty(i interface{}) bool
- func MapToStructure(m interface{}, rawVal interface{}) error
- func OperatorEval(operator string, vc string, realV string) bool
- func SubStr(source string, start int, end int) string
- func ThrowRuntime(err error)
- func ToJson(obj interface{}) ([]byte, error)
- func ToJsonString(obj interface{}) string
- type Build
- type CacheManager
- type DefaultCacheManager
- func (this *DefaultCacheManager) Clear() int
- func (this *DefaultCacheManager) ClearKeyStart(kre string) int
- func (this *DefaultCacheManager) Contain(k string) bool
- func (this *DefaultCacheManager) Get(k string) []byte
- func (this *DefaultCacheManager) GetKeyStart(kre string) map[string]interface{}
- func (this *DefaultCacheManager) Put(k string, bs []byte, seconds int64)
- func (this *DefaultCacheManager) Remove(k string)
- type Ds
- type EL
- type Gdbc
- type Https
- func (https *Https) Auth(authType string, credentials string) *Https
- func (https *Https) BasicAuth(credentials string) *Https
- func (https *Https) Body(body interface{}) *Https
- func (https *Https) ConnectTimeout(connectTimeout time.Duration) *Https
- func (https *Https) Execute() error
- func (https *Https) Form() *Https
- func (https *Https) GetBodyBytes() []byte
- func (https *Https) GetBodyString() string
- func (https *Https) GetBodyTo(writer io.Writer) int64
- func (https *Https) GetBodyTo1()
- func (https *Https) GetBodyToFile(file *os.File)
- func (https *Https) Header(name string, value string) *Https
- func (https *Https) Json() *Https
- func (https *Https) Method(method string) *Https
- func (https *Https) Multipart() *Https
- func (https *Https) Param(name string, value string) *Https
- func (https *Https) RWTimeout(rwTimeout time.Duration) *Https
- func (https *Https) UpFile(upFiles ...*UpFile) *Https
- type Pairs
- type Rst
- type Sml
- type SmlEL
- type SmlParam
- type SqlTemplate
- type UpFile
- type Urls
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainKey ¶
func ConvertDbVals ¶
func ConvertStrToDate ¶
func ConvertStringToMap ¶
func ConvertStructureAppendMap ¶
func ConvertStructureAppendMap(pointer interface{}, m map[string]interface{})
func ConvertStructureToMap ¶
func ConvertStructureToMap(pointer interface{}) map[string]interface{}
func ConvertToFloat ¶
func ConvertToFloat(i interface{}) float64
func ConvertToInt ¶
func ConvertToInt(i interface{}) int64
func ConvertToString ¶
func ConvertToString(i interface{}) string
func EnabledLog ¶
func EnabledLog(enabled bool)
func IsNotEmpty ¶
func IsNotEmpty(i interface{}) bool
func MapToStructure ¶
func MapToStructure(m interface{}, rawVal interface{}) error
func ThrowRuntime ¶
func ThrowRuntime(err error)
func ToJsonString ¶
func ToJsonString(obj interface{}) string
Types ¶
type CacheManager ¶
type DefaultCacheManager ¶
func NewDefaultCacheManager ¶
func NewDefaultCacheManager() *DefaultCacheManager
func (*DefaultCacheManager) Clear ¶
func (this *DefaultCacheManager) Clear() int
func (*DefaultCacheManager) ClearKeyStart ¶
func (this *DefaultCacheManager) ClearKeyStart(kre string) int
func (*DefaultCacheManager) Contain ¶
func (this *DefaultCacheManager) Contain(k string) bool
func (*DefaultCacheManager) Get ¶
func (this *DefaultCacheManager) Get(k string) []byte
func (*DefaultCacheManager) GetKeyStart ¶
func (this *DefaultCacheManager) GetKeyStart(kre string) map[string]interface{}
func (*DefaultCacheManager) Put ¶
func (this *DefaultCacheManager) Put(k string, bs []byte, seconds int64)
func (*DefaultCacheManager) Remove ¶
func (this *DefaultCacheManager) Remove(k string)
type Https ¶
func NewGetHttps ¶
func NewPostBodyHttps ¶
func NewPostFormHttps ¶
func (*Https) ConnectTimeout ¶
func (*Https) GetBodyBytes ¶
func (*Https) GetBodyString ¶
func (*Https) GetBodyTo1 ¶
func (https *Https) GetBodyTo1()
type Sml ¶
func (*Sml) Cache ¶
func (this *Sml) Cache(cm CacheManager) *Sml
func (*Sml) GetSqlTemplate ¶
func (this *Sml) GetSqlTemplate(ifId string) (*SqlTemplate, error)
type SqlTemplate ¶
type SqlTemplate struct { Id string Mainsql string ConditionInfo string RebuildInfo string CacheMin int Descr string DbId string UpdateTime time.Time SmlParams []*SmlParam Rebuild *Build }
func (*SqlTemplate) GetMap ¶
func (this *SqlTemplate) GetMap() map[string]interface{}
func (*SqlTemplate) Init ¶
func (this *SqlTemplate) Init()
func (*SqlTemplate) ReinitParam ¶
func (this *SqlTemplate) ReinitParam(params map[string]string)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.