3
0
corteza/internal/auth/interfaces.go
Tit Petric 7bf78fb4e0 upd(all): refactor
- 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
2018-09-13 12:05:06 +02:00

13 lines
156 B
Go

package auth
type (
Identifiable interface {
Identity() uint64
Valid() bool
}
TokenEncoder interface {
Encode(identity Identifiable) string
}
)