Documentation
¶
Index ¶
- type Driver
- type Drivers
- type Feature
- type Features
- type Option
- type Registry
- func (r Registry) FilterForCompatible(ctx context.Context) Drivers
- func (r Registry) For(driver string) Drivers
- func (r Registry) GetDriverInterfaces() []interface{}
- func (r Registry) PreferProtocol(protocols ...string) Drivers
- func (r *Registry) Register(name, protocol string, driverInterface interface{}, features Features)
- func (r Registry) Supports(features ...Feature) Drivers
- func (r Registry) Using(proto string) Drivers
- type Verifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
Registry holds the registered drivers
func NewRegistry ¶
NewRegistry returns a new Driver registry
func (Registry) FilterForCompatible ¶
FilterForCompatible updates the driver registry with only compatible implementations
func (Registry) GetDriverInterfaces ¶
func (r Registry) GetDriverInterfaces() []interface{}
GetDriverInterfaces returns a slice of just the generic driver interfaces
func (Registry) PreferProtocol ¶
PreferProtocol does the actual work of moving preferred protocols to the start of the driver registry
Click to show internal directories.
Click to hide internal directories.