client

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 17 Imported by: 0

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

Jump to

Keyboard shortcuts

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