Documentation ¶
Index ¶
- Constants
- func AuthMiddleware(w http.ResponseWriter, r *http.Request)
- func AuthSkip(_ context.Context, c interceptors.CallMeta) bool
- func CheckAuthenticationHeader(r *http.Request) bool
- func CreateToken(username string) (string, error)
- func GrpcAuthMiddleware(ctx context.Context) grpc.UnaryServerInterceptor
Constants ¶
View Source
const (
AUTH_FAIL_HEADER = "authFail"
)
Variables ¶
This section is empty.
Functions ¶
func AuthMiddleware ¶
func AuthMiddleware(w http.ResponseWriter, r *http.Request)
func CreateToken ¶
func GrpcAuthMiddleware ¶
func GrpcAuthMiddleware(ctx context.Context) grpc.UnaryServerInterceptor
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.