Documentation
¶
Index ¶
- func ContextWithCert(parent context.Context, cert *x509.Certificate) context.Context
- func ContextWithKey(parent context.Context, key crypto.PrivateKey) context.Context
- func ContextWithManager(parent context.Context, manager CredentialsManager) context.Context
- type CredentialsManager
- type CredentialsManagerFunc
- type Server
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithCert ¶
func ContextWithKey ¶
func ContextWithManager ¶
func ContextWithManager(parent context.Context, manager CredentialsManager) context.Context
Types ¶
type CredentialsManager ¶
type CredentialsManagerFunc ¶
type Server ¶
type Server struct {
Errs chan error
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(cfg *ServerConfig) *Server
func (*Server) Certificate ¶
func (s *Server) Certificate() *x509.Certificate
func (*Server) PrivateKey ¶
func (s *Server) PrivateKey() crypto.PrivateKey
type ServerConfig ¶
type ServerConfig struct {
Manager CredentialsManager
Port int
Domain string
BindIP string
WorkingDir string
}
Click to show internal directories.
Click to hide internal directories.