configext

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CaServerTlsCert = "tls-server.crt"
	RootCert        = "ca.crt"
	SignerTlsCert   = "server.crt"
	SignerTlsKey    = "server.key"
	SignerMspCert   = "signer.crt"
	SignerMspKey    = "signer.key"

	MspTypeAdmin   = "admin"
	MspTypeClient  = "client"
	MspTypePeer    = "peer"
	MspTypeOrderer = "orderer"

	//api-settings
	OrdererMaxChannels uint64 = 100
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Name          string
	Consortium    string
	Organizations []ChannelOrganization
	Capabilities  []string
	Policies      map[string]configtx.Policy
}

func (*Application) GetCfgTxApplication

func (c *Application) GetCfgTxApplication() configtx.Application

func (*Application) GetSigners

func (c *Application) GetSigners() []Organization

type ChannelOrganization

type ChannelOrganization struct {
	*Organization
	Peers    []Peer
	Policies map[string]configtx.Policy
}

func (*ChannelOrganization) GetCfgTxName

func (co *ChannelOrganization) GetCfgTxName() string

type Consortia

type Consortia struct {
	Name          string
	Organizations []ConsortiaOrganization
}

type ConsortiaOrganization

type ConsortiaOrganization struct {
	*Organization
	Polices map[string]configtx.Policy
}

type Order

type Order struct {
	Host              string
	ListenPort        int
	ClientTLSCertPath string
	ServerTLSCertPath string
}

type Orderer

type Orderer struct {
	Name            string
	Organizations   []OrdererOrganization
	MaxChannels     uint64
	Policies        map[string]configtx.Policy
	BatchTimeout    time.Duration
	BatchSize       *orderertx.BatchSize
	Capabilities    []string
	EtcdRaftOptions *orderertx.EtcdRaftOptions
	Consortiums     []Consortia
}

func (*Orderer) GetCfgTxConsortiums

func (o *Orderer) GetCfgTxConsortiums() []configtx.Consortium

func (*Orderer) GetCfgTxEtcdRaftOrderer

func (o *Orderer) GetCfgTxEtcdRaftOrderer() configtx.Orderer

func (*Orderer) GetSigners

func (c *Orderer) GetSigners() []Organization

type OrdererOrganization

type OrdererOrganization struct {
	*Organization
	Orders   []Order
	Policies map[string]configtx.Policy
}

func (*OrdererOrganization) GetCfgTxName

func (oo *OrdererOrganization) GetCfgTxName() string

type Organization

type Organization struct {
	Name       string
	CommonName string
	MspDir     string
	TlsDir     string
}

func (*Organization) GetSignIdentity

func (org *Organization) GetSignIdentity() *configtx.SigningIdentity

type Peer

type Peer struct {
	Host       string
	ListenPort int
}

Jump to

Keyboard shortcuts

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