Documentation
¶
Overview ¶
Package driver defines common interfaces and type aliases used by token driver implementations. These abstractions decouple drivers from concrete service implementations, facilitating modularity, testing, and dependency injection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigService ¶
type ConfigService interface {
// ConfigurationFor returns the configuration for the given network, channel, and namespace.
ConfigurationFor(network, channel, namespace string) (driver.Configuration, error)
}
ConfigService defines the interface for accessing TMS configurations.
type IdentityProvider ¶
type IdentityProvider interface {
// DefaultIdentity returns the default identity.
DefaultIdentity() driver.Identity
}
IdentityProvider defines the interface for accessing identities.
type MetricsProvider ¶
MetricsProvider is an alias for the metrics.Provider interface.
type NetworkBinderService ¶
type NetworkBinderService = identity.NetworkBinderService
NetworkBinderService is an alias for the identity.NetworkBinderService interface.
type NetworkProvider ¶
type NetworkProvider interface {
// GetNetwork returns the network instance for the given network and channel.
GetNetwork(network, channel string) (*network.Network, error)
}
NetworkProvider defines the interface for accessing network instances.
type StorageProvider ¶
type StorageProvider = identity.StorageProvider
StorageProvider is an alias for the identity.StorageProvider interface.
type TracerProvider ¶
type TracerProvider = trace.TracerProvider
TracerProvider is an alias for the trace.TracerProvider interface from OpenTelemetry.