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 ¶
- type QueryTestDTO
- type TestAApi
- type TestBApi
- type TestData
- type TestErrorController
- func (r *TestErrorController) BadRequest() (interface{}, error)
- func (r *TestErrorController) BadRequestWriter(w http.ResponseWriter)
- func (r *TestErrorController) Error() (interface{}, error)
- func (r *TestErrorController) ErrorWriter(w http.ResponseWriter)
- func (r *TestErrorController) InternalError() (interface{}, error)
- func (r *TestErrorController) InternalErrorWriter(w http.ResponseWriter)
- type TestInjectExtraController
- func (r *TestInjectExtraController) TestBody(account model2.Account) interface{}
- func (r *TestInjectExtraController) TestContext(c context.Context) string
- func (r *TestInjectExtraController) TestForm(i int, f float64, bl bool, s string, m map[string][]string) interface{}
- func (r *TestInjectExtraController) TestHeader(token string) string
- func (r *TestInjectExtraController) TestMultipart(file multipart.File, header *multipart.FileHeader, value string) interface{}
- func (r *TestInjectExtraController) TestPath(i int, f float64, bl bool, s string) interface{}
- func (r *TestInjectExtraController) TestQuery(i int, f float64, bl bool, s string, account model2.Account) interface{}
- func (r *TestInjectExtraController) TestReqNResp(req *http.Request, w http.ResponseWriter)
- func (r *TestInjectExtraController) TestStream(s []byte) interface{}
- type TestInjectHeaderController
- func (h *TestInjectHeaderController) TestBool(val bool) bool
- func (h *TestInjectHeaderController) TestFloat32(val float32) float32
- func (h *TestInjectHeaderController) TestFloat64(val float64) float64
- func (h *TestInjectHeaderController) TestInt(val int) int
- func (h *TestInjectHeaderController) TestInt32(val int32) int32
- func (h *TestInjectHeaderController) TestInt64(val int64) int64
- func (h *TestInjectHeaderController) TestString(val string) string
- type TestInjectPathController
- func (h *TestInjectPathController) TestBool(val bool) bool
- func (h *TestInjectPathController) TestFloat32(val float32) float32
- func (h *TestInjectPathController) TestFloat64(val float64) float64
- func (h *TestInjectPathController) TestInt(val int) int
- func (h *TestInjectPathController) TestInt32(val int32) int32
- func (h *TestInjectPathController) TestInt64(val int64) int64
- func (h *TestInjectPathController) TestString(val string) string
- type TestInjectQueryController
- func (h *TestInjectQueryController) TestBool(val bool) bool
- func (h *TestInjectQueryController) TestFloat32(val float32) float32
- func (h *TestInjectQueryController) TestFloat64(val float64) float64
- func (h *TestInjectQueryController) TestInt(val int) int
- func (h *TestInjectQueryController) TestInt32(val int32) int32
- func (h *TestInjectQueryController) TestInt64(val int64) int64
- func (h *TestInjectQueryController) TestMul(val1 int, val2 int32, val3 int64, val4 float32, val5 float64, val6 bool, ...) QueryTestDTO
- func (h *TestInjectQueryController) TestString(val string) string
- func (h *TestInjectQueryController) TestStruct(val QueryTestDTO) QueryTestDTO
- type TestResponseController
- type TestResponseWriteController
- func (t *TestResponseWriteController) Html(w http.ResponseWriter)
- func (t *TestResponseWriteController) Json(w http.ResponseWriter)
- func (t *TestResponseWriteController) Redirect(w http.ResponseWriter, to string)
- func (t *TestResponseWriteController) Text(w http.ResponseWriter)
- func (t *TestResponseWriteController) Xml(w http.ResponseWriter)
- func (t *TestResponseWriteController) Yaml(w http.ResponseWriter)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueryTestDTO ¶
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 }
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 }
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) 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) 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 ¶
func (h *TestInjectQueryController) TestStruct(val QueryTestDTO) QueryTestDTO
type TestResponseController ¶
type TestResponseController struct { types.Controller `group:"/test/resp/returns"` // contains filtered or unexported fields }
func (*TestResponseController) Html ¶
func (t *TestResponseController) Html() resp.Response
func (*TestResponseController) Json ¶
func (t *TestResponseController) Json() resp.Response
func (*TestResponseController) Text ¶
func (t *TestResponseController) Text() resp.Response
func (*TestResponseController) Xml ¶
func (t *TestResponseController) Xml() resp.Response
func (*TestResponseController) Yaml ¶
func (t *TestResponseController) Yaml() resp.Response
type TestResponseWriteController ¶
type TestResponseWriteController struct { types.Controller `group:"/test/resp/write"` // contains filtered or unexported fields }
func (*TestResponseWriteController) Html ¶
func (t *TestResponseWriteController) Html(w http.ResponseWriter)
func (*TestResponseWriteController) Json ¶
func (t *TestResponseWriteController) Json(w http.ResponseWriter)
func (*TestResponseWriteController) Redirect ¶
func (t *TestResponseWriteController) Redirect(w http.ResponseWriter, to string)
func (*TestResponseWriteController) Text ¶
func (t *TestResponseWriteController) Text(w http.ResponseWriter)
func (*TestResponseWriteController) Xml ¶
func (t *TestResponseWriteController) Xml(w http.ResponseWriter)
func (*TestResponseWriteController) Yaml ¶
func (t *TestResponseWriteController) Yaml(w http.ResponseWriter)
Click to show internal directories.
Click to hide internal directories.