hessian

package
v0.0.0-...-af6c984 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CmdFlagInclude   = "include"
	CmdFlagThread    = "thread"
	CmdFlagOnlyError = "error"
)
View Source
const (
	PackageRegexp = `^package\s[a-zA-Z_][0-9a-zA-Z_]*$`

	LineCommentRegexp         = `\/\/`
	MutLineCommentStartRegexp = `\/\*`
	MutLineCommentEndRegexp   = `\*\/`

	InitFunctionRegexp = `^func\sinit\(\)\s\{$`

	HessianImportRegexp = `"github.com/apache/dubbo-go-hessian2"`

	HessianPOJORegexp     = `\*[0-9a-zA-Z_]+\)\sJavaClassName\(\)\sstring\s\{$`
	HessianPOJONameRegexp = `\*[0-9a-zA-Z_]+\)`
)
View Source
const (
	TargetFileSuffix = ".go"
)

Variables

This section is empty.

Functions

func ListFiles

func ListFiles(dirPath string, suffix string) (fileList []string, err error)

ListFiles 获取目标目录下所有go文件

func ToggleLog

func ToggleLog(onlyError bool)

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(f string) *Generator

func (Generator) Execute

func (g Generator) Execute()

type Pool

type Pool struct {
	// contains filtered or unexported fields
}

Pool 线程池

func NewPool

func NewPool(max int) *Pool

func (Pool) Execute

func (p Pool) Execute(t Task)

func (Pool) Wait

func (p Pool) Wait()

type Task

type Task interface {
	Execute()
}

Task 任务

Jump to

Keyboard shortcuts

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