workerapi

package
v2.8.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorizer

type Authorizer func(ctx context.Context, endpoint string) bool

Authorizer decides whether a worker API request is authorized.

func BearerTokenAuthorizer

func BearerTokenAuthorizer(tokens [][]byte) Authorizer

BearerTokenAuthorizer validates gRPC metadata Authorization headers. Expected format: "Authorization: Bearer <token>".

Jump to

Keyboard shortcuts

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