package server

import (
	"context"

	"google.golang.org/grpc/health/grpc_health_v1"
)

// gRPC health check service needs no auth function:
// https://github.com/grpc-ecosystem/go-grpc-middleware/blob/master/auth/auth.go#L26
type HealthServerNoAuth struct {
	grpc_health_v1.HealthServer
}

func (h *HealthServerNoAuth) AuthFuncOverride(ctx context.Context, fullMethodName string) (context.Context, error) {
	return ctx, nil
}
