{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.4.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package comm\n\n## Types\n\n```go\ntype Client struct {\n\tTLSCertHash []byte\n\t*comm.GRPCClient\n}\n```\nClient deals with TLS connections to the discovery server\n\n```go\nfunc NewClient(conf Config) (*Client, error)\n```\nNewClient creates a new comm client out of the given configuration\n\n```go\nfunc (c *Client) NewDialer(endpoint string) func() (*grpc.ClientConn, error)\n```\nNewDialer creates a new dialer from the given endpoint\n\n```go\ntype Config struct {\n\tCertPath       string\n\tKeyPath        string\n\tPeerCACertPath string\n\tTimeout        time.Duration\n}\n```\nConfig defines configuration of a Client\n\n```go\nfunc (conf Config) ToSecureOptions(newSelfSignedTLSCert genTLSCertFunc) (*comm.SecureOptions, error)\n```\nToSecureOptions converts this Config to SecureOptions. The given function generates a self signed client TLS certificate if the TLS certificate and key aren't present at the config\n\n","path":"github.com/eric-erki/https-hyperledger.org/cmd/common/comm","name":"comm","synopsis":"","isRedistributable":true}
