redirect

package
v0.0.0-...-ff5eb55 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NOTE: hardcoded inside TestQueryContent const.
	InlineExpectationsTestTag = "$redirectUrl" // Must start with a $ sign.
)
View Source
const (
	Kind x.ModelKind = "HTTP::Redirect"
)
View Source
const (
	MethodGetURL = "{url:Param} <- $url"
)
View Source
const (
	TestQueryContent = `` /* 533-byte string literal not displayed */

)

Variables

View Source
var (
	GenerateBoilerplate bool
)
View Source
var (
	IncludeCommentsInGeneratedGo bool
)

Functions

func Comments

func Comments(group *Group, comments ...string) *Group

Comments adds comments to a Group (if enabled), and returns the group.

func ComposeTypeAssertion

func ComposeTypeAssertion(file *File, group *Group, varName string, typ types.Type, isVariadic bool)

declare `name := source(1).(Type)`

func GetFuncQualifierCodeElements

func GetFuncQualifierCodeElements(qual *x.FuncQualifier) (x.FuncInterface, Code)

func NewTestFile

func NewTestFile(includeBoilerplace bool) *File

func Tag

func Tag(vals ...string) Code

Types

type Handler

type Handler struct{}

func (*Handler) GenerateCodeQL

func (han *Handler) GenerateCodeQL(impAdder x.ImportAdder, mdl *x.XModel, rootModuleGroup *Group) error

func (*Handler) GenerateGo

func (han *Handler) GenerateGo(parentDir string, mdl *x.XModel) error

func (*Handler) ScavengeMethods

func (han *Handler) ScavengeMethods() []*x.XMethod

func (*Handler) Validate

func (han *Handler) Validate(mdl *x.XModel) error

Jump to

Keyboard shortcuts

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