Documentation
¶
Index ¶
- Variables
- func GetCountQueryParameters(c *gin.Context) (*engine.Metadata, *map[string]interface{}, error)
- func GetSearchQueryParameters(c *gin.Context) (*datastore.QueryParams, *engine.Metadata, *map[string]interface{}, error)
- func MethodNotAllowed(c *gin.Context)
- func NotFound(c *gin.Context)
- func StatusOK(c *gin.Context)
- type Action
- type CountRequestParameters
- type SearchRequestParameters
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 GetCountQueryParameters ¶ added in v0.21.0
GetCountQueryParameters get all filtering parameters related to the db query
func GetSearchQueryParameters ¶ added in v0.21.0
func GetSearchQueryParameters(c *gin.Context) (*datastore.QueryParams, *engine.Metadata, *map[string]interface{}, error)
GetSearchQueryParameters 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 CountRequestParameters ¶ added in v0.21.0
type CountRequestParameters struct { // Custom conditions used for filtering the search results Conditions map[string]interface{} `json:"conditions" swaggertype:"object,string" example:"testColumn:testValue"` // Accepts a JSON object for embedding custom metadata, enabling arbitrary additional information to be associated with the resource Metadata engine.Metadata `json:"metadata" swaggertype:"object,string" example:"key:value,key2:value2"` }
CountRequestParameters is a struct for handling request parameters for count requests
type SearchRequestParameters ¶ added in v0.21.0
type SearchRequestParameters struct { // Custom conditions used for filtering the search results Conditions map[string]interface{} `json:"conditions" swaggertype:"object,string" example:"testColumn:testValue"` // Accepts a JSON object for embedding custom metadata, enabling arbitrary additional information to be associated with the resource Metadata engine.Metadata `json:"metadata" swaggertype:"object,string" example:"key:value,key2:value2"` // Pagination and sorting options to streamline data exploration and analysis QueryParams datastore.QueryParams `json:"params" swaggertype:"object,string" example:"page:1,page_size:10,order_by_field:created_at,order_by_direction:desc"` }
SearchRequestParameters is a struct for handling request parameters for search requests
Click to show internal directories.
Click to hide internal directories.