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
- Host: GitHub
- URL: https://github.com/cycoresystems/radius
- Owner: CyCoreSystems
- License: mit
- Created: 2016-02-05T22:37:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-11-23T15:51:44.000Z (over 9 years ago)
- Last Synced: 2025-04-05T17:12:50.295Z (about 1 year ago)
- Language: Go
- Size: 35.2 KB
- Stars: 5
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)