urlhandler

package
v0.0.0-...-e7cf16d Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorNotVerifyHost = fmt.Errorf("not verify host")
)

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(public string) (*Handler, error)

func (*Handler) ExtractKeyFromURL

func (n *Handler) ExtractKeyFromURL(uri string) string

func (*Handler) ExtractKeyFromURLWithMode

func (n *Handler) ExtractKeyFromURLWithMode(uri string, strict bool) (string, error)

func (*Handler) GenerateURL

func (n *Handler) GenerateURL(key string) string

func (*Handler) GenerateURLs

func (n *Handler) GenerateURLs(keys []string) []string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳