mirror of
https://github.com/1f349/lavender.git
synced 2025-04-15 15:27:55 +01:00
18 lines
351 B
Go
18 lines
351 B
Go
package auth
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/1f349/lavender/auth/process"
|
|
)
|
|
|
|
type Provider interface {
|
|
// AccessState defines the state at which the provider is allowed to show.
|
|
// Some factors might be unavailable due to user preference.
|
|
AccessState() process.State
|
|
|
|
// Name defines a string value for the provider.
|
|
Name() string
|
|
|
|
fmt.Stringer
|
|
}
|