Documentation ¶ Index ¶ Variables func AuthMiddleware(ctx context.Context, next graphql.Resolver) (any, error) func PublicDirective(ctx context.Context, obj any, next graphql.Resolver) (any, error) Constants ¶ This section is empty. Variables ¶ View Source var ErrUnauthorized = errors.New("unauthorized") Functions ¶ func AuthMiddleware ¶ func AuthMiddleware(ctx context.Context, next graphql.Resolver) (any, error) func PublicDirective ¶ func PublicDirective(ctx context.Context, obj any, next graphql.Resolver) (any, error) Types ¶ This section is empty. Source Files ¶ View all Source files directive.go Directories ¶ Show internal Expand all Path Synopsis resolver Click to show internal directories. Click to hide internal directories.