github.com/sykesm/fabric@v1.1.0-preview.0.20200129034918-2aa12b1a0181/gossip/common/cert.go (about)

     1  /*
     2  Copyright IBM Corp. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  
     7  package common
     8  
     9  import (
    10  	"sync/atomic"
    11  )
    12  
    13  // TLSCertificates aggregates server and client TLS certificates
    14  type TLSCertificates struct {
    15  	TLSServerCert atomic.Value // *tls.Certificate server certificate of the peer
    16  	TLSClientCert atomic.Value // *tls.Certificate client certificate of the peer
    17  }