console

package
v0.0.0-...-85e540a Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Components

type Components map[string]interface{}

type Console

type Console struct {
	HTTPServer       *http.Server
	StaticComponents Components
	Orderer          *orderer.Orderer
	Peers            []*peer.Peer
	// contains filtered or unexported fields
}

func New

func New(organizations []*organization.Organization, orderer *orderer.Orderer, peers []*peer.Peer, port int32, url_ string) (*Console, error)

func (*Console) GetComponent

func (c *Console) GetComponent(rw http.ResponseWriter, req *http.Request)

func (*Console) GetComponents

func (c *Console) GetComponents(rw http.ResponseWriter, req *http.Request)

func (*Console) GetHealth

func (c *Console) GetHealth(rw http.ResponseWriter, req *http.Request)

func (*Console) Port

func (c *Console) Port() int32

Port returns the port of the console.

func (*Console) Start

func (c *Console) Start() error

func (*Console) Stop

func (c *Console) Stop() error

func (*Console) URL

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

URL returns the URL of the console.

type Health

type Health struct {
}

type Identity

type Identity struct {
	ID          string `json:"id"`
	DisplayName string `json:"display_name"`
	Type        string `json:"type"`
	Certificate string `json:"cert"`
	PrivateKey  string `json:"private_key"`
	MSPID       string `json:"msp_id"`
	Wallet      string `json:"wallet"`
}

type Options

type Options struct {
	DefaultAuthority      string `json:"grpc.default_authority"`
	SSLTargetNameOverride string `json:"grpc.ssl_target_name_override"`
}

type Orderer

type Orderer struct {
	ID                string   `json:"id"`
	DisplayName       string   `json:"display_name"`
	Type              string   `json:"type"`
	APIURL            string   `json:"api_url"`
	APIOptions        *Options `json:"api_options"`
	OperationsURL     string   `json:"operations_url"`
	OperationsOptions *Options `json:"operations_options"`
	MSPID             string   `json:"msp_id"`
	Wallet            string   `json:"wallet"`
	Identity          string   `json:"identity"`
}

type Peer

type Peer struct {
	ID                string   `json:"id"`
	DisplayName       string   `json:"display_name"`
	Type              string   `json:"type"`
	APIURL            string   `json:"api_url"`
	APIOptions        *Options `json:"api_options"`
	ChaincodeURL      string   `json:"chaincode_url"`
	ChaincodeOptions  *Options `json:"chaincode_options"`
	OperationsURL     string   `json:"operations_url"`
	OperationsOptions *Options `json:"operations_options"`
	MSPID             string   `json:"msp_id"`
	Wallet            string   `json:"wallet"`
	Identity          string   `json:"identity"`
}

Jump to

Keyboard shortcuts

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