server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2017 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Handle(net.Conn)
}

type Server

type Server struct {
	Handler
	// contains filtered or unexported fields
}

func New

func New(conf *ServerConfig) *Server

func (*Server) ListenAndServe

func (srv *Server) ListenAndServe() error

type ServerConfig

type ServerConfig struct {
	Port     int    `default:"2083"`
	CaFile   string `split_words:"true" default:"ca.crt"`
	CertFile string `split_words:"true" default:"server.crt"`
	KeyFile  string `split_words:"true" default:"server.key"`
	radius.RadiusConfig
}

Jump to

Keyboard shortcuts

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