Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ContextKeyID = contextKey("ID")
)
Functions ¶
This section is empty.
Types ¶
type AuthInterceptor ¶
type AuthInterceptor struct {
// contains filtered or unexported fields
}
func NewAuthInterceptor ¶
func (*AuthInterceptor) Authorize ¶
func (i *AuthInterceptor) Authorize(ctx context.Context, method string) (*jwt.UserClaims, error)
func (*AuthInterceptor) ParseTokenFromContext ¶
func (i *AuthInterceptor) ParseTokenFromContext(ctx context.Context) (string, error)
func (*AuthInterceptor) Unary ¶
func (i *AuthInterceptor) Unary() grpc.UnaryServerInterceptor
Click to show internal directories.
Click to hide internal directories.