redirect

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

README

Redirect

An http-to-https redirector for use within Loophole Labs projects

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDisabled = errors.New("redirect is disabled")
)

Functions

This section is empty.

Types

type Options

type Options struct {
	LogName       string
	Disabled      bool
	ListenAddress string
}

type Redirect

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

func New

func New(options *Options, logger *zerolog.Logger) (*Redirect, error)

func (*Redirect) Start

func (s *Redirect) Start() error

func (*Redirect) Stop

func (s *Redirect) Stop() error

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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