Help us shape the future of Go! Take the 2026 Go Developer Survey

workerapi

package
v2.15.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 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