mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-12 06:24:10 +01:00
20 lines
397 B
Go
20 lines
397 B
Go
package authentication
|
|
|
|
import "akvorado/common/reporter"
|
|
|
|
// Component represents the authentication compomenent.
|
|
type Component struct {
|
|
r *reporter.Reporter
|
|
config Configuration
|
|
}
|
|
|
|
// New creates a new authentication component.
|
|
func New(r *reporter.Reporter, configuration Configuration) (*Component, error) {
|
|
c := Component{
|
|
r: r,
|
|
config: configuration,
|
|
}
|
|
|
|
return &c, nil
|
|
}
|