channelparticipation

package
v0.0.0-...-9b7ba46 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChannelListMatcher

func ChannelListMatcher(list ChannelList, expectedChannels []string, systemChannel ...string)

func GenerateJoinRequest

func GenerateJoinRequest(url, channel string, blockBytes []byte) *http.Request

func Join

func Join(n *nwo.Network, o *nwo.Orderer, channel string, block *common.Block, expectedChannelInfo ChannelInfo)

func Remove

func Remove(n *nwo.Network, o *nwo.Orderer, channel string)

Types

type ChannelInfo

type ChannelInfo struct {
	Name              string `json:"name"`
	URL               string `json:"url"`
	Status            string `json:"status"`
	ConsensusRelation string `json:"consensusRelation"`
	Height            uint64 `json:"height"`
}

func ListOne

func ListOne(n *nwo.Network, o *nwo.Orderer, channel string) ChannelInfo

type ChannelInfoShort

type ChannelInfoShort struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

type ChannelList

type ChannelList struct {
	SystemChannel *ChannelInfoShort  `json:"systemChannel"`
	Channels      []ChannelInfoShort `json:"channels"`
}

func List

func List(n *nwo.Network, o *nwo.Orderer) ChannelList

Jump to

Keyboard shortcuts

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