infrastructure

package
v0.0.0-...-fd23dd1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: OSL-3.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CsvContent

type CsvContent struct {
	HTTPStatusCode int
	OriginalPath   string
	RedirectTarget string
}

CsvContent definition / dto

type RedirectData

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

RedirectData loads redirect data from csv

func NewRedirectData

func NewRedirectData(
	cfg *struct {
		RedirectsCsv string `inject:"config:redirects.csv"`
	},
	logger flamingo.Logger,
) *RedirectData

NewRedirectData provides a new dataset with autoload from csv

func (*RedirectData) Get

func (rd *RedirectData) Get() []CsvContent

Get returns the Redirect data

Jump to

Keyboard shortcuts

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