interfaces moved
This commit is contained in:
parent
3ad76639ca
commit
5aa8052773
1 changed files with 11 additions and 0 deletions
11
pkg/router/interfaces.go
Normal file
11
pkg/router/interfaces.go
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
package router
|
||||||
|
|
||||||
|
import "context"
|
||||||
|
|
||||||
|
type UserProvider interface {
|
||||||
|
GetUserId(ctx context.Context, userUuid string) (int64, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
type AuthChecker interface {
|
||||||
|
VerifySession(ctx context.Context, sessionUuid string, serviceId int32) (string, error)
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue