An open API service indexing awesome lists of open source software.

https://github.com/cycoresystems/radius

Go RADIUS client library
https://github.com/cycoresystems/radius

Last synced: about 1 year ago
JSON representation

Go RADIUS client library

Awesome Lists containing this project

README

          

# radius

Go RADIUS client library

RADIUS Accounting / RFC2866

## Client usage

cl := radius.NewClient(&radius.Opts{
Host: "",
SharedSecret: "",
})

// send arbitrary packets
resp, err := cl.Send(...)

## Session Usage

id := ...

// create a new accounting session
sess := cl.NewSession(id, radius.TextString(radius.AccessUsername, "username"))

// add some data to the session
sess.AddInputOctet(12)
sess.AddOutputOctet(33)

// close the session
sess.Stop(radius.UserRequest)