Documentation ¶
Index ¶
- Variables
- func DashedCase(st string) string
- func IsAnyDate(data string) bool
- func IsDate1(data string) bool
- func IsDate2(data string) bool
- func IsDate3(data string) bool
- func IsDate4(data string) bool
- func LoadFile(filePath string, out interface{}) error
- func ParseDate(data string) (time.Time, error)
- func Transform(in interface{}, out interface{}) error
- type A
- type Filter
- type IApp
- type Include
- type IncludeItem
- type M
- type OperationName
- type Order
- type Stats
- type WeStackError
- type Where
Constants ¶
This section is empty.
Variables ¶
View Source
var RegexpIdEntire = regexp.MustCompile("^([0-9a-f]{24})$")
View Source
var RegexpIpStart = regexp.MustCompile("^[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}")
Functions ¶
func DashedCase ¶
Types ¶
type A ¶ added in v1.2.36
type A []M
func AFromGenericSlice ¶ added in v1.2.93
func AFromGenericSlice(in *[]interface{}) *A
AFromGenericSlice converts a generic slice of M to a *A This is used to convert the result of a query to a *A Returns nil if in is nil
func AFromPrimitiveSlice ¶ added in v1.2.93
AFromPrimitiveSlice converts a primitive slice of primivite.M or M to a *A This is used to convert the result of a query to a *A Returns nil if in is nil
type Include ¶ added in v1.2.37
type Include []IncludeItem
type IncludeItem ¶ added in v1.2.73
type M ¶ added in v1.2.36
type M map[string]interface{}
var ( NilMap M = M{"<wst.NilMap>": 1} DashedCaseRegex = regexp.MustCompile("([A-Z])") )
type OperationName ¶ added in v1.5.40
type OperationName string
const ( OperationNameFindById OperationName = "findById" OperationNameFindMany OperationName = "findMany" OperationNameCount OperationName = "count" OperationNameCreate OperationName = "create" OperationNameUpdateAttributes OperationName = "updateAttributes" )
type WeStackError ¶ added in v1.4.1
type WeStackError struct { FiberError *fiber.Error Code string Details fiber.Map Name string // contains filtered or unexported fields }
func CreateError ¶ added in v1.4.1
func (*WeStackError) Error ¶ added in v1.4.1
func (err *WeStackError) Error() string
Click to show internal directories.
Click to hide internal directories.