Documentation ¶
Index ¶
- Variables
- func CreateDefaultMongoRegistry() *bsoncodec.Registry
- func DashedCase(st string) string
- func GetTypedItem[T any](m *M, path string) T
- func GetTypedList[T any](m *M, path string) []T
- func IsAnyDate(data string) bool
- func IsDate1(data string) bool
- func IsDate2(data string) bool
- func IsDate3(data string) (bool, []string)
- 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 AggregationStage
- type BsonOptions
- type Fields
- type Filter
- type IApp
- type ILogger
- type Include
- type IncludeItem
- type M
- type OperationName
- type Order
- type Stats
- type SwaggerHelper
- type WeStackError
- type Where
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NilMap = M{"<wst.NilMap>": 1} DashedCaseRegex = regexp.MustCompile("([A-Z])") )
View Source
var NilBytes = []byte{'n', 'u', 'l', 'l'}
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 CreateDefaultMongoRegistry ¶ added in v1.7.2
func DashedCase ¶
func GetTypedItem ¶ added in v1.8.0
func GetTypedList ¶ added in v1.8.0
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 primitive.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
func (*A) UnmarshalEasyJSON ¶ added in v1.7.2
type AggregationStage ¶ added in v1.6.5
type AggregationStage M
type BsonOptions ¶ added in v1.5.47
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{}
func (*M) GetBoolean ¶ added in v1.8.0
func (*M) MarshalEasyJSON ¶ added in v1.5.47
func (*M) UnmarshalEasyJSON ¶ added in v1.6.0
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" OperationNameUpdateById OperationName = "updateById" OperationNameUpdateMany OperationName = "updateMany" OperationNameDeleteById OperationName = "deleteById" OperationNameDeleteMany OperationName = "deleteMany" )
type SwaggerHelper ¶ added in v1.8.0
type SwaggerHelper interface { // GetOpenAPI returns the OpenAPI specification as a map, or an error if it fails GetOpenAPI() (M, error) // CreateOpenAPI creates a new OpenAPI specification and saves it to disk, or returns an error if it fails CreateOpenAPI() error // AddPathSpec adds a path specification to the OpenAPI specification AddPathSpec(path string, verb string, verbSpec M) // Dump dumps the OpenAPI specification to disk, or returns an error if it fails Dump() error }
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 CreateError(fiberError *fiber.Error, code string, details fiber.Map, name string) *WeStackError
func (*WeStackError) Error ¶ added in v1.4.1
func (err *WeStackError) Error() string
Click to show internal directories.
Click to hide internal directories.