Documentation
¶
Index ¶
- func HelloFileHandler(ctx context.Context, req *proto.HelloFileHandlerReq, ...) error
- func HelloHandler(ctx context.Context, req *proto.HelloHandlerReq, resp *proto.HelloHandlerResp) error
- func HelloMultipleFilesHandler(ctx context.Context, req *proto.HelloMultipleFilesHandlerReq, ...) *result.HttpError
- func StandardFileHandler(ctx context.Context, req *proto.StandardFileHandlerReq) (*proto.StandardFileHandlerResp, error)
- func StandardHandler(ctx context.Context, req *proto.StandardHandlerReq) (*proto.StandardHandlerResp, error)
- func StandardMultipleFilesHandler(ctx context.Context, req *proto.StandardMultipleFilesHandlerReq) (*proto.StandardMultipleFilesHandlerResp, *result.HttpError)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HelloFileHandler ¶
func HelloFileHandler(ctx context.Context, req *proto.HelloFileHandlerReq, resp *proto.HelloFileHandlerResp) error
func HelloHandler ¶
func HelloHandler(ctx context.Context, req *proto.HelloHandlerReq, resp *proto.HelloHandlerResp) error
func HelloMultipleFilesHandler ¶
func HelloMultipleFilesHandler(ctx context.Context, req *proto.HelloMultipleFilesHandlerReq, resp *proto.HelloMultipleFilesHandlerResp) *result.HttpError
func StandardFileHandler ¶
func StandardFileHandler(ctx context.Context, req *proto.StandardFileHandlerReq) (*proto.StandardFileHandlerResp, error)
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 ¶
func StandardMultipleFilesHandler(ctx context.Context, req *proto.StandardMultipleFilesHandlerReq) (*proto.StandardMultipleFilesHandlerResp, *result.HttpError)
StandardMultipleFilesHandler Multiple file upload: cannot be resolved by mapping, get gin context to operate
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.