parametertranslate

package
v0.0.2-alpha15 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPrefixPrefix

func GetPrefixPrefix() string

Types

type NaiveBodyTranslator

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

func (*NaiveBodyTranslator) ReverseTranslate

func (gp *NaiveBodyTranslator) ReverseTranslate(input string) (string, error)

func (*NaiveBodyTranslator) Translate

func (gp *NaiveBodyTranslator) Translate(input string) (string, error)

type NilTranslator

type NilTranslator struct {
}

func (*NilTranslator) ReverseTranslate

func (gp *NilTranslator) ReverseTranslate(input string) (string, error)

func (*NilTranslator) Translate

func (gp *NilTranslator) Translate(input string) (string, error)

type ParameterTranslator

type ParameterTranslator interface {
	Translate(string) (string, error)
	ReverseTranslate(string) (string, error)
}

func NewNaiveBodyTranslator

func NewNaiveBodyTranslator(prefix string, attributeMatcher fuzzymatch.FuzzyMatcher[string]) ParameterTranslator

func NewNilTranslator

func NewNilTranslator() ParameterTranslator

func NewParameterTranslator

func NewParameterTranslator(algorithm string, attributeMatcher fuzzymatch.FuzzyMatcher[string]) ParameterTranslator

func NewPrefixedTranslator

func NewPrefixedTranslator(prefix string, attributeMatcher fuzzymatch.FuzzyMatcher[string]) ParameterTranslator

type PrefixedTranslator

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

func (*PrefixedTranslator) ReverseTranslate

func (gp *PrefixedTranslator) ReverseTranslate(input string) (string, error)

func (*PrefixedTranslator) Translate

func (gp *PrefixedTranslator) Translate(input string) (string, error)

Jump to

Keyboard shortcuts

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