web

package
v0.0.0-...-730ab85 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	ConnID    uint32
	SessionId string
	Flags     byte
	Name      string
	Type      byte
}

type CommandRouter

type CommandRouter struct {
	Server *tcp.Server
	common.BaseRouter
}

func (*CommandRouter) Handle

func (wcr *CommandRouter) Handle(request *common.Request)

type File

type File struct {
	ConnID    uint32
	SessionId string
	Flags     byte

	FileName   string
	FileSize   uint64 //总大小
	ChunkCount uint32 //总块数
	Sign       string //md5签名验证文件是否正常

	StartSize uint64 //起始大小
	ChunkSize uint64
	ChunkData string
}

type FileRouter

type FileRouter struct {
	Server *tcp.Server
	common.BaseRouter
}

func (*FileRouter) Handle

func (fr *FileRouter) Handle(request *common.Request)

Jump to

Keyboard shortcuts

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