gateway

package
v0.0.0-...-d863974 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commit

func Commit(c *gin.Context)

Commit @Router /fabric/transact/commit [post] @Produce json @Accept x-www-form-urlencoded @Param orderer formData string true "json data to specify orderer" @Param transaction formData string true "serialized signed proposalResponses as envelop protobuf with hex format" @Success 200 {object} model.TxResult

func CreateProposal

func CreateProposal(c *gin.Context)

CreateProposal @Router /fabric/create-proposal [post] @Produce json @Accept x-www-form-urlencoded @Param creator formData string true "Hex-encoded creator bytes" @Param channel formData string true "Fabric channel name" @Param chaincode formData string true "Fabric chaincode name" @Param args formData string true "Fabric chaincode calling args, string array as JSON" @Param transient formData string false "JSON format, like map[string]string" @Success 200 {object} model.CreateProposalResult

func CreateUnSignedTx

func CreateUnSignedTx(proposal *peer.Proposal, responses []*peer.ProposalResponse) ([]byte, error)

func PingFabric

func PingFabric(c *gin.Context)

PingFabric @Router /fabric/ping [post] @Produce text/plain @Accept x-www-form-urlencoded @Param address formData string true "endpoint like grpc(s)://\<fqdn\> or \<fqdn\>" @Param certificate formData string true "Certificate in PEM format. should be in hex format after translation to solve linebreak issue" @Param ssl-target-name-override formData string true "pseudo endpoint \<fqdn\>" @Success 200 {string} string pong @Failure 400 {string} string Bad request

func ProcessProposal

func ProcessProposal(c *gin.Context)

ProcessProposal @Router /fabric/transact/process-proposal [post] @Produce json @Accept x-www-form-urlencoded @Param endorsers formData string true "json data to specify endorsers" @Param signed-proposal formData string true "Hex-encoded and serialized signed-proposal protobuf" @Param proposal formData string true "Hex-encoded and serialized proposal protobuf" @Success 200 {object} model.ProposalResponseResult

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL