Documentation
¶
Index ¶
Constants ¶
View Source
const ( APIRoute = "/api/poi/v1" // ParameterBlockID is used to identify a block by its ID. ParameterBlockID = "blockID" RouteCreateProof = "/create/:" + ParameterBlockID RouteValidateProof = "/validate" )
Variables ¶
View Source
var (
Component *app.Component
)
View Source
var ParamsRestAPI = &ParametersRestAPI{}
Functions ¶
Types ¶
type ParametersRestAPI ¶
type ParametersRestAPI struct { // BindAddress defines the bind address on which the POI HTTP server listens. BindAddress string `default:"localhost:9687" usage:"the bind address on which the POI HTTP server listens"` // AdvertiseAddress defines the address of the POI HTTP server which is advertised to the INX Server (optional). AdvertiseAddress string `default:"" usage:"the address of the POI HTTP server which is advertised to the INX Server (optional)"` // DebugRequestLoggerEnabled defines whether the debug logging for requests should be enabled DebugRequestLoggerEnabled bool `default:"false" usage:"whether the debug logging for requests should be enabled"` }
ParametersRestAPI contains the definition of the parameters used by the POI HTTP server.
type ProofRequestAndResponse ¶
type ValidateProofResponse ¶
type ValidateProofResponse struct {
Valid bool `json:"valid"`
}
Click to show internal directories.
Click to hide internal directories.