api_test

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package api Code Generated by booctl; SKIP IF EXISTS.

Package api Code Generated by booctl; SKIP IF EXISTS.

Package api Code Generated by booctl; SKIP IF EXISTS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryTestDTO

type QueryTestDTO struct {
	Int     int     `json:"int"`
	Int32   int32   `json:"int_32"`
	Int64   int64   `json:"int_64"`
	Float32 float32 `json:"float_32"`
	Float64 float64 `json:"float_64"`
	Bool    bool    `json:"bool"`
	String  string  `json:"string"`
}

type TestAApi added in v1.4.4

type TestAApi struct {
	types.Controller `group:"/test/a"`
	TestData         *TestData `wire:"test_data"`
	// contains filtered or unexported fields
}

func (*TestAApi) Set added in v1.4.4

func (a *TestAApi) Set(val string) string

type TestBApi added in v1.4.4

type TestBApi struct {
	types.Controller `group:"/test/b"`
	TestData         *TestData `wire:"test_data"`
	// contains filtered or unexported fields
}

func (*TestBApi) Get added in v1.4.4

func (a *TestBApi) Get() string

type TestData added in v1.4.4

type TestData struct {
	types.Component `name:"test_data"`
	Value           string
}

type TestErrorController

type TestErrorController struct {
	types.Controller `group:"/test/error"`
	// contains filtered or unexported fields
}

func (*TestErrorController) BadRequest

func (r *TestErrorController) BadRequest() (interface{}, error)

func (*TestErrorController) BadRequestWriter

func (r *TestErrorController) BadRequestWriter(w http.ResponseWriter)

func (*TestErrorController) Error

func (r *TestErrorController) Error() (interface{}, error)

func (*TestErrorController) ErrorWriter

func (r *TestErrorController) ErrorWriter(w http.ResponseWriter)

func (*TestErrorController) InternalError

func (r *TestErrorController) InternalError() (interface{}, error)

func (*TestErrorController) InternalErrorWriter

func (r *TestErrorController) InternalErrorWriter(w http.ResponseWriter)

type TestInjectExtraController

type TestInjectExtraController struct {
	types.Controller `group:"/test/inject/extra"`
	// contains filtered or unexported fields
}

func (*TestInjectExtraController) TestBody

func (r *TestInjectExtraController) TestBody(account model2.Account) interface{}

func (*TestInjectExtraController) TestContext

func (r *TestInjectExtraController) TestContext(c context.Context) string

func (*TestInjectExtraController) TestForm

func (r *TestInjectExtraController) TestForm(i int, f float64, bl bool, s string, m map[string][]string) interface{}

func (*TestInjectExtraController) TestHeader

func (r *TestInjectExtraController) TestHeader(token string) string

func (*TestInjectExtraController) TestMultipart

func (r *TestInjectExtraController) TestMultipart(file multipart.File, header *multipart.FileHeader, value string) interface{}

func (*TestInjectExtraController) TestPath

func (r *TestInjectExtraController) TestPath(i int, f float64, bl bool, s string) interface{}

func (*TestInjectExtraController) TestQuery

func (r *TestInjectExtraController) TestQuery(i int, f float64, bl bool, s string, account model2.Account) interface{}

func (*TestInjectExtraController) TestReqNResp

func (r *TestInjectExtraController) TestReqNResp(req *http.Request, w http.ResponseWriter)

func (*TestInjectExtraController) TestStream

func (r *TestInjectExtraController) TestStream(s []byte) interface{}

type TestInjectHeaderController

type TestInjectHeaderController struct {
	types.Controller `group:"/test/inject/header"`
	Log              log.Logger `wire:""`
	// contains filtered or unexported fields
}

func (*TestInjectHeaderController) TestBool

func (h *TestInjectHeaderController) TestBool(val bool) bool

func (*TestInjectHeaderController) TestFloat32

func (h *TestInjectHeaderController) TestFloat32(val float32) float32

func (*TestInjectHeaderController) TestFloat64

func (h *TestInjectHeaderController) TestFloat64(val float64) float64

func (*TestInjectHeaderController) TestInt

func (h *TestInjectHeaderController) TestInt(val int) int

func (*TestInjectHeaderController) TestInt32

func (h *TestInjectHeaderController) TestInt32(val int32) int32

func (*TestInjectHeaderController) TestInt64

func (h *TestInjectHeaderController) TestInt64(val int64) int64

func (*TestInjectHeaderController) TestString

func (h *TestInjectHeaderController) TestString(val string) string

type TestInjectPathController

type TestInjectPathController struct {
	types.Controller `group:"/test/inject/path"`
	Log              log.Logger `wire:""`
	// contains filtered or unexported fields
}

func (*TestInjectPathController) TestBool

func (h *TestInjectPathController) TestBool(val bool) bool

func (*TestInjectPathController) TestFloat32

func (h *TestInjectPathController) TestFloat32(val float32) float32

func (*TestInjectPathController) TestFloat64

func (h *TestInjectPathController) TestFloat64(val float64) float64

func (*TestInjectPathController) TestInt

func (h *TestInjectPathController) TestInt(val int) int

func (*TestInjectPathController) TestInt32

func (h *TestInjectPathController) TestInt32(val int32) int32

func (*TestInjectPathController) TestInt64

func (h *TestInjectPathController) TestInt64(val int64) int64

func (*TestInjectPathController) TestString

func (h *TestInjectPathController) TestString(val string) string

type TestInjectQueryController

type TestInjectQueryController struct {
	types.Controller `group:"/test/inject/query"`
	Log              log.Logger `wire:""`
	// contains filtered or unexported fields
}

func (*TestInjectQueryController) TestBool

func (h *TestInjectQueryController) TestBool(val bool) bool

func (*TestInjectQueryController) TestFloat32

func (h *TestInjectQueryController) TestFloat32(val float32) float32

func (*TestInjectQueryController) TestFloat64

func (h *TestInjectQueryController) TestFloat64(val float64) float64

func (*TestInjectQueryController) TestInt

func (h *TestInjectQueryController) TestInt(val int) int

func (*TestInjectQueryController) TestInt32

func (h *TestInjectQueryController) TestInt32(val int32) int32

func (*TestInjectQueryController) TestInt64

func (h *TestInjectQueryController) TestInt64(val int64) int64

func (*TestInjectQueryController) TestMul

func (h *TestInjectQueryController) TestMul(val1 int, val2 int32, val3 int64, val4 float32, val5 float64, val6 bool, val7 string) QueryTestDTO

func (*TestInjectQueryController) TestString

func (h *TestInjectQueryController) TestString(val string) string

func (*TestInjectQueryController) TestStruct

type TestResponseController

type TestResponseController struct {
	types.Controller `group:"/test/resp/returns"`
	// contains filtered or unexported fields
}

func (*TestResponseController) Html

func (*TestResponseController) Json

func (*TestResponseController) Text

func (*TestResponseController) Xml

func (*TestResponseController) Yaml

type TestResponseWriteController

type TestResponseWriteController struct {
	types.Controller `group:"/test/resp/write"`
	// contains filtered or unexported fields
}

func (*TestResponseWriteController) Html

func (*TestResponseWriteController) Json

func (*TestResponseWriteController) Redirect

func (*TestResponseWriteController) Text

func (*TestResponseWriteController) Xml

func (*TestResponseWriteController) Yaml

Jump to

Keyboard shortcuts

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