connection

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOpenVPNConnection

func NewOpenVPNConnection(connection AUXOpenVPNConnection) contract.Connection

func NewSSHConnection

func NewSSHConnection(executor contract.Executor) contract.Connection

Types

type AUXOpenVPNConnection

type AUXOpenVPNConnection interface {
	Connect()
	Send(data string)
	Receive(size int) string
	Close()
}

func NewAUXOpenVPNConnection

func NewAUXOpenVPNConnection(host string, port int) AUXOpenVPNConnection

type OpenVPNConnection

type OpenVPNConnection struct {
	// contains filtered or unexported fields
}

func (*OpenVPNConnection) Count

func (vpn *OpenVPNConnection) Count(ctx context.Context) int

func (*OpenVPNConnection) CountByUsername

func (vpn *OpenVPNConnection) CountByUsername(ctx context.Context, username string) int

func (*OpenVPNConnection) SetNext

func (vpn *OpenVPNConnection) SetNext(next contract.Connection)

Jump to

Keyboard shortcuts

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