Documentation ¶
Index ¶
- func AddAssetQuantityHandlerFn(ctx context.CoreContext, cdc *wire.Codec, kb keys.Keybase) func(http.ResponseWriter, *http.Request)
- func AddMaterialsHandlerFn(ctx context.CoreContext, cdc *wire.Codec, kb keys.Keybase) func(http.ResponseWriter, *http.Request)
- func AnswerProposalHandlerFn(ctx context.CoreContext, cdc *wire.Codec, kb keys.Keybase) func(http.ResponseWriter, *http.Request)
- func CreateAssetHandlerFn(ctx context.CoreContext, cdc *wire.Codec, kb keys.Keybase) func(http.ResponseWriter, *http.Request)
- func CreateProposalHandlerFn(ctx context.CoreContext, cdc *wire.Codec, kb keys.Keybase) func(http.ResponseWriter, *http.Request)
- func FinalizeHandlerFn(ctx context.CoreContext, cdc *wire.Codec, kb keys.Keybase) func(http.ResponseWriter, *http.Request)
- func HistortyHandlerFn(ctx context.CoreContext, storeName string, cdc *wire.Codec) func(http.ResponseWriter, *http.Request)
- func QueryAccountAssetsHandlerFn(ctx context.CoreContext, storeName string, cdc *wire.Codec, kb keys.Keybase) func(http.ResponseWriter, *http.Request)
- func QueryAccountProposalsHandlerFn(ctx context.CoreContext, storeName string, cdc *wire.Codec, kb keys.Keybase) func(http.ResponseWriter, *http.Request)
- func QueryAssetChildrensHandlerFn(ctx context.CoreContext, storeName string, cdc *wire.Codec, kb keys.Keybase) func(http.ResponseWriter, *http.Request)
- func QueryAssetRequestHandlerFn(ctx context.CoreContext, storeName string, cdc *wire.Codec) http.HandlerFunc
- func QueryInventoryHandlerFn(ctx context.CoreContext, storeName string, cdc *wire.Codec, kb keys.Keybase) func(http.ResponseWriter, *http.Request)
- func QueryProposalsHandlerFn(ctx context.CoreContext, storeName string, cdc *wire.Codec, kb keys.Keybase) func(http.ResponseWriter, *http.Request)
- func QueryReporterAssetsHandlerFn(ctx context.CoreContext, storeName string, cdc *wire.Codec, kb keys.Keybase) func(http.ResponseWriter, *http.Request)
- func RegisterRoutes(ctx context.CoreContext, r *mux.Router, cdc *wire.Codec, kb keys.Keybase, ...)
- func RevokeReporterHandlerFn(ctx context.CoreContext, cdc *wire.Codec, kb keys.Keybase) func(http.ResponseWriter, *http.Request)
- func SubtractQuantityBodyHandlerFn(ctx context.CoreContext, cdc *wire.Codec, kb keys.Keybase) func(http.ResponseWriter, *http.Request)
- func UpdateAttributeHandlerFn(ctx context.CoreContext, cdc *wire.Codec, kb keys.Keybase) func(http.ResponseWriter, *http.Request)
- type AssetOutput
- type ProposalOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAssetQuantityHandlerFn ¶
func AddAssetQuantityHandlerFn(ctx context.CoreContext, cdc *wire.Codec, kb keys.Keybase) func(http.ResponseWriter, *http.Request)
func AddMaterialsHandlerFn ¶ added in v0.2.1
func AddMaterialsHandlerFn(ctx context.CoreContext, cdc *wire.Codec, kb keys.Keybase) func(http.ResponseWriter, *http.Request)
AddMaterialsHandlerFn REST handler
func AnswerProposalHandlerFn ¶ added in v0.1.0
func AnswerProposalHandlerFn(ctx context.CoreContext, cdc *wire.Codec, kb keys.Keybase) func(http.ResponseWriter, *http.Request)
AnswerProposalHandlerFn
func CreateAssetHandlerFn ¶
func CreateAssetHandlerFn(ctx context.CoreContext, cdc *wire.Codec, kb keys.Keybase) func(http.ResponseWriter, *http.Request)
Create asset REST handler
func CreateProposalHandlerFn ¶ added in v0.1.0
func CreateProposalHandlerFn(ctx context.CoreContext, cdc *wire.Codec, kb keys.Keybase) func(http.ResponseWriter, *http.Request)
CreateProposalHandlerFn
func FinalizeHandlerFn ¶ added in v0.2.1
func FinalizeHandlerFn(ctx context.CoreContext, cdc *wire.Codec, kb keys.Keybase) func(http.ResponseWriter, *http.Request)
func HistortyHandlerFn ¶ added in v0.22.0
func HistortyHandlerFn(ctx context.CoreContext, storeName string, cdc *wire.Codec) func(http.ResponseWriter, *http.Request)
func QueryAccountAssetsHandlerFn ¶ added in v0.9.0
func QueryAccountProposalsHandlerFn ¶ added in v0.21.0
func QueryAssetChildrensHandlerFn ¶ added in v0.20.0
func QueryAssetRequestHandlerFn ¶
func QueryAssetRequestHandlerFn(ctx context.CoreContext, storeName string, cdc *wire.Codec) http.HandlerFunc
get key REST handler
func QueryInventoryHandlerFn ¶ added in v0.21.0
func QueryProposalsHandlerFn ¶ added in v0.20.0
func QueryReporterAssetsHandlerFn ¶ added in v0.21.0
func RegisterRoutes ¶
func RegisterRoutes(ctx context.CoreContext, r *mux.Router, cdc *wire.Codec, kb keys.Keybase, storeName string)
resgister REST routes
func RevokeReporterHandlerFn ¶ added in v0.2.2
func RevokeReporterHandlerFn(ctx context.CoreContext, cdc *wire.Codec, kb keys.Keybase) func(http.ResponseWriter, *http.Request)
func SubtractQuantityBodyHandlerFn ¶
func SubtractQuantityBodyHandlerFn(ctx context.CoreContext, cdc *wire.Codec, kb keys.Keybase) func(http.ResponseWriter, *http.Request)
func UpdateAttributeHandlerFn ¶
func UpdateAttributeHandlerFn(ctx context.CoreContext, cdc *wire.Codec, kb keys.Keybase) func(http.ResponseWriter, *http.Request)
Types ¶
type AssetOutput ¶ added in v0.22.0
type ProposalOutput ¶ added in v0.20.0
type ProposalOutput struct { Role asset.ProposalRole `json:"role"` // The role assigned to the recipient Status asset.ProposalStatus `json:"status"` // The response of the recipient Properties []string `json:"properties"` // The asset's attributes name that the recipient is authorized to update Issuer string `json:"issuer"` // The proposal issuer Recipient string `json:"recipient"` // The recipient of the proposal }
Click to show internal directories.
Click to hide internal directories.