httpapi

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMulti

func NewMulti(provider Provider, catalog *reviewservice.Catalog, assets fs.FS) http.Handler

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(service *reviewservice.Service, assets fs.FS) *Handler

func (*Handler) ServeHTTP

func (handler *Handler) ServeHTTP(response http.ResponseWriter, request *http.Request)

func (*Handler) SessionID

func (handler *Handler) SessionID() string

type Multi

type Multi struct {
	// contains filtered or unexported fields
}

Multi routes owner-scoped REST requests; review operations go through the application catalog so ownership and storage stay behind reviewservice.

func (*Multi) ServeHTTP

func (multi *Multi) ServeHTTP(response http.ResponseWriter, request *http.Request)

NewMultiWithContext ties shared snapshot work to the service lifetime.

type Provider

type Provider interface {
	Get(context.Context, string) (contextservice.Context, error)
	Delete(context.Context, string) error
}

Provider reads and deletes context metadata within the caller's catalog.

Jump to

Keyboard shortcuts

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