Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadTxConfig = errors.New("bad transaction config supplied")
ErrBadTxConfig is when the transaction config specified is not valid
View Source
var ErrTxConfigNotFound = errors.New("transaction config not found")
ErrTxConfigNotFound is when the transaction config is not found in request body
View Source
var ErrXpubNotFound = errors.New("xpub not found")
ErrXpubNotFound is when the xpub is not found (in Auth Header)
Functions ¶
func GetQueryParameters ¶
func GetQueryParameters(c *gin.Context) (*datastore.QueryParams, *engine.Metadata, *map[string]interface{}, error)
GetQueryParameters get all filtering parameters related to the db query
func MethodNotAllowed ¶
MethodNotAllowed handles all 405 requests
Types ¶
type Action ¶
type Action struct { AppConfig *config.AppConfig Services *config.AppServices }
Action is the configuration for the actions and related services
type RequestParameters ¶ added in v0.16.0
type RequestParameters struct { Conditions map[string]interface{} `json:"conditions"` Metadata engine.Metadata `json:"metadata"` QueryParams datastore.QueryParams `json:"query_params"` }
RequestParameters is a struct for handling basic request parameters
Click to show internal directories.
Click to hide internal directories.