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
type 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) GetServerInfo ¶
func (s *Server) GetServerInfo() map[string]grpc.ServiceInfo
Click to show internal directories.
Click to hide internal directories.