Documentation ¶
Index ¶
- Variables
- func CreaterTestForHTTP(t *testing.T, routeURL, requestURL string, handler gin.HandlerFunc, ...) int
- func DatetimeOfDate(datetime time.Time) time.Time
- func IsHoliday(t time.Time) bool
- func Now() time.Time
- func TokyoTime(datetime time.Time) time.Time
- type Async
- type BsonCreator
- func (bc BsonCreator) Append(ms ...bson.M) BsonCreator
- func (bc BsonCreator) GraphLookup(from, startWith, connectFromField, connectToField, as, lang string) BsonCreator
- func (bc BsonCreator) Lookup(from, localField, foreignField, as string) BsonCreator
- func (bc BsonCreator) LookupWithUnwind(from, localField, foreignField, as, lang string) BsonCreator
- type DrawPoint
- type ParallelCallback
- type PlanDraw
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //Route - The engine of gin Route = gin.Default() // V1 version 1 group V1 *gin.RouterGroup // V2 version 2 group V2 *gin.RouterGroup )
Functions ¶
func CreaterTestForHTTP ¶
func CreaterTestForHTTP(t *testing.T, routeURL, requestURL string, handler gin.HandlerFunc, models interface{}) int
CreaterTestForHTTP for httptest, return statusCode
Types ¶
type Async ¶
type Async struct {
// contains filtered or unexported fields
}
Async -
func (Async) Parallel ¶
func (async Async) Parallel(tasks ParallelCallback)
Parallel - execute function safely for gin
type BsonCreator ¶
BsonCreator is a bson creator (without pointer)
func (BsonCreator) Append ¶
func (bc BsonCreator) Append(ms ...bson.M) BsonCreator
Append the slice of bson.M
func (BsonCreator) GraphLookup ¶
func (bc BsonCreator) GraphLookup(from, startWith, connectFromField, connectToField, as, lang string) BsonCreator
GraphLookup Performs a recursive search on a collection, with options for restricting the search by recursion depth and query filter.
func (BsonCreator) Lookup ¶
func (bc BsonCreator) Lookup(from, localField, foreignField, as string) BsonCreator
Lookup without unwind will find a slice document (array)
func (BsonCreator) LookupWithUnwind ¶
func (bc BsonCreator) LookupWithUnwind(from, localField, foreignField, as, lang string) BsonCreator
LookupWithUnwind will find single document, not a slice
type ParallelCallback ¶
ParallelCallback -
type PlanDraw ¶
type PlanDraw struct {
// contains filtered or unexported fields
}
PlanDraw -
func NewPlanDraw ¶
NewPlanDraw make a draw with bacground image name
func (*PlanDraw) DrawString ¶
DrawString -
Click to show internal directories.
Click to hide internal directories.