infrastructure

package
v3.0.0-alpha1 Latest Latest
Warning

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

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

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