proxy

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct {
	RemarkURL string
	RoutePath string
	Enabled   bool
}

Image extracts image src from comment's html and provides proxy for them this is needed to keep remark42 running behind of HTTPS serve all images via https

func (Image) Convert

func (p Image) Convert(commentHTML string) string

Convert all img src links without https to proxied links

func (Image) Routes

func (p Image) Routes() chi.Router

Routes returns router group to respond to proxied request

Jump to

Keyboard shortcuts

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