Documentation ¶
Index ¶
- Constants
- func GrpcAuthMiddleware(ctx context.Context) (context.Context, error)
- func NewHTTPServer(router http.Handler, log logrus.FieldLogger, address string) *http.Server
- func NewHTTPServerWithTLSContext(router http.Handler, log logrus.FieldLogger, address string) *http.Server
- func NewTLSListener(address string, tlsConfig *tls.Config) (net.Listener, error)
- func ValidateClientTlsCert(ctx context.Context) (context.Context, error)
Constants ¶
View Source
const TLSCommonNameContextKey contextKey = "tls-cn"
Variables ¶
This section is empty.
Functions ¶
func GrpcAuthMiddleware ¶
client has to present either client TLS certificate or valid Authorization header
func NewHTTPServer ¶
func NewTLSListener ¶
NewTLSListener returns a new TLS listener. If the address is empty, it will listen on localhost's next available port.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.