myrouter

package
v0.0.0-...-45d2cfe Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2017 License: MIT Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

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