proxyURL

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPathFromURL

func GetPathFromURL(URL string) string

func GetURLFromPath

func GetURLFromPath(path string) *url.URL

func Init

func Init(c Config)

Types

type Config

type Config struct {

	// 前段に立っているHTTPS終端を行うリバースプロキシを表すホスト名
	Host string
}

type ConfigSchema

type ConfigSchema struct {
	Host string `json:"host"`
}

func (*ConfigSchema) CreateConfig

func (s *ConfigSchema) CreateConfig() Config

func (*ConfigSchema) Validate

func (s *ConfigSchema) Validate() error

Jump to

Keyboard shortcuts

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