extensions

package
v1.18.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

type Loader interface {
	Load(concept string) ([]byte, error)
}

type LoaderAller

type LoaderAller interface {
	LoadAll() ([]byte, error)
}

type LoaderStorer

type LoaderStorer interface {
	Storer
	Loader
	LoaderAller
}

type Proxy

type Proxy interface {
	AddExtension(ctx context.Context, extension *models.C11yExtension) error
}

C11yProxy proxies the request through the separate container, only for it to come back here for the storage. This is legacy from the pre-module times. TODO: cleanup, there does not need to be a separation between user-facing and internal storage endpoint in the long-term

type RESTHandlers

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

func NewRESTHandlers

func NewRESTHandlers(ls LoaderStorer, proxy Proxy) *RESTHandlers

func (*RESTHandlers) StorageHandler

func (h *RESTHandlers) StorageHandler() http.Handler

func (*RESTHandlers) UserFacingHandler

func (h *RESTHandlers) UserFacingHandler() http.Handler

type RESTStorageHandlers

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

func (*RESTStorageHandlers) Handler

func (h *RESTStorageHandlers) Handler() http.Handler

type RESTUserFacingHandlers

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

func (*RESTUserFacingHandlers) Handler

func (h *RESTUserFacingHandlers) Handler() http.Handler

type Storer

type Storer interface {
	Store(concept string, value []byte) error
}

type UseCase

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

UseCase handles all business logic regarding extensions

func NewUseCase

func NewUseCase(storage moduletools.Storage) *UseCase

func (*UseCase) Load

func (uc *UseCase) Load(concept string) ([]byte, error)

func (*UseCase) LoadAll

func (uc *UseCase) LoadAll() ([]byte, error)

func (*UseCase) Store

func (uc *UseCase) Store(concept string, value []byte) error

Jump to

Keyboard shortcuts

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