Documentation ¶
Index ¶
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 HandleRestApi ¶ added in v1.3.4
func HandleRestApi(controller component.Controller, handler func(apiInfo web.ApiInfo, svm web.ServiceMethod))
func NewEndpoint ¶ added in v1.3.7
func NewEndpoint(controller component.Controller) []web.Endpoint
Types ¶
type ApiInfo ¶ added in v1.3.7
func NewApiInfo ¶ added in v1.3.7
func NewApiInfo(group string, field reflect.StructField, svm *ServiceMethod) *ApiInfo
func (*ApiInfo) GetDescription ¶ added in v1.3.7
func (*ApiInfo) GetHttpMethod ¶ added in v1.3.7
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 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.