handler

package
v0.0.0-...-243feeb Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

package handlers handles the eduroam connection by parsing the byte array It has handlers for UI events

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

type Handlers struct {
	// CredentialsH is the handler for asking for the username and password
	// c are the credentials which also contains prefixes and suffixes for the username
	// pi is the provider info
	// It returns the username and password that were filled in
	CredentialsH func(c network.Credentials, pi network.ProviderInfo) (string, string, error)

	// CertificateH is the handler for asking for the client certificate from the user
	// It returns the certificate, the passphrase and an error
	CertificateH func(cert string, passphrase string, pi network.ProviderInfo) (string, string, error)
}

Handlers is the structure that holds the handlers for UI events 'Handlers' are just functions that are called to get certain data

func (Handlers) Configure

func (h Handlers) Configure(eap []byte) (*time.Time, error)

Configure configures the connection using the parsed configuration It installs it using NetworkManager

Jump to

Keyboard shortcuts

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