util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package util holds utility functions and classes for the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenVPNClientRequest

type OpenVPNClientRequest struct {
	// ClientIP holds the client's untrusted IP address from the authentication request.
	ClientIP string

	// Location, if present, holds additional information about the location of the client IP.
	Location string

	// Password holds the password from the authentication request.
	Password string

	// Username holds the username from the authentication request.
	Username string
}

OpenVPNClientRequest holds data from the OpenVPN connection request

func NewOpenVPNClientRequest

func NewOpenVPNClientRequest() *OpenVPNClientRequest

NewOpenVPNClientRequest creates a new OpenVPNClientRequest object based on environment variables.

Jump to

Keyboard shortcuts

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