console

package
v0.0.19 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Console

type Console struct {
	// contains filtered or unexported fields
}

Console represents an instance of a console.

func New

func New(port int, curl string) (*Console, error)

New creates a new instance of a console.

func (*Console) EnableTLS

func (c *Console) EnableTLS(tls *identity.Identity) error

EnableTLS enables TLS for this console.

func (*Console) Port

func (c *Console) Port() int

Port returns the port of the console.

func (*Console) RegisterCA

func (c *Console) RegisterCA(ca *ca.CA)

RegisterCA registers the specified CA with the console.

func (*Console) RegisterOrderer

func (c *Console) RegisterOrderer(orderer *orderer.Orderer)

RegisterOrderer registers the specified orderer with the console.

func (*Console) RegisterOrganization

func (c *Console) RegisterOrganization(organization *organization.Organization)

RegisterOrganization registers the specified organization with the console.

func (*Console) RegisterPeer

func (c *Console) RegisterPeer(peer *peer.Peer)

RegisterPeer registers the specified peer with the console.

func (*Console) Start

func (c *Console) Start() error

Start starts the console.

func (*Console) Stop

func (c *Console) Stop() error

Stop stops the console.

func (*Console) URL

func (c *Console) URL() *url.URL

URL returns the URL of the console.

Jump to

Keyboard shortcuts

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