Documentation ¶
Index ¶
- func LoadTLSConfig(isserver bool, key, cert, root []byte) (*tls.Config, error)
- func NewClientConn(address string, tlsConf *tls.Config, kaOpts keepalive.ClientParameters) (*grpc.ClientConn, error)
- func NewRegisterClient(conn *grpc.ClientConn) (peerpb.ChaincodeSupport_RegisterClient, error)
- type Config
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadTLSConfig ¶
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
Click to show internal directories.
Click to hide internal directories.