Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FabProfile ¶
type FabProfile struct { Channel string `yaml:"channel" json:"channel" validate:"required"` Organization string `yaml:"organization" json:"organization" validate:"required"` User User `yaml:"user" json:"user" validate:"required"` Enpoint NodeEndpoint `yaml:"endpoint" json:"endpoint" validate:"required"` }
type FabricClient ¶
type FabricClient struct {
// contains filtered or unexported fields
}
func NewFabricClient ¶
func NewFabricClient(n *Network) (*FabricClient, error)
func (*FabricClient) Channel ¶
func (fabclient *FabricClient) Channel(channel string) *client.Network
func (*FabricClient) Close ¶
func (fabclient *FabricClient) Close()
type Network ¶
type Network struct { ID string `json:"id"` // network metadat.name Platform `json:"platform"` *FabProfile `json:"fabProfile,omitempty"` }
type NodeEndpoint ¶
type NodeEndpoint struct { URL string `yaml:"url,omitempty" json:"url,omitempty"` TLSCACerts `yaml:"tlsCACerts,omitempty" json:"tlsCACerts,omitempty"` }
type TLSCACerts ¶
type TLSCACerts struct {
Pem string `yaml:"pem,omitempty" json:"pem,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.