Documentation ¶
Index ¶
Constants ¶
Variables ¶
View Source
var ( DefaultConfig = v1.Config{ Home: "public_html", Port: 8080, JWT: v1.JWT{ Expiration: 525960, }, TLSPort: 8443, Certificate: v1.Identity{ Valid: 365, Subject: ca.Subject{ CommonName: "www.example.com", Organization: "Trusted Platform", OrganizationalUnit: "IoT", Country: "USA", Province: "Kernel", Locality: "Hypervisor", Address: "123 Example Street", PostalCode: "12345", }, SANS: &ca.SubjectAlternativeNames{ DNS: []string{ "www.example.com", "localhost", "localhost.localdomain", }, IPs: []string{ "127.0.0.1", }, Email: []string{ "root@localhost", "root@localhost.localdomain", }, }, }, } DefaultConfigRSA = DefaultConfig DefaultConfigECDSA = DefaultConfig DefaultConfigEd25519 = DefaultConfig )
View Source
var ( ErrLoadTlsCerts = errors.New("webserver: unable to load TLS certificates") ErrBindPort = errors.New("webserver: unable to bind to web service port") )
Functions ¶
This section is empty.
Types ¶
type LoadBalancerFunc ¶
func RoundRobinBalancer ¶
func RoundRobinBalancer() LoadBalancerFunc
type MutualTLSClient ¶
type MutualTLSClient struct {
// contains filtered or unexported fields
}
func NewMutalTLSClient ¶
func NewMutalTLSClient( logger *logging.Logger, ca ca.CertificateAuthority, attrs *keystore.KeyAttributes) MutualTLSClient
type Signer ¶
type WebServerV1 ¶
type WebServerV1 struct {
// contains filtered or unexported fields
}
func NewWebServerV1 ¶
func NewWebServerV1( debug bool, logger *logging.Logger, _ca ca.CertificateAuthority, config *v1.Config, restServiceRegistry v1.RestHandlerRegistry, keyAttributes *keystore.KeyAttributes) *WebServerV1
Source Files ¶
Click to show internal directories.
Click to hide internal directories.