Documentation ¶
Index ¶
- func ApproveChaincodeDefinition(peers []*peer.Connection, o *orderer.Connection, channel string, ...) error
- func CommitChaincodeDefinition(peers []*peer.Connection, o *orderer.Connection, channel string, ...) error
- func CreateChannel(o *orderer.Connection, channel string, opts ...Option) error
- func EvaluateTransaction(peers []*peer.Connection, o *orderer.Connection, ...) ([]byte, error)
- func SubmitTransaction(peers []*peer.Connection, o *orderer.Connection, ...) ([]byte, error)
- func UpdateChannel(o *orderer.Connection, channel string, opts ...Option) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApproveChaincodeDefinition ¶
func ApproveChaincodeDefinition(peers []*peer.Connection, o *orderer.Connection, channel string, sequence int64, name string, version string, packageID string) error
ApproveChaincodeDefinition approves a chaincode definition on a channel.
func CommitChaincodeDefinition ¶
func CommitChaincodeDefinition(peers []*peer.Connection, o *orderer.Connection, channel string, sequence int64, name string, version string) error
CommitChaincodeDefinition commits a chaincode definition on a channel.
func CreateChannel ¶
func CreateChannel(o *orderer.Connection, channel string, opts ...Option) error
CreateChannel creates a new channel on the specified ordering service.
func EvaluateTransaction ¶
func EvaluateTransaction(peers []*peer.Connection, o *orderer.Connection, channel, chaincode, function string, args ...string) ([]byte, error)
EvaluateTransaction evaluates a transaction for a chaincode definition on a channel.
func SubmitTransaction ¶
func SubmitTransaction(peers []*peer.Connection, o *orderer.Connection, channel, chaincode, function string, args ...string) ([]byte, error)
SubmitTransaction submits a transaction for a chaincode definition on a channel.
func UpdateChannel ¶
func UpdateChannel(o *orderer.Connection, channel string, opts ...Option) error
UpdateChannel updates an existing channel on the specified ordering service.
Types ¶
type Option ¶
type Option func(*channelOperation) error
Option is a type representing an option for creating or updating a channel.
func AddAnchorPeer ¶
AddAnchorPeer adds the specified anchor peer to the channel.
func UsingIdentity ¶
UsingIdentity uses the specified identity to create or update the channel.
func UsingMSPID ¶
UsingMSPID uses the specified MSP ID to create or update the channel.
func WithCapabilityLevel ¶
WithCapabilityLevel set the specified capability level for the channel.