web

package
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host             string
	Listen           string
	TLSListenersConf map[string]*TLSListenConfig `yaml:"tls-listeners"`
	Log              string
}

func LoadConfig

func LoadConfig(filename string) (config *Config, err error)

func (*Config) TLSListeners

func (conf *Config) TLSListeners() map[string]*tls.Config

type Server

type Server struct {
}

Server is the webserver

func NewServer

func NewServer(config *Config) *Server

NewServer returns a new Oragono server.

func (*Server) Run

func (*Server) Run()

type TLSListenConfig

type TLSListenConfig struct {
	Cert string
	Key  string
}

TLSListenConfig defines configuration options for listening on TLS

func (*TLSListenConfig) Config

func (conf *TLSListenConfig) Config() (*tls.Config, error)

Certificate returns the TLS certificate assicated with this TLSListenConfig

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL