listusers

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HasRelationship userRelationshipStatus = iota
	NoRelationship
)

Variables

View Source
var (
	ErrPanic = errors.New("panic captured")
)

Functions

func NewListUsersQuery

func NewListUsersQuery(ds storage.RelationshipTupleReader, contextualTuples []*openfgav1.TupleKey, opts ...ListUsersQueryOption) *listUsersQuery

TODO accept ListUsersRequest instead of contextualTuples.

func ValidateListUsersRequest

func ValidateListUsersRequest(ctx context.Context, req *openfgav1.ListUsersRequest, typesys *typesystem.TypeSystem) error

Types

type ListUsersQueryOption

type ListUsersQueryOption func(l *listUsersQuery)

func WithDispatchThrottlerConfig added in v1.5.8

func WithDispatchThrottlerConfig(config threshold.Config) ListUsersQueryOption

func WithListUsersDatastoreThrottler added in v1.8.13

func WithListUsersDatastoreThrottler(threshold int, duration time.Duration) ListUsersQueryOption

func WithListUsersDeadline

func WithListUsersDeadline(t time.Duration) ListUsersQueryOption

WithListUsersDeadline see server.WithListUsersDeadline.

func WithListUsersMaxConcurrentReads

func WithListUsersMaxConcurrentReads(limit uint32) ListUsersQueryOption

WithListUsersMaxConcurrentReads see server.WithMaxConcurrentReadsForListUsers.

func WithListUsersMaxResults

func WithListUsersMaxResults(maxResults uint32) ListUsersQueryOption

WithListUsersMaxResults see server.WithListUsersMaxResults.

func WithListUsersQueryLogger

func WithListUsersQueryLogger(l logger.Logger) ListUsersQueryOption

func WithResolveNodeBreadthLimit

func WithResolveNodeBreadthLimit(limit uint32) ListUsersQueryOption

WithResolveNodeBreadthLimit see server.WithResolveNodeBreadthLimit.

func WithResolveNodeLimit

func WithResolveNodeLimit(limit uint32) ListUsersQueryOption

WithResolveNodeLimit see server.WithResolveNodeLimit.

Jump to

Keyboard shortcuts

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