Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶ added in v0.16.0
func NewHandler(appConfig *config.AppConfig, services *config.AppServices) (routes.BasicEndpointsFunc, routes.APIEndpointsFunc, routes.CallbackEndpointsFunc)
NewHandler creates the specific package routes
Types ¶
type NewTransaction ¶ added in v0.16.0
type NewTransaction struct { // Configuration of the transaction Config models.TransactionConfig `json:"config"` // 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"` }
NewTransaction is the model for creating a new transaction
type RecordTransaction ¶ added in v0.16.0
type RecordTransaction struct { // Hex of the transaction Hex string `json:"hex" example:"0100000002..."` // ReferenceID which is a ID of the draft transaction ReferenceID string `json:"reference_id" example:"b356f7fa00cd3f20cce6c21d704cd13e871d28d714a5ebd0532f5a0e0cde63f7"` // 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"` }
RecordTransaction is the model for recording a transaction
type UpdateTransaction ¶ added in v0.16.0
type UpdateTransaction struct { // Id of the transaction which is a hash of the transaction ID string `json:"id" example:"01d0d0067652f684c6acb3683763f353fce55f6496521c7d99e71e1d27e53f5c"` // 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"` }
UpdateTransaction is the model for updating a transaction
Click to show internal directories.
Click to hide internal directories.