a_train

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c Config) (autoscan.HTTPTrigger, error)

// New creates an autoscan-compatible HTTP Trigger for A-Train webhooks.

Types

type ATrainRewriter

type ATrainRewriter = func(drive string, input string) string

type Config

type Config struct {
	Drives         []Drive            `yaml:"drives"`
	Priority       int                `yaml:"priority"`
	Rewrite        []autoscan.Rewrite `yaml:"rewrite"`
	Verbosity      string             `yaml:"verbosity"`
	SlashDirection string             `yaml:"slash-direction"`
}

type Drive

type Drive struct {
	ID      string             `yaml:"id"`
	Rewrite []autoscan.Rewrite `yaml:"rewrite"`
}

Jump to

Keyboard shortcuts

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