Documentation ¶
Index ¶
Constants ¶
View Source
const Version = version.Vers
Variables ¶
Functions ¶
func CertTemplate ¶
func CertTemplate() (*x509.Certificate, error)
helper function to create a cert template with a serial number and other required fields
func CreateCert ¶
func CreateCert(template, parent *x509.Certificate, pub interface{}, parentPriv interface{}) ( cert *x509.Certificate, certPEM []byte, err error)
Types ¶
type Config ¶
type Config struct { Name string `yaml:"name"` Desc string `yaml:"desc"` Owner string `yaml:"owner"` Website string `yaml:"website"` Email string `yaml:"email"` MOTD string `yaml:"motd"` Private bool `yaml:"private"` Serve struct { Host string `yaml:"host"` Port int `yaml:"port"` TLS *TLSConfig `yaml:"tls"` } `yaml:"serve"` Chat struct { Encoding string `yaml:"encoding"` Log struct { Max int `yaml:"max"` Join int `yaml:"join"` } } `yaml:"chat"` Database struct { Type string `yaml:"type"` Path string `yaml:"path"` } `yaml:"database"` Plugins struct { Path string `yaml:"path"` } `yaml:"plugins"` }
Click to show internal directories.
Click to hide internal directories.