- moved rbac store and config to internal pkg, - split auth authenticators to internal pkg, - add rbac config object to internal/config, - update package imports and references for auth, - clean up main with pkg aliases
13 lines
156 B
Go
13 lines
156 B
Go
package auth
|
|
|
|
type (
|
|
Identifiable interface {
|
|
Identity() uint64
|
|
Valid() bool
|
|
}
|
|
|
|
TokenEncoder interface {
|
|
Encode(identity Identifiable) string
|
|
}
|
|
)
|