parallel

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package parallel implements experimental utilities for performing parallel client interactions with the Authzed API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllChecksAreMember

func AllChecksAreMember(resps []*v0.CheckResponse) bool

AllChecksAreMember returns true if every provided CheckResponse has membership.

func Check

func Check(ctx context.Context, client v0.ACLServiceClient, in []*v0.CheckRequest, opts ...grpc.CallOption) ([]*v0.CheckResponse, error)

Check performs the provided list of CheckRequests in parallel and returns a slice of responses that are stored at their respective indices.

func ContentChangeCheck

func ContentChangeCheck(ctx context.Context, client v0.ACLServiceClient, in []*v0.ContentChangeCheckRequest, opts ...grpc.CallOption) ([]*v0.CheckResponse, error)

ContentChangeCheck performs the provided list of ContentChangeCheckRequests in parallel and returns a slice of responses that are stored at their respective indices.

Types

This section is empty.

Jump to

Keyboard shortcuts

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