Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultMaxChannels is number of buffer chennels. It is used to receive HTTP Reuest's body. Default value is 100. DefaultMaxChannels = 100 // DefaultMaxBufferSize is limit of buffer size. It is used to receive HTTP Reuest's body. Default value is 4KB. DefaultMaxBufferSize = 4 * 1024 )
Functions ¶
func InitBuffer ¶
func InitBuffer()
InitBuffer creates buffers. This function is called by readBody if no buffers are created. If you care about the performance at runtime, call this method when initializing the application.
func NewBlogRouter ¶
func NewBlogRouter(conn *grpc.ClientConn) httprouter.Handle
NewBlogRouter is httprouter for Blog
func NewCommonRouter ¶
func NewCommonRouter(conn *grpc.ClientConn) httprouter.Handle
NewCommonRouter is httprouter for Common
func NewUserRouter ¶
func NewUserRouter(conn *grpc.ClientConn) httprouter.Handle
NewUserRouter is httprouter for User
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.