uiserver

package
v0.0.0-...-f0fecd2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlerAddAddr

func HandlerAddAddr(logf slogf.Logf, rewritesStorage *rewrites.CacheStorage) http.HandlerFunc

func HandlerAddRewrite

func HandlerAddRewrite(logf slogf.Logf, rewritesStorage *rewrites.CacheStorage) http.HandlerFunc

func HandlerAddRewriteSelf

func HandlerAddRewriteSelf(logf slogf.Logf, rewritesStorage *rewrites.CacheStorage) http.HandlerFunc

func HandlerDeleteAddr

func HandlerDeleteAddr(logf slogf.Logf, rewritesStorage *rewrites.CacheStorage) http.HandlerFunc

func HandlerDeleteRewrite

func HandlerDeleteRewrite(logf slogf.Logf, rewritesStorage *rewrites.CacheStorage) http.HandlerFunc

func HandlerDeleteRewriteSelf

func HandlerDeleteRewriteSelf(logf slogf.Logf, rewritesStorage *rewrites.CacheStorage) http.HandlerFunc

func Start

func Start(ctx context.Context, logHandler slog.Handler, params Params) error

Types

type Params

type Params struct {
	Addr            string
	Port            int
	RewritesStorage *rewrites.CacheStorage
	LogAccess       bool
	SettingsInfo    map[string]string
}

Jump to

Keyboard shortcuts

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