Help us shape the future of Go! Take the 2026 Go Developer Survey

radius

package
v0.3.15 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServe added in v0.3.13

func ListenAndServe(conf Config, processor Processor, lg *logger.Logger) error

Types

type Config added in v0.3.13

type Config struct {
	ListenAddr string `yaml:"listen_addr"`
	Secret     string `yaml:"secret"`
	// ReadBufferSize is SO_RCVBUF in bytes, 0 keeps the system default.
	ReadBufferSize int `yaml:"read_buffer_size"`
}

type Processor

type Processor interface {
	Get(req *events.AuthRequest) (*events.AuthResponse, error)
	SendPostAuth(req events.AuthRequest, resp events.AuthResponse)
	SendAcct(acct *events.AcctRequest)
}

Processor is the request backend: HTTP (package api) or Lua (package script).

type Server added in v0.3.13

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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