handler

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const ApiKeyName = "api_key"

Variables

This section is empty.

Functions

This section is empty.

Types

type CelestiaApiValidator

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

func NewCelestiaApiValidator

func NewCelestiaApiValidator() *CelestiaApiValidator

func (*CelestiaApiValidator) Validate

func (v *CelestiaApiValidator) Validate(i interface{}) error

type Error

type Error struct {
	Message string `json:"message"`
}

type KeyValidator

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

func NewKeyValidator

func NewKeyValidator(apiKeys storage.IApiKey, errChecker NoRows) KeyValidator

func (KeyValidator) Validate

func (kv KeyValidator) Validate(key string, c echo.Context) (bool, error)

type NoRows

type NoRows interface {
	IsNoRows(err error) bool
}

type RollupAuthHandler

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

func NewRollupAuthHandler

func NewRollupAuthHandler(
	rollups storage.IRollup,
	address storage.IAddress,
	namespace storage.INamespace,
	tx sdk.Transactable,
	txBeginner func(ctx context.Context, tx sdk.Transactable) (storage.Transaction, error),
) RollupAuthHandler

func (RollupAuthHandler) Bulk

func (handler RollupAuthHandler) Bulk(c echo.Context) error

func (RollupAuthHandler) Create

func (handler RollupAuthHandler) Create(c echo.Context) error

func (RollupAuthHandler) Delete

func (handler RollupAuthHandler) Delete(c echo.Context) error

func (RollupAuthHandler) Unverified

func (handler RollupAuthHandler) Unverified(c echo.Context) error

func (RollupAuthHandler) Update

func (handler RollupAuthHandler) Update(c echo.Context) error

func (RollupAuthHandler) Verify

func (handler RollupAuthHandler) Verify(c echo.Context) error

Jump to

Keyboard shortcuts

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