rewriter

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package rewriter contains the route rewriters

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRewriter

type UserRewriter struct {
	Tpls map[string]string
}

UserRewriter rewrites a route with data from a user.

func (UserRewriter) GetAlias

func (ur UserRewriter) GetAlias(ctx context.Context, route string) string

GetAlias returns the alias for a given route. If an alias has not been configured for the route, it returns the route.

Jump to

Keyboard shortcuts

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