server

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 23 Imported by: 24 modules, 17 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	AuthorizationModelIDHeader = "openfga-authorization-model-id"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ResolveNodeLimit         uint32
	ChangelogHorizonOffset   int
	ListObjectsDeadline      time.Duration
	ListObjectsMaxResults    uint32
	Experimentals            []ExperimentalFeatureFlag
	AllowWriting1_0Models    bool
	AllowEvaluating1_0Models bool
}

type Dependencies

type Dependencies struct {
	Datastore    storage.OpenFGADatastore
	Logger       logger.Logger
	Transport    gateway.Transport
	TokenEncoder encoder.Encoder
}

type ExperimentalFeatureFlag

type ExperimentalFeatureFlag string

type Server

type Server struct {
	openfgapb.UnimplementedOpenFGAServiceServer
	// contains filtered or unexported fields
}

A Server implements the OpenFGA service backend as both a GRPC and HTTP server.

func New

func New(dependencies *Dependencies, config *Config) *Server

New creates a new Server which uses the supplied backends for managing data.

func (*Server) Check

func (*Server) CreateStore

func (*Server) DeleteStore

func (*Server) Expand

func (*Server) GetStore

func (*Server) IsReady

func (s *Server) IsReady(ctx context.Context) (bool, error)

IsReady reports whether this OpenFGA server instance is ready to accept traffic.

func (*Server) ListObjects

func (*Server) ListStores

func (*Server) Read

func (*Server) ReadChanges

func (*Server) Write

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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