action

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallResult

type CallResult struct {
}

CallResult 默认调用Action结果

func NewCallResult

func NewCallResult() CallResult

func (CallResult) ExecuteResult

func (receiver CallResult) ExecuteResult(httpContext *context.HttpContext)

type ContentResult

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

ContentResult 返回响应内容

func (ContentResult) ExecuteResult

func (receiver ContentResult) ExecuteResult(httpContext *context.HttpContext)

type FileContentResult

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

FileContentResult 返回文件内容

func (FileContentResult) ExecuteResult

func (receiver FileContentResult) ExecuteResult(httpContext *context.HttpContext)

type IResult

type IResult interface {
	ExecuteResult(httpContext *context.HttpContext)
}

func Content

func Content(content string) IResult

Content 内容

func FileContent

func FileContent(filePath string) IResult

FileContent 文件

func Redirect

func Redirect(url string) IResult

Redirect 重定向

func View

func View(viewName ...string) IResult

View 视图

type RedirectToRouteResult

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

RedirectToRouteResult 重定向功能

func (RedirectToRouteResult) ExecuteResult

func (receiver RedirectToRouteResult) ExecuteResult(httpContext *context.HttpContext)

type ViewResult

type ViewResult struct {
	ViewName string
}

ViewResult 返回视图功能

func (ViewResult) ExecuteResult

func (receiver ViewResult) ExecuteResult(httpContext *context.HttpContext)

Jump to

Keyboard shortcuts

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