redirects

package
v0.0.0-...-bdf7875 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlatformRedirectConfig

type PlatformRedirectConfig struct {
	SourceUrl string `json:"source_url"`
	TargetUrl string `json:"target_url"`
}

type RedirectStore

type RedirectStore struct {
	Config     config.RedirectsStoreConfig
	PathPrefix string
	// contains filtered or unexported fields
}

func NewRedirectStore

func NewRedirectStore(options ...RedirectStoreOption) (*RedirectStore, error)

func (*RedirectStore) GetRedirectEntry

func (rs *RedirectStore) GetRedirectEntry(ctx context.Context, url url.URL) (*RedirectStoreRedirectEntry, error)

func (*RedirectStore) Middleware

func (rs *RedirectStore) Middleware() echo.MiddlewareFunc

type RedirectStoreOption

type RedirectStoreOption func(*RedirectStore) error

type RedirectStoreRedirectEntry

type RedirectStoreRedirectEntry struct {
	SourceUrl string
	TargetUrl string
	UpdatedAt time.Time
}

Jump to

Keyboard shortcuts

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