Documentation ¶
Index ¶
- func HandlePanicErr(err error)
- func ReadResponseBody(resp *http.Response, result interface{}) error
- func Request(header http.Header, body interface{}, uri, method string, ...) (*http.Response, error)
- type A
- type FindOptions
- func (fo *FindOptions) ToMongoCountOptions() *options.CountOptions
- func (fo *FindOptions) ToMongoFindOneAndDeleteOptions() *options.FindOneAndDeleteOptions
- func (fo *FindOptions) ToMongoFindOneAndReplaceOptions() *options.FindOneAndReplaceOptions
- func (fo *FindOptions) ToMongoFindOneAndUpdateOptions() *options.FindOneAndUpdateOptions
- func (fo *FindOptions) ToMongoFindOneOptions() *options.FindOneOptions
- func (fo *FindOptions) ToMongoFindOptions() *options.FindOptions
- type M
- type RequestByQuery
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 { Fields map[string]int `json:"fields"` Sort map[string]int `json:"sort,omitempty"` Skip int64 `json:"skip"` Limit int64 `json:"limit"` Locale *string `json:"locale,omitempty"` }
FindOptions
func (*FindOptions) ToMongoCountOptions ¶ added in v1.0.0
func (fo *FindOptions) ToMongoCountOptions() *options.CountOptions
ToMongoCountOptions
func (*FindOptions) ToMongoFindOneAndDeleteOptions ¶ added in v1.5.0
func (fo *FindOptions) ToMongoFindOneAndDeleteOptions() *options.FindOneAndDeleteOptions
ToMongoFindOneAndDeleteOptions
func (*FindOptions) ToMongoFindOneAndReplaceOptions ¶ added in v1.5.0
func (fo *FindOptions) ToMongoFindOneAndReplaceOptions() *options.FindOneAndReplaceOptions
ToMongoFindOneAndReplaceOptions
func (*FindOptions) ToMongoFindOneAndUpdateOptions ¶ added in v1.5.0
func (fo *FindOptions) ToMongoFindOneAndUpdateOptions() *options.FindOneAndUpdateOptions
ToMongoFindOneAndDeleteOptions
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.