Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlePanicErr ¶ added in v1.0.0
func HandlePanicErr(err error)
HandlePanicErr, handle error as panic
func ReadResponseBody ¶ added in v1.0.0
ReadResponseBody, read and convert body
Types ¶
type FindOptions ¶ added in v1.0.0
type FindOptions struct { Sort map[string]int `json:"sort,omitempty"` Skip int64 `json:"skip"` Limit int64 `json:"limit"` }
FindOptions
func (*FindOptions) ToMongoCountOptions ¶ added in v1.0.0
func (fo *FindOptions) ToMongoCountOptions() *options.CountOptions
ToMongoCountOptions
func (*FindOptions) ToMongoFindOneOptions ¶ added in v1.0.0
func (fo *FindOptions) ToMongoFindOneOptions() *options.FindOneOptions
ToMongoFindOneOptions
func (*FindOptions) ToMongoFindOptions ¶ added in v1.0.0
func (fo *FindOptions) ToMongoFindOptions() *options.FindOptions
ToMongoFindOptions
type RequestByQuery ¶ added in v0.8.0
type RequestByQuery struct { FindOptions FindOptions `json:"opts,omitempty"` Query map[string]interface{} `json:"query"` Count bool `json:"count"` }
RequestByQuery
func NewRequestByQuery ¶ added in v0.8.0
func NewRequestByQuery(queryStr string) (data *RequestByQuery, err error)
NewRequestByQuery, convert query string ?config={"opts":{"sort":{"name":1, "email": -1},"skip":5,"limit":10},"query":{"name":"Schulterglatze"}, "count":true}
Click to show internal directories.
Click to hide internal directories.