core

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PeerConnectionFSM

type PeerConnectionFSM struct {
	To  string
	FSM *fsm.FSM
}

PeerConnectionFSM example FSM for demonstration purposes.

func NewPeerConnectionFSM

func NewPeerConnectionFSM(to string) *PeerConnectionFSM

NewPeerConnectionFSM creates and returns a PeerConnectionFSM

type ServerAdmin

type ServerAdmin struct {
}

ServerAdmin implementation of the Admin service for the Peer

func NewAdminServer

func NewAdminServer() *ServerAdmin

NewAdminServer creates and returns a Admin service instance.

func (*ServerAdmin) GetModuleLogLevel

func (*ServerAdmin) GetModuleLogLevel(ctx context.Context, request *pb.LogLevelRequest) (*pb.LogLevelResponse, error)

GetModuleLogLevel gets the current logging level for the specified module TODO Modify the signature so as to remove the error return - it's always been nil

func (*ServerAdmin) GetStatus

GetStatus reports the status of the server

func (*ServerAdmin) RevertLogLevels

func (*ServerAdmin) RevertLogLevels(context.Context, *empty.Empty) (*empty.Empty, error)

RevertLogLevels reverts the log levels for all modules to the level defined at the end of peer startup.

func (*ServerAdmin) SetModuleLogLevel

func (*ServerAdmin) SetModuleLogLevel(ctx context.Context, request *pb.LogLevelRequest) (*pb.LogLevelResponse, error)

SetModuleLogLevel sets the logging level for the specified module

func (*ServerAdmin) StartServer

func (*ServerAdmin) StartServer(context.Context, *empty.Empty) (*pb.ServerStatus, error)

StartServer starts the server

Directories

Path Synopsis
shim
Package shim provides APIs for the chaincode to access its state variables, transaction context and call other chaincodes.
Package shim provides APIs for the chaincode to access its state variables, transaction context and call other chaincodes.
common
api
mocks
scc
cscc
Package cscc chaincode configer provides functions to manage configuration transactions as the network is being reconfigured.
Package cscc chaincode configer provides functions to manage configuration transactions as the network is being reconfigured.

Jump to

Keyboard shortcuts

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