plugin

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package plugin defines a plugin store the API uses including, an object store, rate limiting, etc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Catalog

type Catalog struct {
	ObjectStore           objectstore.ObjectStore
	JWSProvider           jws.Provider
	GraphqlRateLimitStore limiter.Store
	HTTPRateLimitStore    limiter.Store
}

Catalog contains the available plugins.

type Factory

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

Factory implements logic necessary to initialize the plugin Catalog.

func NewFactory

func NewFactory(logger logger.Logger, cfg *config.Config) (*Factory, error)

NewFactory returns a new Factory.

func (*Factory) Build

func (f *Factory) Build(ctx context.Context) (*Catalog, error)

Build creates a new Catalog.

Jump to

Keyboard shortcuts

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