Documentation
¶
Index ¶
- Constants
- Variables
- func NewListUsersQuery(ds storage.RelationshipTupleReader, contextualTuples []*openfgav1.TupleKey, ...) *listUsersQuery
- func ValidateListUsersRequest(ctx context.Context, req *openfgav1.ListUsersRequest, ...) error
- type ListUsersQueryOption
- func WithDispatchThrottlerConfig(config threshold.Config) ListUsersQueryOption
- func WithListUsersDatastoreThrottler(enabled bool, threshold int, duration time.Duration) ListUsersQueryOption
- func WithListUsersDeadline(t time.Duration) ListUsersQueryOption
- func WithListUsersMaxConcurrentReads(limit uint32) ListUsersQueryOption
- func WithListUsersMaxResults(maxResults uint32) ListUsersQueryOption
- func WithListUsersQueryLogger(l logger.Logger) ListUsersQueryOption
- func WithResolveNodeBreadthLimit(limit uint32) ListUsersQueryOption
- func WithResolveNodeLimit(limit uint32) ListUsersQueryOption
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(enabled bool, 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.
Click to show internal directories.
Click to hide internal directories.