http

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

func Mount(mux *http.ServeMux, d Deps)

func WorkspaceHeaderCtx

func WorkspaceHeaderCtx(members MemberChecker) func(http.Handler) http.Handler

Types

type Deps

type Deps struct {
	Svc     *app.WorkspaceService
	Members MemberChecker

	Authz *authz.Authorizer
}

type MemberChecker

type MemberChecker interface {
	GetMember(ctx context.Context, workspaceID, userID string) (app.Member, bool, error)
}

Jump to

Keyboard shortcuts

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