Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResponseError ¶
func ResponseError(err rest.IErrorArgs) rest.IRequestOut
func ResponseSuccess ¶
func ResponseSuccess(req rest.IRequest) rest.IRequestOut
Types ¶
type RequestIn ¶ added in v1.3.0
func (*RequestIn) OutError ¶ added in v1.3.0
func (s *RequestIn) OutError(err rest.IErrorArgs) rest.IRequestOut
func (*RequestIn) OutSuccess ¶ added in v1.3.0
func (s *RequestIn) OutSuccess(data json.Map, files rest.RequestFiles) rest.IRequestOut
type RequestOut ¶ added in v1.3.0
type RequestOut struct { Err rest.IErrorArgs rest.IRequest }
Response реализует объект ответа
func NewRequestOut ¶ added in v1.3.0
func NewRequestOut(req rest.IRequest) *RequestOut
func (*RequestOut) RClose ¶ added in v1.3.3
func (s *RequestOut) RClose()
func (*RequestOut) Write ¶ added in v1.3.0
func (s *RequestOut) Write(writer io.Writer) rest.IErrorArgs
Send отправляет запрос серверу
Click to show internal directories.
Click to hide internal directories.