transport

package
v0.0.0-...-31e44ea Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeUserRequest

func DecodeUserRequest(ctx context.Context, r *http.Request) (interface{}, error)

DecodeUserRequest 解析用户发送来的数据

func EncodeUserResponse

func EncodeUserResponse(ctx context.Context, w http.ResponseWriter, response interface{}) error

EncodeUserResponse 用来编码给客户发送的数据

Types

This section is empty.

Jump to

Keyboard shortcuts

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