handlers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HelloHandler

func HelloHandler(ctx context.Context, req *proto.HelloHandlerReq, resp *proto.HelloHandlerResp) error

func StandardFileHandler

StandardFileHandler Upload a single file: it can be directly encapsulated into the req structure for parsing *multipart.FileHeader

func StandardHandler

func StandardHandler(ctx context.Context, req *proto.StandardHandlerReq) (*proto.StandardHandlerResp, error)

StandardHandler request parameters are automatically mapped and bound to req, If the return value is nil, the resp structure is mapped to the response body in JSON format, Otherwise, respond with JSON *result.HttpError or error content

func StandardMultipleFilesHandler

StandardMultipleFilesHandler Multiple file upload: cannot be resolved by mapping, get gin context to operate

Types

This section is empty.

Jump to

Keyboard shortcuts

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