Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UserNotFoundError = errors.New("user not found")
View Source
var UserRejectedError = errors.New("user rejected")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(config Configuration) (*Client, error)
func (*Client) GetCertificate ¶
func (c *Client) GetCertificate() (*ubinding.RadiusCertificate, error)
func (*Client) GetUser ¶
func (c *Client) GetUser(userRequest *binding.UserRequest) (*binding.RadiusUserResponse, error)
type Configuration ¶
type Configuration struct {
Server string `yaml:"server"`
ApiVersion uint16 `yaml:"api_version" default:"1"`
Token string `yaml:"token"`
CA string `yaml:"ca"`
Certificate string `yaml:"certificate"`
Key string `yaml:"key"`
SourceInterface string `yaml:"source_interface"`
}
func (*Configuration) Check ¶
func (c *Configuration) Check() error
Click to show internal directories.
Click to hide internal directories.