internal

package
v0.0.0-...-9fb8918 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadTLSConfig

func LoadTLSConfig(isserver bool, key, cert, root []byte) (*tls.Config, error)

LoadTLSConfig loads the TLS configuration for the chaincode

func NewClientConn

func NewClientConn(
	address string,
	tlsConf *tls.Config,
	kaOpts keepalive.ClientParameters,
) (*grpc.ClientConn, error)

NewClientConn ...

func NewRegisterClient

func NewRegisterClient(conn *grpc.ClientConn) (peerpb.ChaincodeSupport_RegisterClient, error)

NewRegisterClient ...

Types

type Config

type Config struct {
	ChaincodeName string
	TLS           *tls.Config
	KaOpts        keepalive.ClientParameters
}

Config contains chaincode's configuration

func LoadConfig

func LoadConfig() (Config, error)

LoadConfig loads the chaincode configuration

type Server

type Server struct {
	Listener net.Listener
	Server   *grpc.Server
}

Server abstracts grpc service properties

func NewServer

func NewServer(
	address string,
	tlsConf *tls.Config,
	srvKaOpts *keepalive.ServerParameters,
) (*Server, error)

NewServer creates a new implementation of a GRPC Server given a listen address

func (*Server) Start

func (s *Server) Start() error

Start the server

func (*Server) Stop

func (s *Server) Stop()

Stop the server

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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