Documentation ¶
Index ¶
- func HandleFsApi(controller component.Controller, handler func(prefix, dir string))
- func NewApiInfo(group string, field reflect.StructField, svm *ServiceMethod) web.ApiInfo
- func NewEndpoint(controller component.Controller) []web.Endpoint
- func RestApiExtract(controller component.Controller, ...)
- type ApiInfo
- type Endpoint
- type Param
- type ServiceMethod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleFsApi ¶ added in v1.3.4
func HandleFsApi(controller component.Controller, handler func(prefix, dir string))
func NewApiInfo ¶ added in v1.3.7
func NewApiInfo(group string, field reflect.StructField, svm *ServiceMethod) web.ApiInfo
func NewEndpoint ¶ added in v1.3.7
func NewEndpoint(controller component.Controller) []web.Endpoint
func RestApiExtract ¶ added in v1.4.0
func RestApiExtract(controller component.Controller, handler func(apiInfo web.ApiInfo, svm web.ServiceMethod))
Types ¶
type ApiInfo ¶ added in v1.3.7
type ApiInfo struct {
// contains filtered or unexported fields
}
func (*ApiInfo) GetDescription ¶ added in v1.3.7
func (*ApiInfo) GetField ¶ added in v1.4.0
func (a *ApiInfo) GetField() reflect.StructField
func (*ApiInfo) GetHttpMethod ¶ added in v1.3.7
func (*ApiInfo) GetMethodName ¶ added in v1.4.0
type Endpoint ¶ added in v1.3.7
type Endpoint struct { web.ApiInfo web.ServiceMethod }
func (*Endpoint) GetApiInfo ¶ added in v1.3.7
func (*Endpoint) GetServiceMethod ¶ added in v1.3.7
func (e *Endpoint) GetServiceMethod() web.ServiceMethod
type Param ¶
func (*Param) GetSpecifyType ¶ added in v1.4.0
type ServiceMethod ¶ added in v1.3.7
func NewServiceMethod ¶ added in v1.3.7
func NewServiceMethod(method *reflect.Method, value *reflect.Value) *ServiceMethod
func (*ServiceMethod) GetMethod ¶ added in v1.3.7
func (s *ServiceMethod) GetMethod() *reflect.Method
func (*ServiceMethod) GetValue ¶ added in v1.3.7
func (s *ServiceMethod) GetValue() *reflect.Value
Click to show internal directories.
Click to hide internal directories.