Help us shape the future of Go! Take the 2026 Go Developer Survey

openfga

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckConnectivity added in v0.8.1

func CheckConnectivity(ctx context.Context, apiURL string, apiToken string, storeID string) error

CheckConnectivity verifies OpenFGA is reachable with the given credentials and store.

Types

type FGA

type FGA struct {
	// contains filtered or unexported fields
}

FGA represents an OpenFGA authorizer.

func New

func New(ctx context.Context, apiURL string, apiToken string, storeID string) (*FGA, error)

func (FGA) CheckPermission

func (f FGA) CheckPermission(ctx context.Context, details *authz.RequestDetails, object authz.Object, entitlement authz.Entitlement) error

Jump to

Keyboard shortcuts

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