Documentation ¶
Overview ¶
Package credentials loads certificates and validates user credentials.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizeUser ¶
AuthorizeUser checks for valid credentials in the context Metadata.
func ClientCredentials ¶
func ClientCredentials(server string) []grpc.DialOption
ClientCredentials generates gRPC DialOptions for existing credentials.
func LoadCertificates ¶
func LoadCertificates() ([]tls.Certificate, *x509.CertPool)
LoadCertificates loads certificates from file.
func ServerCredentials ¶
func ServerCredentials() []grpc.ServerOption
ServerCredentials generates gRPC ServerOptions for existing credentials.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.