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.AdminEndpointsFunc
NewHandler creates the specific package routes
Types ¶
type CreatePaymail ¶ added in v0.16.0
type CreatePaymail struct { // 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"` // The xpub with which the paymail is associated Key string `json:"key" example:"xpub661MyMwAqRbcGpZVrSHU..."` // The paymail address Address string `json:"address" example:"test@spv-wallet.com"` // The public name of the paymail PublicName string `json:"public_name" example:"Test"` // The avatar of the paymail (url address) Avatar string `json:"avatar" example:"https://example.com/avatar.png"` }
CreatePaymail is the model for creating a paymail
type CreateXpub ¶ added in v0.16.0
type CreateXpub struct { // 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"` // The xpub key Key string `json:"key" example:"xpub661MyMwAqRbcGpZVrSHU..."` }
CreateXpub is the model for creating an xpub
type PaymailAddress ¶ added in v0.16.0
type PaymailAddress struct { // The paymail address Address string `json:"address" example:"test@spv-wallet.com"` }
PaymailAddress is the model containing only paymail address used for getting and deleting paymail address
type RecordTransaction ¶ added in v0.16.0
type RecordTransaction struct { // The transaction hex Hex string `json:"hex" example:"0100000002..."` }
RecordTransaction is the model for recording a transaction
type UpdateContact ¶ added in v0.28.0
type UpdateContact struct { // 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"` // New name for the contact FullName string `json:"fullName" example:"John Doe"` }
UpdateContact is the model for updating a contact
Click to show internal directories.
Click to hide internal directories.