connection

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOpenVPNConnection

func NewOpenVPNConnection(connection AUXOpenVPNConnection) contract.CountConnection

func NewSSHConnection

func NewSSHConnection(executor contract.Executor) contract.CountConnection

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) All

func (vpn *OpenVPNConnection) All(ctx context.Context) (int, error)

func (*OpenVPNConnection) ByUsername

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

func (*OpenVPNConnection) SetNext

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

Jump to

Keyboard shortcuts

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