Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
func Parse(c Configurable, opts []Option) error
Types ¶
type Configurable ¶
type Configurable interface {
SetOption(interface{}) error
}
type Option ¶
type Option func(s Configurable) error
func AllowedMethods ¶
func AllowedOrigins ¶
func LoadCertificate ¶
func SelfSignedCertificate ¶
func SelfSignedCertificate() Option
func TryLoadCertificate ¶
type OptionAllowedMethods ¶
type OptionAllowedMethods struct {
Methods []string
}
type OptionAllowedOrigins ¶
type OptionListen ¶
type OptionListen struct {
On string
}
type OptionLoadCertificate ¶
type OptionSelfSignedCertificate ¶
type OptionSelfSignedCertificate struct{}
type OptionTryLoadCertificate ¶
type OptionTryLoadCertificate OptionLoadCertificate
Click to show internal directories.
Click to hide internal directories.