Documentation ¶
Index ¶
- func GetUser(ctx context.Context) (*contracts.UserInfo, error)
- func MustGetUser(ctx context.Context) *contracts.UserInfo
- func NewAccessTokenAuth(app contracts.ApplicationInterface) contracts.Authenticator
- func NewJwtAuth(priKey *rsa.PrivateKey, pubKey *rsa.PublicKey) contracts.AuthInterface
- func SetUser(ctx context.Context, info *contracts.UserInfo) context.Context
- func StreamServerInterceptor() grpc.StreamServerInterceptor
- func UnaryServerInterceptor() grpc.UnaryServerInterceptor
- type Authn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAccessTokenAuth ¶
func NewAccessTokenAuth(app contracts.ApplicationInterface) contracts.Authenticator
func NewJwtAuth ¶
func NewJwtAuth(priKey *rsa.PrivateKey, pubKey *rsa.PublicKey) contracts.AuthInterface
func StreamServerInterceptor ¶
func StreamServerInterceptor() grpc.StreamServerInterceptor
func UnaryServerInterceptor ¶
func UnaryServerInterceptor() grpc.UnaryServerInterceptor
Types ¶
Click to show internal directories.
Click to hide internal directories.