Documentation ¶
Index ¶
- Constants
- Variables
- func GzipDecode(in []byte) ([]byte, error)
- func GzipEncode(in []byte) ([]byte, error)
- func Initialize(openGzip bool, minSize int32)
- func Prepare(ctx *gin.Context) (*Request, *Respon)
- type GzipWriter
- type MessageCachePostHandler
- type MessageCacheProcessHandler
- type MessageCacheProcessParam
- type Request
- func (this *Request) Body() []byte
- func (this *Request) GetInt32(key string) int32
- func (this *Request) GetInt64(key string) int64
- func (this *Request) GetString(key string) string
- func (this *Request) GetUint32(key string) uint32
- func (this *Request) GetUint64(key string) uint64
- func (this *Request) Set(key, value string)
- func (this *Request) String() string
- type Respon
Constants ¶
View Source
const WindPlayGzipON uint32 = 0xabababab
View Source
const WindPlayGzipOff uint32 = 0xababcccc
Variables ¶
View Source
var GzipMiniSize int32 = 512
View Source
var IsGzipOpen = false
View Source
var WriterPool = sync.Pool{ New: func() interface{} { writer := &GzipWriter{} writer.init() return writer }, }
Functions ¶
func GzipDecode ¶
func GzipEncode ¶
func Initialize ¶
Types ¶
type GzipWriter ¶
type GzipWriter struct {
// contains filtered or unexported fields
}
type MessageCachePostHandler ¶
type MessageCachePostHandler interface {
Handle(userId uint64, form *proto.ST_ResponForm_PB)
}
type MessageCacheProcessHandler ¶
type MessageCacheProcessHandler interface {
Handle(userId uint64, input map[string]*MessageCacheProcessParam)
}
Click to show internal directories.
Click to hide internal directories.