Documentation ¶
Index ¶
- type CertCache
- type SSLService
- func (s *SSLService) ConfigureTLS(mux *http.ServeMux) (*tls.Config, http.Handler)
- func (s *SSLService) GenerateCerts(apiKey string) (string, string, error)
- func (s *SSLService) GetGRPCSTLSCreds() (credentials.TransportCredentials, error)
- func (s *SSLService) IsCertGenerationEnabled() bool
- func (s *SSLService) IsEnabled() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertCache ¶
type CertCache struct {
// contains filtered or unexported fields
}
func NewCertCache ¶
func NewCertCache(cache interfaces.Cache) *CertCache
type SSLService ¶
type SSLService struct { AuthorityCert *x509.Certificate AuthorityKey *rsa.PrivateKey // contains filtered or unexported fields }
func NewSSLService ¶
func NewSSLService(env environment.Env) (*SSLService, error)
func (*SSLService) ConfigureTLS ¶
func (*SSLService) GenerateCerts ¶
func (s *SSLService) GenerateCerts(apiKey string) (string, string, error)
func (*SSLService) GetGRPCSTLSCreds ¶
func (s *SSLService) GetGRPCSTLSCreds() (credentials.TransportCredentials, error)
func (*SSLService) IsCertGenerationEnabled ¶
func (s *SSLService) IsCertGenerationEnabled() bool
func (*SSLService) IsEnabled ¶
func (s *SSLService) IsEnabled() bool
Click to show internal directories.
Click to hide internal directories.