directives

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizedDirective

type AuthorizedDirective struct {
	StoreHelper commonsfga.FGAStoreHelper
	// contains filtered or unexported fields
}

func NewAuthorizedDirective

func NewAuthorizedDirective(storeHelper commonsfga.FGAStoreHelper, openfgaClient openfgav1.OpenFGAServiceClient) AuthorizedDirective

func (AuthorizedDirective) Authorized

func (a AuthorizedDirective) Authorized(ctx context.Context, _ any, next gqlgen.Resolver, relation string, _ *string, _ *string, entityParamName string) (any, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL