registry

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package registry defines API to register and fing EAP providers

Package registry defines API to register and fing EAP providers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProvider

func GetProvider(typ uint8) providers.Method

GetProvider returns registered Method provider for EAP type

func Register

func Register(p providers.Method) (oldProvider providers.Method)

Register adds (registers) the provider to the internal registry, if a provider for the same type is already registered it'll be overwritten. Register returns the previously registered provider for the type or nil if none was registered for the type before

func SupportedTypes

func SupportedTypes() []uint8

SupportedTypes returns sorted list (ascending, by type) of registered EAP Providers SupportedTypes makes copy of an internally maintained supported types list, so callers are advised to save the result locally and re-use it if needed

Types

This section is empty.

Jump to

Keyboard shortcuts

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