SYMBOL INDEX (4647 symbols across 351 files) FILE: cmd/hz/app/app.go function New (line 39) | func New(c *cli.Context) error { function Update (line 79) | func Update(c *cli.Context) error { function Model (line 110) | func Model(c *cli.Context) error { function Client (line 126) | func Client(c *cli.Context) error { function PluginMode (line 142) | func PluginMode() { function Init (line 156) | func Init() *cli.App { function setLogVerbose (line 350) | func setLogVerbose(verbose bool) { function GenerateLayout (line 358) | func GenerateLayout(args *config.Argument) error { function TriggerPlugin (line 417) | func TriggerPlugin(args *config.Argument) error { FILE: cmd/hz/config/argument.go type Argument (line 31) | type Argument struct method Parse (line 99) | func (arg *Argument) Parse(c *cli.Context, cmd string) (*Argument, err... method parseStringSlice (line 123) | func (arg *Argument) parseStringSlice(c *cli.Context) { method UpdateByManifest (line 135) | func (arg *Argument) UpdateByManifest(m *meta.Manifest) { method checkPath (line 151) | func (arg *Argument) checkPath() error { method checkIDL (line 180) | func (arg *Argument) checkIDL() error { method IsUpdate (line 204) | func (arg *Argument) IsUpdate() bool { method IsNew (line 208) | func (arg *Argument) IsNew() bool { method checkPackage (line 213) | func (arg *Argument) checkPackage() error { method Pack (line 281) | func (arg *Argument) Pack() ([]string, error) { method Unpack (line 289) | func (arg *Argument) Unpack(data []string) error { method Fork (line 298) | func (arg *Argument) Fork() *Argument { method GetGoPackage (line 309) | func (arg *Argument) GetGoPackage() (string, error) { method ModelPackagePrefix (line 329) | func (arg *Argument) ModelPackagePrefix() (string, error) { method ModelOutDir (line 350) | func (arg *Argument) ModelOutDir() string { method GetHandlerDir (line 360) | func (arg *Argument) GetHandlerDir() (string, error) { method GetModelDir (line 367) | func (arg *Argument) GetModelDir() (string, error) { method GetRouterDir (line 374) | func (arg *Argument) GetRouterDir() (string, error) { method GetClientDir (line 381) | func (arg *Argument) GetClientDir() (string, error) { method InitManifest (line 388) | func (arg *Argument) InitManifest(m *meta.Manifest) { method UpdateManifest (line 395) | func (arg *Argument) UpdateManifest(m *meta.Manifest) { function NewArgument (line 88) | func NewArgument() *Argument { function IdlTypeToCompiler (line 318) | func IdlTypeToCompiler(idlType string) (string, error) { FILE: cmd/hz/config/cmd.go function lookupTool (line 32) | func lookupTool(idlType string) (string, error) { function link (line 78) | func link(src, dst string) error { function BuildPluginCmd (line 90) | func BuildPluginCmd(args *Argument) (*exec.Cmd, error) { method GetThriftgoOptions (line 175) | func (arg *Argument) GetThriftgoOptions() (string, error) { FILE: cmd/hz/generator/client.go type ClientMethod (line 28) | type ClientMethod struct type ClientConfig (line 38) | type ClientConfig struct type ClientFile (line 42) | type ClientFile struct method genClient (line 52) | func (pkgGen *HttpPackageGenerator) genClient(pkg *HttpPackage, clientDi... FILE: cmd/hz/generator/custom_files.go type FilePathRenderInfo (line 31) | type FilePathRenderInfo struct type IDLPackageRenderInfo (line 44) | type IDLPackageRenderInfo struct type CustomizedFileForMethod (line 49) | type CustomizedFileForMethod struct type CustomizedFileForService (line 57) | type CustomizedFileForService struct type CustomizedFileForIDL (line 64) | type CustomizedFileForIDL struct method genCustomizedFile (line 73) | func (pkgGen *HttpPackageGenerator) genCustomizedFile(pkg *HttpPackage) ... function renderFilePath (line 132) | func renderFilePath(tplInfo *Template, filePathRenderInfo FilePathRender... function renderInsertKey (line 146) | func renderInsertKey(tplInfo *Template, data interface{}) (string, error) { function renderImportTpl (line 164) | func renderImportTpl(tplInfo *Template, data interface{}) ([]string, err... function renderAppendContent (line 194) | func renderAppendContent(tplInfo *Template, renderInfo interface{}) (str... function appendUpdateFile (line 209) | func appendUpdateFile(tplInfo *Template, renderInfo interface{}, fileCon... function getInsertImportContent (line 235) | func getInsertImportContent(tplInfo *Template, renderInfo interface{}, f... method genLoopService (line 278) | func (pkgGen *HttpPackageGenerator) genLoopService(tplInfo *Template, fi... method genLoopMethod (line 400) | func (pkgGen *HttpPackageGenerator) genLoopMethod(tplInfo *Template, fil... method genSingleCustomizedFile (line 455) | func (pkgGen *HttpPackageGenerator) genSingleCustomizedFile(tplInfo *Tem... function writeBytes (line 648) | func writeBytes(buf *bytes.Buffer, bytes ...[]byte) error { FILE: cmd/hz/generator/file.go type File (line 28) | type File struct method Lint (line 36) | func (file *File) Lint() error { FILE: cmd/hz/generator/handler.go type HttpMethod (line 32) | type HttpMethod struct method InitComment (line 287) | func (m *HttpMethod) InitComment() { type Handler (line 53) | type Handler struct method Format (line 316) | func (h *Handler) Format() { type SingleHandler (line 61) | type SingleHandler struct type Client (line 68) | type Client struct method genHandler (line 73) | func (pkgGen *HttpPackageGenerator) genHandler(pkg *HttpPackage, handler... method processHandler (line 150) | func (pkgGen *HttpPackageGenerator) processHandler(handler *Handler, roo... method updateHandler (line 185) | func (pkgGen *HttpPackageGenerator) updateHandler(handler interface{}, h... method updateClient (line 274) | func (pkgGen *HttpPackageGenerator) updateClient(client interface{}, cli... function MapSerializer (line 303) | func MapSerializer(serializer string) string { FILE: cmd/hz/generator/layout.go type Layout (line 34) | type Layout struct type LayoutGenerator (line 47) | type LayoutGenerator struct method Init (line 62) | func (lg *LayoutGenerator) Init() error { method checkInited (line 85) | func (lg *LayoutGenerator) checkInited() error { method Generate (line 94) | func (lg *LayoutGenerator) Generate(data map[string]interface{}) error { method GenerateByService (line 101) | func (lg *LayoutGenerator) GenerateByService(service Layout) error { method GenerateByConfig (line 215) | func (lg *LayoutGenerator) GenerateByConfig(configPath string) error { method Degenerate (line 230) | func (lg *LayoutGenerator) Degenerate() error { function SetDefaultTemplateConfig (line 57) | func SetDefaultTemplateConfig() { function serviceToLayoutData (line 171) | func serviceToLayoutData(service Layout) (map[string]interface{}, error) { function serviceToRouterData (line 199) | func serviceToRouterData(service Layout) (map[string]interface{}, error) { FILE: cmd/hz/generator/layout_tpl.go constant sp (line 24) | sp = string(filepath.Separator) constant defaultBizDir (line 26) | defaultBizDir = "biz" constant defaultModelDir (line 27) | defaultModelDir = "biz" + sp + "model" constant defaultHandlerDir (line 28) | defaultHandlerDir = "biz" + sp + "handler" constant defaultServiceDir (line 29) | defaultServiceDir = "biz" + sp + "service" constant defaultDalDir (line 30) | defaultDalDir = "biz" + sp + "dal" constant defaultScriptDir (line 31) | defaultScriptDir = "script" constant defaultConfDir (line 32) | defaultConfDir = "conf" constant defaultRouterDir (line 33) | defaultRouterDir = "biz" + sp + "router" constant defaultClientDir (line 34) | defaultClientDir = "biz" + sp + "client" constant routerGenIndex (line 38) | routerGenIndex = 8 constant routerIndex (line 39) | routerIndex = 9 constant RegisterFile (line 41) | RegisterFile = "router_gen.go" FILE: cmd/hz/generator/model.go type Option (line 33) | type Option constant OptionMarshalEnumToText (line 36) | OptionMarshalEnumToText Option = "MarshalEnumToText" constant OptionTypedefAsTypeAlias (line 37) | OptionTypedefAsTypeAlias Option = "TypedefAsTypeAlias" type Backend (line 40) | type Backend interface type GolangBackend (line 48) | type GolangBackend struct method Template (line 50) | func (gb *GolangBackend) Template() (*template.Template, error) { method List (line 54) | func (gb *GolangBackend) List() map[string]string { method SetOption (line 58) | func (gb *GolangBackend) SetOption(opts string) error { method GetOptions (line 62) | func (gb *GolangBackend) GetOptions() []string { method Funcs (line 66) | func (gb *GolangBackend) Funcs(name string, fn interface{}) error { function switchBackend (line 70) | func switchBackend(backend meta.Backend) Backend { function loadThirdPartyBackend (line 78) | func loadThirdPartyBackend(plugin string) Backend { method LoadBackend (line 84) | func (pkgGen *HttpPackageGenerator) LoadBackend(backend meta.Backend) er... method GenModel (line 115) | func (pkgGen *HttpPackageGenerator) GenModel(data *model.Model, gen bool... function removeDuplicateImport (line 155) | func removeDuplicateImport(data *model.Model) { FILE: cmd/hz/generator/model/define.go function NewCategoryType (line 134) | func NewCategoryType(typ *Type, cg Category) *Type { function NewStructType (line 140) | func NewStructType(name string, cg Category) *Type { function NewFuncType (line 152) | func NewFuncType(name string, cg Category) *Type { function IsBaseType (line 164) | func IsBaseType(typ *Type) bool { function NewEnumType (line 173) | func NewEnumType(name string, cg Category) *Type { function NewOneofType (line 185) | func NewOneofType(name string) *Type { FILE: cmd/hz/generator/model/expr.go type BoolExpression (line 24) | type BoolExpression struct method Expression (line 28) | func (boolExpr BoolExpression) Expression() string { type StringExpression (line 36) | type StringExpression struct method Expression (line 40) | func (stringExpr StringExpression) Expression() string { type NumberExpression (line 44) | type NumberExpression struct method Expression (line 48) | func (numExpr NumberExpression) Expression() string { type ListExpression (line 52) | type ListExpression struct method Expression (line 73) | func (listExpr ListExpression) Expression() string { type IntExpression (line 57) | type IntExpression struct method Expression (line 61) | func (intExpr IntExpression) Expression() string { type DoubleExpression (line 65) | type DoubleExpression struct method Expression (line 69) | func (doubleExpr DoubleExpression) Expression() string { type MapExpression (line 82) | type MapExpression struct method Expression (line 88) | func (mapExpr MapExpression) Expression() string { FILE: cmd/hz/generator/model/golang/init.go function Template (line 41) | func Template() (*template.Template, error) { function List (line 59) | func List() map[string]string { function Funcs (line 73) | func Funcs(name string, fn interface{}) error { function identify (line 81) | func identify(name string) string { function camelCase (line 85) | func camelCase(name string) string { function snakeCase (line 89) | func snakeCase(name string) string { function getTypedefReturnStr (line 93) | func getTypedefReturnStr(name string) string { type feature (line 104) | type feature struct function getFeatures (line 111) | func getFeatures() feature { function SetOption (line 115) | func SetOption(opt string) error { function GetOptions (line 130) | func GetOptions() []string { FILE: cmd/hz/generator/model/model.go type Kind (line 25) | type Kind constant KindInvalid (line 28) | KindInvalid Kind = iota constant KindBool (line 29) | KindBool constant KindInt (line 30) | KindInt constant KindInt8 (line 31) | KindInt8 constant KindInt16 (line 32) | KindInt16 constant KindInt32 (line 33) | KindInt32 constant KindInt64 (line 34) | KindInt64 constant KindUint (line 35) | KindUint constant KindUint8 (line 36) | KindUint8 constant KindUint16 (line 37) | KindUint16 constant KindUint32 (line 38) | KindUint32 constant KindUint64 (line 39) | KindUint64 constant KindUintptr (line 40) | KindUintptr constant KindFloat32 (line 41) | KindFloat32 constant KindFloat64 (line 42) | KindFloat64 constant KindComplex64 (line 43) | KindComplex64 constant KindComplex128 (line 44) | KindComplex128 constant KindArray (line 45) | KindArray constant KindChan (line 46) | KindChan constant KindFunc (line 47) | KindFunc constant KindInterface (line 48) | KindInterface constant KindMap (line 49) | KindMap constant KindPtr (line 50) | KindPtr constant KindSlice (line 51) | KindSlice constant KindString (line 52) | KindString constant KindStruct (line 53) | KindStruct constant KindUnsafePointer (line 54) | KindUnsafePointer type Category (line 57) | type Category constant CategoryConstant (line 60) | CategoryConstant Category = 1 constant CategoryBinary (line 61) | CategoryBinary Category = 8 constant CategoryMap (line 62) | CategoryMap Category = 9 constant CategoryList (line 63) | CategoryList Category = 10 constant CategorySet (line 64) | CategorySet Category = 11 constant CategoryEnum (line 65) | CategoryEnum Category = 12 constant CategoryStruct (line 66) | CategoryStruct Category = 13 constant CategoryUnion (line 67) | CategoryUnion Category = 14 constant CategoryException (line 68) | CategoryException Category = 15 constant CategoryTypedef (line 69) | CategoryTypedef Category = 16 constant CategoryService (line 70) | CategoryService Category = 17 type Model (line 73) | type Model struct method IsEmpty (line 91) | func (m Model) IsEmpty() bool { type Models (line 96) | type Models method MergeMap (line 98) | func (a *Models) MergeMap(b map[string]*Model) { method MergeArray (line 113) | func (a *Models) MergeArray(b []*Model) { type RequiredNess (line 128) | type RequiredNess constant RequiredNess_Default (line 131) | RequiredNess_Default RequiredNess = 0 constant RequiredNess_Required (line 132) | RequiredNess_Required RequiredNess = 1 constant RequiredNess_Optional (line 133) | RequiredNess_Optional RequiredNess = 2 type Type (line 136) | type Type struct method ResolveDefaultValue (line 146) | func (rt *Type) ResolveDefaultValue() string { method ResolveNameForTypedef (line 163) | func (rt *Type) ResolveNameForTypedef(scope *Model) (string, error) { method ResolveName (line 212) | func (rt *Type) ResolveName(scope *Model) (string, error) { method IsBinary (line 280) | func (rt *Type) IsBinary() bool { method IsBaseType (line 284) | func (rt *Type) IsBaseType() bool { method IsSettable (line 288) | func (rt *Type) IsSettable() bool { type TypeDef (line 296) | type TypeDef struct type Constant (line 302) | type Constant struct type Literal (line 309) | type Literal interface type Variable (line 313) | type Variable struct type Function (line 320) | type Function struct type Method (line 328) | type Method struct type Enum (line 336) | type Enum struct type Struct (line 343) | type Struct struct type Field (line 351) | type Field struct method GenGoTags (line 411) | func (f Field) GenGoTags() string { type Oneof (line 364) | type Oneof struct type Choice (line 371) | type Choice struct type Tags (line 377) | type Tags method String (line 385) | func (ts Tags) String() string { method Remove (line 393) | func (ts *Tags) Remove(name string) { method Len (line 403) | func (ts Tags) Len() int { return len(ts) } method Less (line 405) | func (ts Tags) Less(i, j int) bool { method Swap (line 409) | func (ts Tags) Swap(i, j int) { ts[i], ts[j] = ts[j], ts[i] } type Tag (line 379) | type Tag struct FILE: cmd/hz/generator/model_test.go type StringValue (line 27) | type StringValue struct method Expression (line 31) | func (sv *StringValue) Expression() string { function TestIdlGenerator_GenModel (line 35) | func TestIdlGenerator_GenModel(t *testing.T) { FILE: cmd/hz/generator/package.go type HttpPackage (line 33) | type HttpPackage struct type Service (line 41) | type Service struct type HttpPackageGenerator (line 52) | type HttpPackageGenerator struct method Init (line 82) | func (pkgGen *HttpPackageGenerator) Init() error { method checkInited (line 142) | func (pkgGen *HttpPackageGenerator) checkInited() (bool, error) { method Generate (line 151) | func (pkgGen *HttpPackageGenerator) Generate(pkg *HttpPackage) error { FILE: cmd/hz/generator/package_tpl.go function IsDefaultPackageTpl (line 48) | func IsDefaultPackageTpl(name string) bool { FILE: cmd/hz/generator/router.go type Router (line 34) | type Router struct type RouterNode (line 41) | type RouterNode struct method Sort (line 75) | func (routerNode *RouterNode) Sort() { method Update (line 79) | func (routerNode *RouterNode) Update(method *HttpMethod, handlerType, ... method RawHandlerName (line 97) | func (routerNode *RouterNode) RawHandlerName() string { method DyeGroupName (line 105) | func (routerNode *RouterNode) DyeGroupName(snakeStyleMiddleware bool) ... method DFS (line 179) | func (routerNode *RouterNode) DFS(i int, hook func(layer int, node *Ro... method Insert (line 198) | func (routerNode *RouterNode) Insert(name string, method *HttpMethod, ... method FindNearest (line 254) | func (routerNode *RouterNode) FindNearest(paths []string, method strin... type RegisterInfo (line 58) | type RegisterInfo struct function NewRouterTree (line 65) | func NewRouterTree() *RouterNode { function getHttpMethod (line 247) | func getHttpMethod(method string) string { type childrenRouterInfo (line 281) | type childrenRouterInfo method Len (line 284) | func (c childrenRouterInfo) Len() int { method Less (line 290) | func (c childrenRouterInfo) Less(i, j int) bool { method Swap (line 321) | func (c childrenRouterInfo) Swap(i, j int) { function removeNonLetterPrefix (line 311) | func removeNonLetterPrefix(str string) string { method updateRegister (line 330) | func (pkgGen *HttpPackageGenerator) updateRegister(pkg, rDir, pkgName st... function checkDupRegister (line 377) | func checkDupRegister(file []byte, insertReg string) bool { function appendMw (line 381) | func appendMw(mws []string, mw string) ([]string, string) { function stringsIncludes (line 395) | func stringsIncludes(strs []string, str string) bool { method genRouter (line 404) | func (pkgGen *HttpPackageGenerator) genRouter(pkg *HttpPackage, root *Ro... method updateMiddlewareReg (line 473) | func (pkgGen *HttpPackageGenerator) updateMiddlewareReg(router interface... function convertToMiddlewareName (line 540) | func convertToMiddlewareName(path string) string { FILE: cmd/hz/generator/router_test.go function Test_checkDupRegister (line 21) | func Test_checkDupRegister(t *testing.T) { FILE: cmd/hz/generator/template.go type TemplateConfig (line 35) | type TemplateConfig struct constant Skip (line 40) | Skip = "skip" constant Cover (line 41) | Cover = "cover" constant Append (line 42) | Append = "append" type Template (line 45) | type Template struct type UpdateBehavior (line 56) | type UpdateBehavior struct type TemplateGenerator (line 67) | type TemplateGenerator struct method Init (line 80) | func (tg *TemplateGenerator) Init() error { method loadLayout (line 143) | func (tg *TemplateGenerator) loadLayout(layout Template, tplName strin... method Generate (line 161) | func (tg *TemplateGenerator) Generate(input interface{}, tplName, file... method Persist (line 218) | func (tg *TemplateGenerator) Persist() error { method GetFormatAndExcludedFiles (line 268) | func (tg *TemplateGenerator) GetFormatAndExcludedFiles() ([]File, erro... method Files (line 307) | func (tg *TemplateGenerator) Files() []File { method Degenerate (line 311) | func (tg *TemplateGenerator) Degenerate() error { FILE: cmd/hz/generator/template_funcs.go function getUniqueHandlerOutDir (line 42) | func getUniqueHandlerOutDir(methods []*HttpMethod) (ret []string) { FILE: cmd/hz/main.go function main (line 26) | func main() { function Run (line 34) | func Run() { FILE: cmd/hz/meta/const.go constant Version (line 25) | Version = "v0.9.7" constant DefaultServiceName (line 27) | DefaultServiceName = "hertz_service" type Mode (line 30) | type Mode constant SysType (line 33) | SysType = runtime.GOOS constant WindowsOS (line 35) | WindowsOS = "windows" constant EnvPluginMode (line 37) | EnvPluginMode = "HERTZ_PLUGIN_MODE" constant CmdUpdate (line 41) | CmdUpdate = "update" constant CmdNew (line 42) | CmdNew = "new" constant CmdModel (line 43) | CmdModel = "model" constant CmdClient (line 44) | CmdClient = "client" constant IdlThrift (line 49) | IdlThrift = "thrift" constant IdlProto (line 50) | IdlProto = "proto" constant TpCompilerThrift (line 55) | TpCompilerThrift = "thriftgo" constant TpCompilerProto (line 56) | TpCompilerProto = "protoc" constant ProtocPluginName (line 61) | ProtocPluginName = "protoc-gen-hertz" constant ThriftPluginName (line 62) | ThriftPluginName = "thrift-gen-hertz" constant LoadError (line 67) | LoadError = 1 constant GenerateLayoutError (line 68) | GenerateLayoutError = 2 constant PersistError (line 69) | PersistError = 3 constant PluginError (line 70) | PluginError = 4 constant ModelDir (line 75) | ModelDir = "biz" + string(filepath.Separator) + "model" constant RouterDir (line 76) | RouterDir = "biz" + string(filepath.Separator) + "router" constant HandlerDir (line 77) | HandlerDir = "biz" + string(filepath.Separator) + "handler" type Backend (line 81) | type Backend constant BackendGolang (line 84) | BackendGolang Backend = "golang" constant SetBodyParam (line 89) | SetBodyParam = "setBodyParam(req).\n" constant TheUseOptionMessage (line 93) | TheUseOptionMessage = "'model code' is not generated due to the '-use' o... constant AddThriftReplace (line 95) | AddThriftReplace = "do not generate 'go.mod', please add 'replace github... FILE: cmd/hz/meta/manifest.go constant ManifestFile (line 29) | ManifestFile = ".hz" type Manifest (line 31) | type Manifest struct method InitAndValidate (line 45) | func (manifest *Manifest) InitAndValidate(dir string) error { method String (line 66) | func (manifest *Manifest) String() string { method Persist (line 73) | func (manifest *Manifest) Persist(dir string) error { function init (line 40) | func init() { constant hzTitle (line 64) | hzTitle = "// Code generated by hz. DO NOT EDIT." function loadConfigFile (line 85) | func loadConfigFile(path string) (*Manifest, error) { FILE: cmd/hz/meta/manifest_test.go function TestValidate (line 25) | func TestValidate(t *testing.T) { FILE: cmd/hz/protobuf/api/api.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) function init (line 656) | func init() { file_api_proto_init() } function file_api_proto_init (line 657) | func file_api_proto_init() { FILE: cmd/hz/protobuf/ast.go function getGoPackage (line 44) | func getGoPackage(f *descriptorpb.FileDescriptorProto, pkgMap map[string... function switchBaseType (line 72) | func switchBaseType(typ descriptorpb.FieldDescriptorProto_Type) *model.T... function astToService (line 110) | func astToService(ast *descriptorpb.FileDescriptorProto, resolver *Resol... function getCompatibleAnnotation (line 274) | func getCompatibleAnnotation(options proto.Message, anno, compatibleAnno... function parseAnnotationToClient (line 284) | func parseAnnotationToClient(clientMethod *generator.ClientMethod, gen *... function getMethod (line 376) | func getMethod(file *protogen.File, s *descriptorpb.ServiceDescriptorPro... function astToModel (line 392) | func astToModel(ast *descriptorpb.FileDescriptorProto, rs *Resolver) (*m... function getMessageLeadingComments (line 581) | func getMessageLeadingComments(stMessage *desc.MessageDescriptor) string { function getFiledComments (line 592) | func getFiledComments(f *descriptorpb.FieldDescriptorProto, stMessage *d... function formatComments (line 611) | func formatComments(comments string) string { function getNestedMessageInfoMap (line 623) | func getNestedMessageInfoMap(stMessage *desc.MessageDescriptor) map[stri... function parseDefaultValue (line 635) | func parseDefaultValue(typ descriptorpb.FieldDescriptorProto_Type, val s... function isPointer (line 660) | func isPointer(f *descriptorpb.FieldDescriptorProto, isProto3 bool) bool { function resolveOneof (line 683) | func resolveOneof(stMessage *desc.MessageDescriptor, oneofMap map[string... function getNewFieldName (line 747) | func getNewFieldName(fieldName string, fieldNameSet map[string]bool) str... function checkDuplicatedFileName (line 755) | func checkDuplicatedFileName(vs []model.Field) { FILE: cmd/hz/protobuf/plugin.go type Plugin (line 73) | type Plugin struct method Run (line 99) | func (plugin *Plugin) Run() int { method setLogger (line 158) | func (plugin *Plugin) setLogger() { method recvWarningLogger (line 165) | func (plugin *Plugin) recvWarningLogger() string { method recvVerboseLogger (line 172) | func (plugin *Plugin) recvVerboseLogger() string { method parseArgs (line 181) | func (plugin *Plugin) parseArgs(param string) (*config.Argument, error) { method Response (line 203) | func (plugin *Plugin) Response(resp *pluginpb.CodeGeneratorResponse) e... method Handle (line 215) | func (plugin *Plugin) Handle(req *pluginpb.CodeGeneratorRequest, args ... method fixGoPackage (line 309) | func (plugin *Plugin) fixGoPackage(req *pluginpb.CodeGeneratorRequest,... method fixModelPathAndPackage (line 334) | func (plugin *Plugin) fixModelPathAndPackage(pkg string) (impt string) { method GenerateFiles (line 355) | func (plugin *Plugin) GenerateFiles(pluginPb *protogen.Plugin) error { method GenerateFile (line 382) | func (plugin *Plugin) GenerateFile(gen *protogen.Plugin, f *protogen.F... method getIdlInfo (line 555) | func (plugin *Plugin) getIdlInfo(ast *descriptorpb.FileDescriptorProto... method genHttpPackage (line 596) | func (plugin *Plugin) genHttpPackage(ast *descriptorpb.FileDescriptorP... type RemoveTags (line 86) | type RemoveTags method Exist (line 88) | func (rm *RemoveTags) Exist(tag string) bool { function generateFile (line 401) | func generateFile(gen *protogen.Plugin, file *protogen.File, rmTags Remo... function genMessage (line 445) | func genMessage(g *protogen.GeneratedFile, f *fileInfo, m *messageInfo, ... function genMessageFields (line 470) | func genMessageFields(g *protogen.GeneratedFile, f *fileInfo, m *message... function genMessageField (line 483) | func genMessageField(g *protogen.GeneratedFile, f *fileInfo, m *messageI... FILE: cmd/hz/protobuf/plugin_stubs.go constant FileDescriptorProto_Name_field_number (line 64) | FileDescriptorProto_Name_field_number protoreflect.FieldNumb... constant FileDescriptorProto_Package_field_number (line 65) | FileDescriptorProto_Package_field_number protoreflect.FieldNumb... constant FileDescriptorProto_Dependency_field_number (line 66) | FileDescriptorProto_Dependency_field_number protoreflect.FieldNumb... constant FileDescriptorProto_PublicDependency_field_number (line 67) | FileDescriptorProto_PublicDependency_field_number protoreflect.FieldNumb... constant FileDescriptorProto_WeakDependency_field_number (line 68) | FileDescriptorProto_WeakDependency_field_number protoreflect.FieldNumb... constant FileDescriptorProto_MessageType_field_number (line 69) | FileDescriptorProto_MessageType_field_number protoreflect.FieldNumb... constant FileDescriptorProto_EnumType_field_number (line 70) | FileDescriptorProto_EnumType_field_number protoreflect.FieldNumb... constant FileDescriptorProto_Service_field_number (line 71) | FileDescriptorProto_Service_field_number protoreflect.FieldNumb... constant FileDescriptorProto_Extension_field_number (line 72) | FileDescriptorProto_Extension_field_number protoreflect.FieldNumb... constant FileDescriptorProto_Options_field_number (line 73) | FileDescriptorProto_Options_field_number protoreflect.FieldNumb... constant FileDescriptorProto_SourceCodeInfo_field_number (line 74) | FileDescriptorProto_SourceCodeInfo_field_number protoreflect.FieldNumb... constant FileDescriptorProto_Syntax_field_number (line 75) | FileDescriptorProto_Syntax_field_number protoreflect.FieldNumb... constant WeakFieldPrefix_goname (line 78) | WeakFieldPrefix_goname = "XXX_weak_" type fileInfo (line 80) | type fileInfo struct type enumInfo (line 98) | type enumInfo struct type messageInfo (line 105) | type messageInfo struct type extensionInfo (line 115) | type extensionInfo struct type structFields (line 119) | type structFields struct method append (line 124) | func (sf *structFields) append(name string) { type structTags (line 134) | type structTags method String (line 136) | func (tags structTags) String() string { type goImportPath (line 151) | type goImportPath interface type trailingComment (line 156) | type trailingComment method String (line 158) | func (c trailingComment) String() string { function newFileInfo (line 181) | func newFileInfo(file *protogen.File) *fileInfo function genPackageKnownComment (line 184) | func genPackageKnownComment(f *fileInfo) protogen.Comments function genStandaloneComments (line 187) | func genStandaloneComments(g *protogen.GeneratedFile, f *fileInfo, n int32) function genGeneratedHeader (line 190) | func genGeneratedHeader(gen *protogen.Plugin, g *protogen.GeneratedFile,... function genImport (line 193) | func genImport(gen *protogen.Plugin, g *protogen.GeneratedFile, f *fileI... function genEnum (line 196) | func genEnum(g *protogen.GeneratedFile, f *fileInfo, e *enumInfo) function genMessageInternalFields (line 199) | func genMessageInternalFields(g *protogen.GeneratedFile, f *fileInfo, m ... function genExtensions (line 202) | func genExtensions(g *protogen.GeneratedFile, f *fileInfo) function genReflectFileDescriptor (line 205) | func genReflectFileDescriptor(gen *protogen.Plugin, g *protogen.Generate... function appendDeprecationSuffix (line 208) | func appendDeprecationSuffix(prefix protogen.Comments, deprecated bool) ... function genMessageDefaultDecls (line 211) | func genMessageDefaultDecls(g *protogen.GeneratedFile, f *fileInfo, m *m... function genMessageKnownFunctions (line 214) | func genMessageKnownFunctions(g *protogen.GeneratedFile, f *fileInfo, m ... function genMessageMethods (line 217) | func genMessageMethods(g *protogen.GeneratedFile, f *fileInfo, m *messag... function genMessageOneofWrapperTypes (line 220) | func genMessageOneofWrapperTypes(g *protogen.GeneratedFile, f *fileInfo,... function oneofInterfaceName (line 223) | func oneofInterfaceName(oneof *protogen.Oneof) string function fieldGoType (line 226) | func fieldGoType(g *protogen.GeneratedFile, f *fileInfo, field *protogen... function fieldProtobufTagValue (line 229) | func fieldProtobufTagValue(field *protogen.Field) string function fieldJSONTagValue (line 232) | func fieldJSONTagValue(field *protogen.Field) string FILE: cmd/hz/protobuf/plugin_test.go function TestPlugin_Handle (line 29) | func TestPlugin_Handle(t *testing.T) { function TestFixModelPathAndPackage (line 52) | func TestFixModelPathAndPackage(t *testing.T) { FILE: cmd/hz/protobuf/resolver.go type Symbol (line 29) | type Symbol struct type NameSpace (line 38) | type NameSpace type PackageReference (line 61) | type PackageReference struct function getReferPkgMap (line 69) | func getReferPkgMap(pkgMap map[string]string, incs []*descriptorpb.FileD... type FileInfos (line 106) | type FileInfos struct type Resolver (line 111) | type Resolver struct method GetRefModel (line 187) | func (resolver *Resolver) GetRefModel(includeBase string) (*model.Mode... method getBaseType (line 198) | func (resolver *Resolver) getBaseType(f *descriptorpb.FieldDescriptorP... method ResolveType (line 249) | func (resolver *Resolver) ResolveType(f *descriptorpb.FieldDescriptorP... method ResolveIdentifier (line 267) | func (resolver *Resolver) ResolveIdentifier(id string) (ret *Symbol, e... method getFieldType (line 290) | func (resolver *Resolver) getFieldType(f *descriptorpb.FieldDescriptor... method Get (line 305) | func (resolver *Resolver) Get(name string) *Symbol { method ExportReferred (line 337) | func (resolver *Resolver) ExportReferred(all, needMain bool) (ret []*P... method LoadAll (line 354) | func (resolver *Resolver) LoadAll(ast *descriptorpb.FileDescriptorProt... method LoadOne (line 461) | func (resolver *Resolver) LoadOne(ast *descriptorpb.FileDescriptorProt... method GetFiles (line 528) | func (resolver *Resolver) GetFiles() FileInfos { function updateFiles (line 124) | func updateFiles(fileName string, files FileInfos) (FileInfos, error) { function NewResolver (line 150) | func NewResolver(ast *descriptorpb.FileDescriptorProto, files FileInfos,... function IsMapEntry (line 224) | func IsMapEntry(nt *descriptorpb.DescriptorProto) bool { function checkListType (line 229) | func checkListType(typ *model.Type, label descriptorpb.FieldDescriptorPr... function getNestedType (line 238) | func getNestedType(f *descriptorpb.FieldDescriptorProto, nested []*descr... function mergeNamespace (line 383) | func mergeNamespace(first, second NameSpace) NameSpace { function LoadBaseIdentifier (line 392) | func LoadBaseIdentifier(ast *descriptorpb.FileDescriptorProto) map[strin... FILE: cmd/hz/protobuf/tag_test.go function TestTagGenerate (line 29) | func TestTagGenerate(t *testing.T) { FILE: cmd/hz/protobuf/tags.go function CheckTagOption (line 42) | func CheckTagOption(args *config.Argument) (ret []generator.Option) { function checkSnakeName (line 61) | func checkSnakeName(name string) string { type httpOption (line 97) | type httpOption struct type httpOptions (line 102) | type httpOptions method Len (line 104) | func (s httpOptions) Len() int { method Swap (line 108) | func (s httpOptions) Swap(i, j int) { method Less (line 112) | func (s httpOptions) Less(i, j int) bool { function getAllOptions (line 116) | func getAllOptions(extensions map[*protoimpl.ExtensionInfo]string, opts ... function checkFirstOptions (line 129) | func checkFirstOptions(extensions map[*protoimpl.ExtensionInfo]string, o... function checkFirstOption (line 141) | func checkFirstOption(ext *protoimpl.ExtensionInfo, opts ...protoreflect... function checkOption (line 151) | func checkOption(ext *protoimpl.ExtensionInfo, opts ...protoreflect.Prot... function tag (line 161) | func tag(k string, v interface{}) model.Tag { function defaultBindingTags (line 170) | func defaultBindingTags(f *descriptorpb.FieldDescriptorProto) []model.Tag { function jsonTag (line 196) | func jsonTag(f *descriptorpb.FieldDescriptorProto) (ret model.Tag) { function injectTagsToModel (line 212) | func injectTagsToModel(f *descriptorpb.FieldDescriptorProto, gf *model.F... function getJsonValue (line 269) | func getJsonValue(f *descriptorpb.FieldDescriptorProto, val string) stri... function checkRequire (line 284) | func checkRequire(f *descriptorpb.FieldDescriptorProto, val string) stri... function m2s (line 294) | func m2s(mt model.Tag) (ret [2]string) { function reflectJsonTag (line 300) | func reflectJsonTag(f protoreflect.FieldDescriptor) (ret model.Tag) { function defaultBindingStructTags (line 318) | func defaultBindingStructTags(f protoreflect.FieldDescriptor) []model.Tag { function injectTagsToStructTags (line 375) | func injectTagsToStructTags(f protoreflect.FieldDescriptor, out *structT... function getStructJsonValue (line 451) | func getStructJsonValue(f protoreflect.FieldDescriptor, val string) stri... function checkStructRequire (line 467) | func checkStructRequire(f protoreflect.FieldDescriptor, val string) stri... FILE: cmd/hz/thrift/ast.go function getGoPackage (line 38) | func getGoPackage(ast *parser.Thrift, pkgMap map[string]string) string { function astToService (line 54) | func astToService(ast *parser.Thrift, resolver *Resolver, args *config.A... function newHTTPMethod (line 235) | func newHTTPMethod(s *parser.Service, m *parser.Function, method *genera... function parseAnnotationToClient (line 247) | func parseAnnotationToClient(clientMethod *generator.ClientMethod, p *pa... type extendServiceList (line 356) | type extendServiceList method exist (line 358) | func (svr extendServiceList) exist(serviceName string) bool { function getExtendServices (line 367) | func getExtendServices(ast *parser.Thrift) (res extendServiceList) { function getAllExtendFunction (line 378) | func getAllExtendFunction(svc *parser.Service, ast *parser.Thrift, resol... function processExtendsType (line 449) | func processExtendsType(f *parser.Function, base string) { function getUniqueResolveDependentName (line 496) | func getUniqueResolveDependentName(name string, resolver *Resolver) stri... function addResolverDependency (line 508) | func addResolverDependency(resolver *Resolver, ast *parser.Thrift, args ... function switchBaseType (line 557) | func switchBaseType(typ *parser.Type) *model.Type { function newBaseType (line 583) | func newBaseType(typ *model.Type, cg model.Category) *model.Type { function newStructType (line 589) | func newStructType(name string, cg model.Category) *model.Type { function newEnumType (line 601) | func newEnumType(name string, cg model.Category) *model.Type { function newFuncType (line 610) | func newFuncType(name string, cg model.Category) *model.Type { method getFieldType (line 622) | func (resolver *Resolver) getFieldType(typ *parser.Type) (*model.Type, e... type ResolvedSymbol (line 633) | type ResolvedSymbol struct method Expression (line 639) | func (rs ResolvedSymbol) Expression() string { function astToModel (line 661) | func astToModel(ast *parser.Thrift, rs *Resolver) (*model.Model, error) { function removeCommentsSlash (line 886) | func removeCommentsSlash(comments string) string { function isPointer (line 894) | func isPointer(f *parser.Field, rs *Resolver) (bool, error) { function getNewFieldName (line 913) | func getNewFieldName(fieldName string, fieldNameSet map[string]bool) str... function checkDuplicatedFileName (line 921) | func checkDuplicatedFileName(vs []model.Field) { FILE: cmd/hz/thrift/plugin.go type Plugin (line 41) | type Plugin struct method Run (line 59) | func (plugin *Plugin) Run() int { method Handle (line 117) | func (plugin *Plugin) Handle(args *config.Argument) (*thriftgo_plugin.... method setLogger (line 235) | func (plugin *Plugin) setLogger() { method recvWarningLogger (line 242) | func (plugin *Plugin) recvWarningLogger() string { method recvVerboseLogger (line 249) | func (plugin *Plugin) recvVerboseLogger() string { method handleRequest (line 258) | func (plugin *Plugin) handleRequest() ([]byte, error) { method parseArgs (line 275) | func (plugin *Plugin) parseArgs() (*config.Argument, error) { method initNameStyle (line 289) | func (plugin *Plugin) initNameStyle() error { method getPackageInfo (line 307) | func (plugin *Plugin) getPackageInfo() (*generator.HttpPackage, error) { method response (line 355) | func (plugin *Plugin) response(res *thriftgo_plugin.Response) error { method InsertTag (line 367) | func (plugin *Plugin) InsertTag() ([]*thriftgo_plugin.Generated, error) { method GetResponse (line 422) | func (plugin *Plugin) GetResponse(files []generator.File, outputDir st... function NewPlugin (line 50) | func NewPlugin(args *config.Argument, req *thriftgo_plugin.Request) *Plu... function getTagString (line 445) | func getTagString(f *parser.Field, rmTags []string) (string, error) { FILE: cmd/hz/thrift/plugin_test.go function TestRun (line 28) | func TestRun(t *testing.T) { FILE: cmd/hz/thrift/resolver.go type PackageReference (line 49) | type PackageReference struct function getReferPkgMap (line 57) | func getReferPkgMap(pkgMap map[string]string, incs []*parser.Include, ma... type Symbol (line 93) | type Symbol struct type NameSpace (line 100) | type NameSpace type Resolver (line 102) | type Resolver struct method GetRefModel (line 132) | func (resolver *Resolver) GetRefModel(includeBase string) (*model.Mode... method getBaseType (line 143) | func (resolver *Resolver) getBaseType(typ *parser.Type) (*model.Type, ... method ResolveType (line 163) | func (resolver *Resolver) ResolveType(typ *parser.Type) (*model.Type, ... method ResolveConstantValue (line 204) | func (resolver *Resolver) ResolveConstantValue(constant *parser.ConstV... method ResolveIdentifier (line 256) | func (resolver *Resolver) ResolveIdentifier(id string) (ret ResolvedSy... method ResolveTypeName (line 290) | func (resolver *Resolver) ResolveTypeName(typ *parser.Type) (string, e... method Get (line 336) | func (resolver *Resolver) Get(name string) *Symbol { method ExportReferred (line 354) | func (resolver *Resolver) ExportReferred(all, needMain bool) (ret []*P... method LoadAll (line 371) | func (resolver *Resolver) LoadAll(ast *parser.Thrift) error { method LoadOne (line 465) | func (resolver *Resolver) LoadOne(ast *parser.Thrift) (NameSpace, erro... function NewResolver (line 112) | func NewResolver(ast *parser.Thrift, model *model.Model, pkgMap map[stri... function LoadBaseIdentifier (line 404) | func LoadBaseIdentifier() NameSpace { function switchConstantType (line 580) | func switchConstantType(constant parser.ConstType) (*model.Type, error) { function newTypedefType (line 593) | func newTypedefType(t *model.Type, name string) model.Type { FILE: cmd/hz/thrift/tag_test.go function TestInsertTag (line 28) | func TestInsertTag(t *testing.T) { FILE: cmd/hz/thrift/tags.go constant AnnotationQuery (line 33) | AnnotationQuery = "api.query" constant AnnotationForm (line 34) | AnnotationForm = "api.form" constant AnnotationPath (line 35) | AnnotationPath = "api.path" constant AnnotationHeader (line 36) | AnnotationHeader = "api.header" constant AnnotationCookie (line 37) | AnnotationCookie = "api.cookie" constant AnnotationBody (line 38) | AnnotationBody = "api.body" constant AnnotationRawBody (line 39) | AnnotationRawBody = "api.raw_body" constant AnnotationJsConv (line 40) | AnnotationJsConv = "api.js_conv" constant AnnotationNone (line 41) | AnnotationNone = "api.none" constant AnnotationFileName (line 42) | AnnotationFileName = "api.file_name" constant AnnotationValidator (line 44) | AnnotationValidator = "api.vd" constant AnnotationGoTag (line 46) | AnnotationGoTag = "go.tag" constant ApiGet (line 50) | ApiGet = "api.get" constant ApiPost (line 51) | ApiPost = "api.post" constant ApiPut (line 52) | ApiPut = "api.put" constant ApiPatch (line 53) | ApiPatch = "api.patch" constant ApiDelete (line 54) | ApiDelete = "api.delete" constant ApiOptions (line 55) | ApiOptions = "api.options" constant ApiHEAD (line 56) | ApiHEAD = "api.head" constant ApiAny (line 57) | ApiAny = "api.any" constant ApiPath (line 58) | ApiPath = "api.path" constant ApiSerializer (line 59) | ApiSerializer = "api.serializer" constant ApiGenPath (line 60) | ApiGenPath = "api.handler_path" constant ApiBaseDomain (line 64) | ApiBaseDomain = "api.base_domain" constant ApiServiceGroup (line 65) | ApiServiceGroup = "api.service_group" constant ApiServiceGenDir (line 66) | ApiServiceGenDir = "api.service_gen_dir" constant ApiServicePath (line 67) | ApiServicePath = "api.service_path" function CheckTagOption (line 108) | func CheckTagOption(args *config.Argument) []generator.Option { function checkSnakeName (line 125) | func checkSnakeName(name string) string { function getAnnotation (line 132) | func getAnnotation(input parser.Annotations, target string) []string { type httpAnnotation (line 145) | type httpAnnotation struct type httpAnnotations (line 150) | type httpAnnotations method Len (line 152) | func (s httpAnnotations) Len() int { method Swap (line 156) | func (s httpAnnotations) Swap(i, j int) { method Less (line 160) | func (s httpAnnotations) Less(i, j int) bool { function getAnnotations (line 164) | func getAnnotations(input parser.Annotations, targets map[string]string)... function defaultBindingTags (line 185) | func defaultBindingTags(f *parser.Field) []model.Tag { function jsonTag (line 233) | func jsonTag(f *parser.Field) (ret model.Tag) { function tag (line 248) | func tag(k, v string) model.Tag { function annotationToTags (line 255) | func annotationToTags(as parser.Annotations, targets map[string]string) ... function injectTags (line 268) | func injectTags(f *parser.Field, gf *model.Field, needDefault, needGoTag... function getJsonValue (line 333) | func getJsonValue(f *parser.Field, val string) string { function checkRequire (line 346) | func checkRequire(f *parser.Field, val string) string { function checkGoTag (line 355) | func checkGoTag(as parser.Annotations, tags *model.Tags) error { FILE: cmd/hz/util/ast.go function AddImport (line 31) | func AddImport(file, alias, impt string) ([]byte, error) { function AddImportForContent (line 42) | func AddImportForContent(fileContent []byte, alias, impt string) ([]byte... function addImport (line 52) | func addImport(fset *token.FileSet, f *ast.File, alias, impt string) ([]... FILE: cmd/hz/util/ast_test.go function TestAddImport (line 29) | func TestAddImport(t *testing.T) { FILE: cmd/hz/util/data.go function CopyStringSlice (line 33) | func CopyStringSlice(from, to *[]string) { function CopyString2StringMap (line 45) | func CopyString2StringMap(from, to map[string]string) { function PackArgs (line 54) | func PackArgs(c interface{}) (res []string, err error) { function UnpackArgs (line 123) | func UnpackArgs(args []string, c interface{}) error { function MapForm (line 196) | func MapForm(input []string) (map[string][]string, error) { function GetFirstKV (line 211) | func GetFirstKV(m map[string][]string) (string, []string) { function ToCamelCase (line 218) | func ToCamelCase(name string) string { function ToSnakeCase (line 222) | func ToSnakeCase(name string) string { function unifyPath (line 227) | func unifyPath(path string) string { function BaseName (line 235) | func BaseName(include, subFixToTrim string) string { function BaseNameAndTrim (line 248) | func BaseNameAndTrim(include string) string { function SplitPackageName (line 261) | func SplitPackageName(pkg, subFixToTrim string) string { function SplitPackage (line 271) | func SplitPackage(pkg, subFixToTrim string) string { function ImportToSanitizedPath (line 284) | func ImportToSanitizedPath(path string) string { function ToVarName (line 294) | func ToVarName(paths []string) string { function SplitGoTags (line 313) | func SplitGoTags(input string) []string { function SubPackage (line 339) | func SubPackage(mod, dir string) string { function SubDir (line 346) | func SubDir(root, subPkg string) string { function GetPackageUniqueName (line 357) | func GetPackageUniqueName(name string) (string, error) { function GetMiddlewareUniqueName (line 367) | func GetMiddlewareUniqueName(name string) (string, error) { function GetHandlerPackageUniqueName (line 376) | func GetHandlerPackageUniqueName(name string) (string, error) { function getUniqueName (line 386) | func getUniqueName(name string, uniqueNameSet map[string]bool) (string, ... function ToGoFuncName (line 409) | func ToGoFuncName(s string) string { FILE: cmd/hz/util/data_test.go function TestUniqueName (line 21) | func TestUniqueName(t *testing.T) { FILE: cmd/hz/util/env.go function GetGOPATH (line 33) | func GetGOPATH() (gopath string, err error) { function GetBuildGoPaths (line 61) | func GetBuildGoPaths() []string { function SearchGoMod (line 85) | func SearchGoMod(cwd string, recurse bool) (moduleName, path string, fou... function InitGoMod (line 114) | func InitGoMod(module string) error { function IsWindows (line 136) | func IsWindows() bool { FILE: cmd/hz/util/fs.go function PathExist (line 24) | func PathExist(path string) (bool, error) { function RelativePath (line 36) | func RelativePath(path string) (string, error) { FILE: cmd/hz/util/logs/api.go function init (line 19) | func init() { function SetLogger (line 23) | func SetLogger(logger Logger) { constant LevelDebug (line 28) | LevelDebug = 1 + iota constant LevelInfo (line 29) | LevelInfo constant LevelWarn (line 30) | LevelWarn constant LevelError (line 31) | LevelError type Logger (line 35) | type Logger interface function Errorf (line 46) | func Errorf(format string, v ...interface{}) { function Warnf (line 50) | func Warnf(format string, v ...interface{}) { function Infof (line 54) | func Infof(format string, v ...interface{}) { function Debugf (line 58) | func Debugf(format string, v ...interface{}) { function Error (line 62) | func Error(format string, v ...interface{}) { function Warn (line 66) | func Warn(format string, v ...interface{}) { function Info (line 70) | func Info(format string, v ...interface{}) { function Debug (line 74) | func Debug(format string, v ...interface{}) { function Flush (line 78) | func Flush() { function SetLevel (line 82) | func SetLevel(level int) { FILE: cmd/hz/util/logs/std.go type StdLogger (line 27) | type StdLogger struct method Debugf (line 54) | func (stdLogger *StdLogger) Debugf(format string, v ...interface{}) { method Infof (line 64) | func (stdLogger *StdLogger) Infof(format string, v ...interface{}) { method Warnf (line 74) | func (stdLogger *StdLogger) Warnf(format string, v ...interface{}) { method Errorf (line 84) | func (stdLogger *StdLogger) Errorf(format string, v ...interface{}) { method Flush (line 94) | func (stdLogger *StdLogger) Flush() { method FlushOut (line 101) | func (stdLogger *StdLogger) FlushOut() { method Err (line 106) | func (stdLogger *StdLogger) Err() string { method Warn (line 110) | func (stdLogger *StdLogger) Warn() string { method FlushErr (line 114) | func (stdLogger *StdLogger) FlushErr() { method OutLines (line 119) | func (stdLogger *StdLogger) OutLines() []string { method Out (line 128) | func (stdLogger *StdLogger) Out() []byte { method SetLevel (line 132) | func (stdLogger *StdLogger) SetLevel(level int) error { function NewStdLogger (line 39) | func NewStdLogger(level int) *StdLogger { FILE: cmd/hz/util/string.go function Str2Bytes (line 26) | func Str2Bytes(in string) (out []byte) { function Bytes2Str (line 35) | func Bytes2Str(in []byte) (out string) { function TrimLastChar (line 44) | func TrimLastChar(s string) string { function AddSlashForComments (line 53) | func AddSlashForComments(s string) string { function CamelString (line 59) | func CamelString(s string) string { function SnakeString (line 84) | func SnakeString(s string) string { FILE: cmd/hz/util/tool_install.go constant ThriftgoMiniVersion (line 32) | ThriftgoMiniVersion = "v0.2.0" function QueryVersion (line 35) | func QueryVersion(exe string) (version string, err error) { function ShouldUpdate (line 57) | func ShouldUpdate(current, latest string) bool { function InstallAndCheckThriftgo (line 71) | func InstallAndCheckThriftgo() error { function CheckCompiler (line 113) | func CheckCompiler(tool string) (bool, error) { function CheckAndUpdateThriftgo (line 135) | func CheckAndUpdateThriftgo() error { FILE: cmd/hz/util/tool_install_test.go function TestQueryVersion (line 21) | func TestQueryVersion(t *testing.T) { FILE: examples/html_rendering/main.go function formatAsDate (line 31) | func formatAsDate(t time.Time) string { function main (line 36) | func main() { FILE: examples/standard/main.go type Test (line 29) | type Test struct function main (line 34) | func main() { FILE: internal/bytesconv/bytesconv.go constant upperhex (line 53) | upperhex = "0123456789ABCDEF" constant lowerhex (line 54) | lowerhex = "0123456789abcdef" function LowercaseBytes (line 57) | func LowercaseBytes(b []byte) { function B2s (line 69) | func B2s(b []byte) string { type sliceHeader (line 73) | type sliceHeader struct function S2b (line 83) | func S2b(s string) (b []byte) { function EncodedIntHexLen (line 89) | func EncodedIntHexLen(n uint64) int { function AppendIntHex (line 101) | func AppendIntHex(b []byte, n uint64) []byte { function ReadHexInt (line 115) | func ReadHexInt(r network.Reader) (int, error) { function ParseUintBuf (line 150) | func ParseUintBuf(b []byte) (int, int, error) { function AppendUint (line 176) | func AppendUint(dst []byte, n int) []byte { function AppendHTTPDate (line 200) | func AppendHTTPDate(dst []byte, date time.Time) []byte { function AppendQuotedPath (line 204) | func AppendQuotedPath(dst, src []byte) []byte { function AppendQuotedArg (line 221) | func AppendQuotedArg(dst, src []byte) []byte { function ParseHTTPDate (line 236) | func ParseHTTPDate(date []byte) (time.Time, error) { function ParseUint (line 241) | func ParseUint(buf []byte) (int, error) { FILE: internal/bytesconv/bytesconv_32.go constant maxHexIntChars (line 47) | maxHexIntChars = 7 FILE: internal/bytesconv/bytesconv_32_test.go function TestReadHexInt (line 53) | func TestReadHexInt(t *testing.T) { function TestParseUint (line 73) | func TestParseUint(t *testing.T) { function TestParseUintError (line 93) | func TestParseUintError(t *testing.T) { function TestAppendUint (line 116) | func TestAppendUint(t *testing.T) { FILE: internal/bytesconv/bytesconv_64.go constant maxHexIntChars (line 47) | maxHexIntChars = 15 FILE: internal/bytesconv/bytesconv_64_test.go function TestReadHexInt (line 53) | func TestReadHexInt(t *testing.T) { function TestParseUint (line 74) | func TestParseUint(t *testing.T) { function TestParseUintError (line 95) | func TestParseUintError(t *testing.T) { function TestAppendUint (line 118) | func TestAppendUint(t *testing.T) { FILE: internal/bytesconv/bytesconv_table.go constant Hex2intTable (line 48) | Hex2intTable = "\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\... constant ToLowerTable (line 49) | ToLowerTable = "\x00\x01\x02\x03\x04\x05\x06\a\b\t\n\v\f\... constant ToUpperTable (line 50) | ToUpperTable = "\x00\x01\x02\x03\x04\x05\x06\a\b\t\n\v\f\... constant QuotedArgShouldEscapeTable (line 51) | QuotedArgShouldEscapeTable = "\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\... constant QuotedPathShouldEscapeTable (line 52) | QuotedPathShouldEscapeTable = "\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\... constant ValidCookieValueTable (line 53) | ValidCookieValueTable = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\... constant ValidHeaderFieldValueTable (line 54) | ValidHeaderFieldValueTable = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\... constant ValidHeaderFieldNameTable (line 55) | ValidHeaderFieldNameTable = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\... FILE: internal/bytesconv/bytesconv_table_gen.go constant toLower (line 55) | toLower = 'a' - 'A' function main (line 58) | func main() { constant pre (line 250) | pre = `/* FILE: internal/bytesconv/bytesconv_test.go function TestAppendDate (line 28) | func TestAppendDate(t *testing.T) { function TestLowercaseBytes (line 56) | func TestLowercaseBytes(t *testing.T) { function TestB2s (line 72) | func TestB2s(t *testing.T) { function TestS2b (line 88) | func TestS2b(t *testing.T) { function TestAppendIntHex (line 103) | func TestAppendIntHex(t *testing.T) { function testReadHexInt (line 136) | func testReadHexInt(t *testing.T, s string, expectedN int) { function TestAppendQuotedPath (line 145) | func TestAppendQuotedPath(t *testing.T) { function TestAppendQuotedArg (line 169) | func TestAppendQuotedArg(t *testing.T) { function TestParseHTTPDate (line 182) | func TestParseHTTPDate(t *testing.T) { FILE: internal/bytesconv/bytesconv_timing_test.go function BenchmarkValidHeaderFiledValueTableHertz (line 39) | func BenchmarkValidHeaderFiledValueTableHertz(b *testing.B) { FILE: internal/nocopy/nocopy.go type NoCopy (line 26) | type NoCopy struct method Lock (line 28) | func (*NoCopy) Lock() {} method Unlock (line 29) | func (*NoCopy) Unlock() {} FILE: internal/stats/stats_util.go function Record (line 25) | func Record(ti traceinfo.TraceInfo, event stats.Event, err error) { function CalcEventCostUs (line 37) | func CalcEventCostUs(start, end traceinfo.Event) uint64 { FILE: internal/stats/stats_util_test.go function TestUtil (line 28) | func TestUtil(t *testing.T) { FILE: internal/stats/tracer.go type Controller (line 30) | type Controller struct method Append (line 35) | func (ctl *Controller) Append(col tracer.Tracer) { method DoStart (line 40) | func (ctl *Controller) DoStart(ctx context.Context, c *app.RequestCont... method DoFinish (line 51) | func (ctl *Controller) DoFinish(ctx context.Context, c *app.RequestCon... method HasTracer (line 64) | func (ctl *Controller) HasTracer() bool { method tryRecover (line 68) | func (ctl *Controller) tryRecover() { FILE: internal/stats/tracer_test.go type mockTracer (line 30) | type mockTracer struct method Start (line 37) | func (mt *mockTracer) Start(ctx context.Context, c *app.RequestContext... method Finish (line 45) | func (mt *mockTracer) Finish(ctx context.Context, c *app.RequestContex... function TestOrder (line 52) | func TestOrder(t *testing.T) { function TestPanic (line 70) | func TestPanic(t *testing.T) { FILE: internal/tagexpr/example_test.go function Example (line 23) | func Example() { FILE: internal/tagexpr/expr.go type variableKeyType (line 22) | type variableKeyType constant variableKey (line 24) | variableKey variableKeyType = "__ENV_KEY__" type Expr (line 27) | type Expr struct method parseExprNode (line 46) | func (p *Expr) parseExprNode(expr *string, e ExprNode) error { method parseOperand (line 93) | func (p *Expr) parseOperand(expr *string) (e ExprNode) { method parseOperator (line 117) | func (*Expr) parseOperator(expr *string) (e ExprNode) { method run (line 173) | func (p *Expr) run(field string, tagExpr *TagExpr) interface{} { method runWithEnv (line 177) | func (p *Expr) runWithEnv(field string, tagExpr *TagExpr, env map[stri... function parseExpr (line 32) | func parseExpr(expr string) (*Expr, error) { function sortPriority (line 193) | func sortPriority(e ExprNode) { function subSortPriority (line 198) | func subSortPriority(e ExprNode, isLeft bool) bool { function leftOperandToParent (line 211) | func leftOperandToParent(e ExprNode, isLeft bool) { function getPriority (line 231) | func getPriority(e ExprNode) (i int) { type ExprNode (line 254) | type ExprNode interface type exprBackground (line 267) | type exprBackground struct method SetParent (line 273) | func (eb *exprBackground) SetParent(e ExprNode) { method Parent (line 277) | func (eb *exprBackground) Parent() ExprNode { method LeftOperand (line 281) | func (eb *exprBackground) LeftOperand() ExprNode { method RightOperand (line 285) | func (eb *exprBackground) RightOperand() ExprNode { method SetLeftOperand (line 289) | func (eb *exprBackground) SetLeftOperand(left ExprNode) { method SetRightOperand (line 293) | func (eb *exprBackground) SetRightOperand(right ExprNode) { method Run (line 297) | func (*exprBackground) Run(context.Context, string, *TagExpr) interfac... FILE: internal/tagexpr/expr_test.go function TestExpr (line 23) | func TestExpr(t *testing.T) { function TestExprWithEnv (line 134) | func TestExprWithEnv(t *testing.T) { function TestPriority (line 164) | func TestPriority(t *testing.T) { function TestBuiltInFunc (line 192) | func TestBuiltInFunc(t *testing.T) { function TestSyntaxIncorrect (line 228) | func TestSyntaxIncorrect(t *testing.T) { FILE: internal/tagexpr/handler.go type FieldHandler (line 20) | type FieldHandler struct method StringSelector (line 35) | func (f *FieldHandler) StringSelector() string { method FieldSelector (line 40) | func (f *FieldHandler) FieldSelector() FieldSelector { method Value (line 48) | func (f *FieldHandler) Value(initZero bool) reflect.Value { method EvalFuncs (line 53) | func (f *FieldHandler) EvalFuncs() map[ExprSelector]func() interface{} { method StructField (line 67) | func (f *FieldHandler) StructField() reflect.StructField { function newFieldHandler (line 26) | func newFieldHandler(expr *TagExpr, fieldSelector string, field *fieldVM... type ExprHandler (line 72) | type ExprHandler struct method TagExpr (line 90) | func (e *ExprHandler) TagExpr() *TagExpr { method StringSelector (line 95) | func (e *ExprHandler) StringSelector() string { method ExprSelector (line 100) | func (e *ExprHandler) ExprSelector() ExprSelector { method Path (line 105) | func (e *ExprHandler) Path() string { method Eval (line 120) | func (e *ExprHandler) Eval() interface{} { method EvalFloat (line 128) | func (e *ExprHandler) EvalFloat() float64 { method EvalString (line 137) | func (e *ExprHandler) EvalString() string { method EvalBool (line 146) | func (e *ExprHandler) EvalBool() bool { function newExprHandler (line 80) | func newExprHandler(te, tte *TagExpr, base, es string) *ExprHandler { FILE: internal/tagexpr/selector.go constant FieldSeparator (line 24) | FieldSeparator = "." constant ExprNameSeparator (line 27) | ExprNameSeparator = "@" constant DefaultExprName (line 29) | DefaultExprName = ExprNameSeparator type FieldSelector (line 33) | type FieldSelector method Name (line 36) | func (f FieldSelector) Name() string { method Split (line 46) | func (f FieldSelector) Split() (paths []string, name string) { method Parent (line 57) | func (f FieldSelector) Parent() (string, bool) { method String (line 67) | func (f FieldSelector) String() string { type ExprSelector (line 72) | type ExprSelector method Name (line 75) | func (e ExprSelector) Name() string { method Field (line 85) | func (e ExprSelector) Field() string { method ParentField (line 95) | func (e ExprSelector) ParentField() (string, bool) { method Split (line 100) | func (e ExprSelector) Split() (field FieldSelector, name string) { method String (line 110) | func (e ExprSelector) String() string { FILE: internal/tagexpr/selector_test.go function TestExprSelector (line 21) | func TestExprSelector(t *testing.T) { FILE: internal/tagexpr/spec_func.go function MustRegFunc (line 37) | func MustRegFunc(funcName string, fn func(...interface{}) interface{}, f... function RegFunc (line 51) | func RegFunc(funcName string, fn func(...interface{}) interface{}, force... method parseFuncSign (line 62) | func (p *Expr) parseFuncSign(funcName string, expr *string) (boolOpposit... function newFunc (line 99) | func newFunc(funcName string, fn func(...interface{}) interface{}) func(... type funcExprNode (line 114) | type funcExprNode struct method String (line 122) | func (f *funcExprNode) String() string { method Run (line 126) | func (f *funcExprNode) Run(ctx context.Context, currField string, tagE... function init (line 138) | func init() { type regexpFuncExprNode (line 201) | type regexpFuncExprNode struct method String (line 207) | func (re *regexpFuncExprNode) String() string { method Run (line 260) | func (re *regexpFuncExprNode) Run(ctx context.Context, currField strin... function readRegexpFuncExprNode (line 211) | func readRegexpFuncExprNode(p *Expr, expr *string) ExprNode { type sprintfFuncExprNode (line 283) | type sprintfFuncExprNode struct method String (line 289) | func (se *sprintfFuncExprNode) String() string { method Run (line 333) | func (se *sprintfFuncExprNode) Run(ctx context.Context, currField stri... function readSprintfFuncExprNode (line 293) | func readSprintfFuncExprNode(p *Expr, expr *string) ExprNode { FILE: internal/tagexpr/spec_func_test.go function TestFunc (line 25) | func TestFunc(t *testing.T) { function TestRangeIn (line 89) | func TestRangeIn(t *testing.T) { FILE: internal/tagexpr/spec_operand.go type groupExprNode (line 28) | type groupExprNode struct method String (line 47) | func (ge *groupExprNode) String() string { method Run (line 51) | func (ge *groupExprNode) Run(ctx context.Context, currField string, ta... function newGroupExprNode (line 34) | func newGroupExprNode() ExprNode { return &groupExprNode{} } function readGroupExprNode (line 36) | func readGroupExprNode(expr *string) (grp ExprNode, subExprNode *string) { type boolExprNode (line 58) | type boolExprNode struct method String (line 63) | func (be *boolExprNode) String() string { method Run (line 88) | func (be *boolExprNode) Run(ctx context.Context, currField string, tag... function readBoolExprNode (line 69) | func readBoolExprNode(expr *string) ExprNode { type stringExprNode (line 92) | type stringExprNode struct method String (line 97) | func (se *stringExprNode) String() string { method Run (line 112) | func (se *stringExprNode) Run(ctx context.Context, currField string, t... function readStringExprNode (line 101) | func readStringExprNode(expr *string) ExprNode { type digitalExprNode (line 116) | type digitalExprNode struct method String (line 121) | func (de *digitalExprNode) String() string { method Run (line 141) | func (de *digitalExprNode) Run(ctx context.Context, currField string, ... function readDigitalExprNode (line 127) | func readDigitalExprNode(expr *string) ExprNode { type nilExprNode (line 145) | type nilExprNode struct method String (line 150) | func (ne *nilExprNode) String() string { method Run (line 166) | func (ne *nilExprNode) Run(ctx context.Context, currField string, tagE... function readNilExprNode (line 156) | func readNilExprNode(expr *string) ExprNode { type variableExprNode (line 170) | type variableExprNode struct method String (line 176) | func (ve *variableExprNode) String() string { method Run (line 180) | func (ve *variableExprNode) Run(ctx context.Context, variableName stri... function readVariableExprNode (line 200) | func readVariableExprNode(expr *string) ExprNode { function getBoolAndSignOpposite (line 215) | func getBoolAndSignOpposite(expr *string) (last string, boolOpposite *bo... function getOpposite (line 223) | func getOpposite(expr *string, cutset string) (string, *bool) { function toString (line 233) | func toString(i interface{}, enforce bool) (string, bool) { function toFloat64 (line 255) | func toFloat64(i interface{}, tryParse bool) (float64, bool) { function realValue (line 308) | func realValue(v interface{}, boolOpposite *bool, signOpposite *bool) in... FILE: internal/tagexpr/spec_operator.go type additionExprNode (line 24) | type additionExprNode struct method String (line 26) | func (ae *additionExprNode) String() string { method Run (line 32) | func (ae *additionExprNode) Run(ctx context.Context, currField string,... function newAdditionExprNode (line 30) | func newAdditionExprNode() ExprNode { return &additionExprNode{} } type multiplicationExprNode (line 47) | type multiplicationExprNode struct method String (line 49) | func (ae *multiplicationExprNode) String() string { method Run (line 55) | func (ae *multiplicationExprNode) Run(ctx context.Context, currField s... function newMultiplicationExprNode (line 53) | func newMultiplicationExprNode() ExprNode { return &multiplicationExprNo... type divisionExprNode (line 61) | type divisionExprNode struct method String (line 63) | func (de *divisionExprNode) String() string { method Run (line 69) | func (de *divisionExprNode) Run(ctx context.Context, currField string,... function newDivisionExprNode (line 67) | func newDivisionExprNode() ExprNode { return &divisionExprNode{} } type subtractionExprNode (line 78) | type subtractionExprNode struct method String (line 80) | func (de *subtractionExprNode) String() string { method Run (line 86) | func (de *subtractionExprNode) Run(ctx context.Context, currField stri... function newSubtractionExprNode (line 84) | func newSubtractionExprNode() ExprNode { return &subtractionExprNode{} } type remainderExprNode (line 92) | type remainderExprNode struct method String (line 94) | func (re *remainderExprNode) String() string { method Run (line 100) | func (re *remainderExprNode) Run(ctx context.Context, currField string... function newRemainderExprNode (line 98) | func newRemainderExprNode() ExprNode { return &remainderExprNode{} } type equalExprNode (line 109) | type equalExprNode struct method String (line 111) | func (ee *equalExprNode) String() string { method Run (line 117) | func (ee *equalExprNode) Run(ctx context.Context, currField string, ta... function newEqualExprNode (line 115) | func newEqualExprNode() ExprNode { return &equalExprNode{} } type notEqualExprNode (line 146) | type notEqualExprNode struct method String (line 148) | func (ne *notEqualExprNode) String() string { method Run (line 154) | func (ne *notEqualExprNode) Run(ctx context.Context, currField string,... function newNotEqualExprNode (line 152) | func newNotEqualExprNode() ExprNode { return ¬EqualExprNode{} } type greaterExprNode (line 158) | type greaterExprNode struct method String (line 160) | func (ge *greaterExprNode) String() string { method Run (line 166) | func (ge *greaterExprNode) Run(ctx context.Context, currField string, ... function newGreaterExprNode (line 164) | func newGreaterExprNode() ExprNode { return &greaterExprNode{} } type greaterEqualExprNode (line 183) | type greaterEqualExprNode struct method String (line 185) | func (ge *greaterEqualExprNode) String() string { method Run (line 191) | func (ge *greaterEqualExprNode) Run(ctx context.Context, currField str... function newGreaterEqualExprNode (line 189) | func newGreaterEqualExprNode() ExprNode { return &greaterEqualExprNode{} } type lessExprNode (line 208) | type lessExprNode struct method String (line 210) | func (le *lessExprNode) String() string { method Run (line 216) | func (le *lessExprNode) Run(ctx context.Context, currField string, tag... function newLessExprNode (line 214) | func newLessExprNode() ExprNode { return &lessExprNode{} } type lessEqualExprNode (line 233) | type lessEqualExprNode struct method String (line 235) | func (le *lessEqualExprNode) String() string { method Run (line 241) | func (le *lessEqualExprNode) Run(ctx context.Context, currField string... function newLessEqualExprNode (line 239) | func newLessEqualExprNode() ExprNode { return &lessEqualExprNode{} } type andExprNode (line 258) | type andExprNode struct method String (line 260) | func (ae *andExprNode) String() string { method Run (line 266) | func (ae *andExprNode) Run(ctx context.Context, currField string, tagE... function newAndExprNode (line 264) | func newAndExprNode() ExprNode { return &andExprNode{} } type orExprNode (line 275) | type orExprNode struct method String (line 277) | func (oe *orExprNode) String() string { method Run (line 283) | func (oe *orExprNode) Run(ctx context.Context, currField string, tagEx... function newOrExprNode (line 281) | func newOrExprNode() ExprNode { return &orExprNode{} } FILE: internal/tagexpr/spec_range.go type rangeCtxKey (line 23) | type rangeCtxKey constant rangeKey (line 26) | rangeKey rangeCtxKey = "#k" constant rangeValue (line 27) | rangeValue rangeCtxKey = "#v" constant rangeLen (line 28) | rangeLen rangeCtxKey = "##" type rangeKvExprNode (line 31) | type rangeKvExprNode struct method String (line 38) | func (re *rangeKvExprNode) String() string { method Run (line 77) | func (re *rangeKvExprNode) Run(ctx context.Context, _ string, _ *TagEx... method readRangeKvExprNode (line 42) | func (p *Expr) readRangeKvExprNode(expr *string) ExprNode { function findRangeKv (line 58) | func findRangeKv(expr *string) (name string, boolOpposite, signOpposite ... type rangeFuncExprNode (line 91) | type rangeFuncExprNode struct method String (line 99) | func (e *rangeFuncExprNode) String() string { method Run (line 121) | func (e *rangeFuncExprNode) Run(ctx context.Context, currField string,... function readRangeFuncExprNode (line 105) | func readRangeFuncExprNode(p *Expr, expr *string) ExprNode { FILE: internal/tagexpr/spec_range_test.go function TestIssue12 (line 24) | func TestIssue12(t *testing.T) { FILE: internal/tagexpr/spec_selector.go type selectorExprNode (line 24) | type selectorExprNode struct method String (line 32) | func (se *selectorExprNode) String() string { method Run (line 95) | func (se *selectorExprNode) Run(ctx context.Context, currField string,... method readSelectorExprNode (line 36) | func (p *Expr) readSelectorExprNode(expr *string) ExprNode { function findSelector (line 62) | func findSelector(expr *string) (field string, name string, subSelector ... FILE: internal/tagexpr/spec_test.go function TestReadPairedSymbol (line 23) | func TestReadPairedSymbol(t *testing.T) { function TestReadBoolExprNode (line 46) | func TestReadBoolExprNode(t *testing.T) { function TestReadDigitalExprNode (line 70) | func TestReadDigitalExprNode(t *testing.T) { function TestFindSelector (line 99) | func TestFindSelector(t *testing.T) { FILE: internal/tagexpr/tagexpr.go type VM (line 37) | type VM struct method MustRun (line 90) | func (vm *VM) MustRun(structOrStructPtrOrReflectValue interface{}) *Ta... method Run (line 112) | func (vm *VM) Run(structPtrOrReflectValue interface{}) (*TagExpr, erro... method RunAny (line 158) | func (vm *VM) RunAny(v interface{}, fn func(*TagExpr, error) error) er... method subRunAll (line 174) | func (vm *VM) subRunAll(omitNil bool, tePath string, value reflect.Val... method subRun (line 249) | func (vm *VM) subRun(path string, t reflect.Type, tid uintptr, ptr uns... method registerStructLocked (line 272) | func (vm *VM) registerStructLocked(structType reflect.Type) (*structVM... method registerIndirectStructLocked (line 343) | func (vm *VM) registerIndirectStructLocked(field *fieldVM) error { method newStructVM (line 418) | func (vm *VM) newStructVM() *structVM { method getStructType (line 728) | func (vm *VM) getStructType(t reflect.Type) (reflect.Type, error) { type structVM (line 44) | type structVM struct method newFieldVM (line 429) | func (s *structVM) newFieldVM(structField reflect.StructField) (*field... method mergeSubStructVM (line 492) | func (s *structVM) mergeSubStructVM(field *fieldVM, sub *structVM) { method newChildField (line 531) | func (s *structVM) newChildField(parent *fieldVM, child *fieldVM, toBi... method setIfaceTagExprGetter (line 622) | func (s *structVM) setIfaceTagExprGetter(f *fieldVM) { method newTagExpr (line 739) | func (s *structVM) newTagExpr(ptr unsafe.Pointer, path string) *TagExpr { type fieldVM (line 57) | type fieldVM struct method ensureInit (line 476) | func (f *fieldVM) ensureInit(v reflect.Value) { method getElemPtr (line 606) | func (f *fieldVM) getElemPtr(ptr unsafe.Pointer) unsafe.Pointer { method packRawFrom (line 614) | func (f *fieldVM) packRawFrom(ptr unsafe.Pointer) reflect.Value { method packElemFrom (line 618) | func (f *fieldVM) packElemFrom(ptr unsafe.Pointer) reflect.Value { method setFloatGetter (line 641) | func (f *fieldVM) setFloatGetter() { method setBoolGetter (line 661) | func (f *fieldVM) setBoolGetter() { method setStringGetter (line 681) | func (f *fieldVM) setStringGetter() { method setLengthGetter (line 701) | func (f *fieldVM) setLengthGetter() { method setUnsupportedGetter (line 711) | func (f *fieldVM) setUnsupportedGetter() { function New (line 79) | func New(tagName ...string) *VM { function checkStructMapAddr (line 167) | func checkStructMapAddr(v reflect.Value) error { function appendDistinct (line 404) | func appendDistinct(a []*fieldVM, i *fieldVM) []*fieldVM { type TagExpr (line 750) | type TagExpr struct method EvalFloat (line 761) | func (t *TagExpr) EvalFloat(exprSelector string) float64 { method EvalString (line 770) | func (t *TagExpr) EvalString(exprSelector string) string { method EvalBool (line 779) | func (t *TagExpr) EvalBool(exprSelector string) bool { method Field (line 831) | func (t *TagExpr) Field(fieldSelector string) (fh *FieldHandler, found... method RangeFields (line 841) | func (t *TagExpr) RangeFields(fn func(*FieldHandler) bool) bool { method Eval (line 858) | func (t *TagExpr) Eval(exprSelector string) interface{} { method EvalWithEnv (line 886) | func (t *TagExpr) EvalWithEnv(exprSelector string, env map[string]inte... method Range (line 914) | func (t *TagExpr) Range(fn func(*ExprHandler) error) error { method subRange (line 1019) | func (t *TagExpr) subRange(omitNil bool, path string, value reflect.Va... method checkout (line 1033) | func (t *TagExpr) checkout(fs string) (*TagExpr, error) { method getValue (line 1058) | func (t *TagExpr) getValue(fieldSelector string, subFields []interface... function FakeBool (line 784) | func FakeBool(v interface{}) bool { function safeConvert (line 1126) | func safeConvert(v reflect.Value, t reflect.Type) reflect.Value { function splitFieldSelector (line 1131) | func splitFieldSelector(selector string) (dir, base string) { function getFloat64 (line 1143) | func getFloat64(kind reflect.Kind, p unsafe.Pointer) interface{} { function anyValueGetter (line 1175) | func anyValueGetter(raw, elem reflect.Value) interface{} { function safeIsNil (line 1206) | func safeIsNil(v reflect.Value) bool { function ptrElem (line 1219) | func ptrElem(ptr unsafe.Pointer) unsafe.Pointer { function derefType (line 1223) | func derefType(t reflect.Type) reflect.Type { function derefValue (line 1230) | func derefValue(v reflect.Value) reflect.Value { FILE: internal/tagexpr/tagexpr_test.go function assertEqual (line 30) | func assertEqual(t *testing.T, v1, v2 interface{}, msgs ...interface{}) { function BenchmarkTagExpr (line 38) | func BenchmarkTagExpr(b *testing.B) { function BenchmarkReflect (line 58) | func BenchmarkReflect(b *testing.B) { function Test (line 82) | func Test(t *testing.T) { function TestFieldNotInit (line 254) | func TestFieldNotInit(t *testing.T) { function TestFieldInitZero (line 357) | func TestFieldInitZero(t *testing.T) { function TestOperator (line 450) | func TestOperator(t *testing.T) { function TestStruct (line 572) | func TestStruct(t *testing.T) { function TestStruct2 (line 602) | func TestStruct2(t *testing.T) { function TestStruct3 (line 626) | func TestStruct3(t *testing.T) { function TestNilField (line 697) | func TestNilField(t *testing.T) { function TestDeepNested (line 731) | func TestDeepNested(t *testing.T) { function TestIssue3 (line 775) | func TestIssue3(t *testing.T) { function TestIssue4 (line 811) | func TestIssue4(t *testing.T) { function TestIssue5 (line 832) | func TestIssue5(t *testing.T) { function TestHertzIssue1410 (line 860) | func TestHertzIssue1410(t *testing.T) { function TestFakeBool (line 874) | func TestFakeBool(t *testing.T) { FILE: internal/tagexpr/tagparser.go constant tagOmit (line 24) | tagOmit = "-" constant tagOmitNil (line 25) | tagOmitNil = "?" method parseExprs (line 28) | func (f *fieldVM) parseExprs(tag string) error { function parseTag (line 58) | func parseTag(tag string) (map[string]string, error) { function splitExpr (line 81) | func splitExpr(one string) (key, val string) { function readOneExpr (line 110) | func readOneExpr(tag *string) (string, error) { function trimLeftSpace (line 136) | func trimLeftSpace(p *string) *string { function trimRightSpace (line 141) | func trimRightSpace(p *string) *string { function readPairedSymbol (line 146) | func readPairedSymbol(p *string, left, right rune) *string { function equalRune (line 184) | func equalRune(a, b, last1, last2 rune) (real, escape bool) { FILE: internal/tagexpr/tagparser_test.go function TestTagparser (line 22) | func TestTagparser(t *testing.T) { FILE: internal/tagexpr/utils.go function init (line 24) | func init() { function dereferenceValue (line 28) | func dereferenceValue(v reflect.Value) reflect.Value { function dereferenceType (line 35) | func dereferenceType(t reflect.Type) reflect.Type { function dereferenceInterfaceValue (line 42) | func dereferenceInterfaceValue(v reflect.Value) reflect.Value { type rvtype (line 49) | type rvtype struct function rvPtr (line 54) | func rvPtr(rv reflect.Value) unsafe.Pointer { function rvType (line 58) | func rvType(rv reflect.Value) uintptr { function rtType (line 62) | func rtType(rt reflect.Type) uintptr { function testhack (line 71) | func testhack() { FILE: internal/tagexpr/validator/default.go function Default (line 23) | func Default() *Validator { function Validate (line 32) | func Validate(value interface{}, checkAll ...bool) error { function SetErrorFactory (line 40) | func SetErrorFactory(errFactory func(fieldSelector, msg string) error) { FILE: internal/tagexpr/validator/example_test.go function Example (line 23) | func Example() { FILE: internal/tagexpr/validator/func.go function MustRegFunc (line 35) | func MustRegFunc(funcName string, fn func(args ...interface{}) error, fo... function RegFunc (line 49) | func RegFunc(funcName string, fn func(args ...interface{}) error, force ... function init (line 60) | func init() { function validatePhone (line 89) | func validatePhone(numberToParse, region string) bool { function init (line 93) | func init() { FILE: internal/tagexpr/validator/validator.go constant MatchExprName (line 30) | MatchExprName = tagexpr.DefaultExprName constant ErrMsgExprName (line 33) | ErrMsgExprName = "msg" type Validator (line 37) | type Validator struct method VM (line 52) | func (v *Validator) VM() *tagexpr.VM { method Validate (line 60) | func (v *Validator) Validate(value interface{}, checkAll ...bool) error { method SetErrorFactory (line 136) | func (v *Validator) SetErrorFactory(errFactory func(failPath, msg stri... function New (line 43) | func New(tagName string) *Validator { type Error (line 145) | type Error struct method Error (line 150) | func (e *Error) Error() string { function defaultErrorFactory (line 158) | func defaultErrorFactory(failPath, msg string) error { FILE: internal/tagexpr/validator/validator_test.go function assertEqualError (line 25) | func assertEqualError(t *testing.T, err error, s string) { function assertNoError (line 32) | func assertNoError(t *testing.T, err error) { function TestNil (line 39) | func TestNil(t *testing.T) { function TestAll (line 48) | func TestAll(t *testing.T) { function TestIssue1 (line 58) | func TestIssue1(t *testing.T) { function TestIssue2 (line 100) | func TestIssue2(t *testing.T) { function TestIssue3 (line 114) | func TestIssue3(t *testing.T) { function TestIssue4 (line 133) | func TestIssue4(t *testing.T) { function TestIssue5 (line 178) | func TestIssue5(t *testing.T) { function TestIn (line 204) | func TestIn(t *testing.T) { type Issue23A (line 239) | type Issue23A struct type Issue23B (line 243) | type Issue23B struct function TestIssue23 (line 249) | func TestIssue23(t *testing.T) { function TestIssue24 (line 255) | func TestIssue24(t *testing.T) { function TestStructSliceMap (line 288) | func TestStructSliceMap(t *testing.T) { function TestIssue30 (line 311) | func TestIssue30(t *testing.T) { function TestIssue31 (line 323) | func TestIssue31(t *testing.T) { function TestRegexp (line 332) | func TestRegexp(t *testing.T) { function TestRangeIn (line 342) | func TestRangeIn(t *testing.T) { FILE: internal/test/mock/binder/binder.go type Binder (line 25) | type Binder struct method Name (line 39) | func (m *Binder) Name() string { method Bind (line 43) | func (m *Binder) Bind(request *protocol.Request, i interface{}, params... method BindAndValidate (line 47) | func (m *Binder) BindAndValidate(request *protocol.Request, i interfac... method BindQuery (line 51) | func (m *Binder) BindQuery(request *protocol.Request, i interface{}) e... method BindHeader (line 55) | func (m *Binder) BindHeader(request *protocol.Request, i interface{}) ... method BindPath (line 59) | func (m *Binder) BindPath(request *protocol.Request, i interface{}, pa... method BindForm (line 63) | func (m *Binder) BindForm(request *protocol.Request, i interface{}) er... method BindJSON (line 67) | func (m *Binder) BindJSON(request *protocol.Request, i interface{}) er... method BindProtobuf (line 71) | func (m *Binder) BindProtobuf(request *protocol.Request, i interface{}... method Validate (line 75) | func (m *Binder) Validate(request *protocol.Request, i interface{}) er... function NewBinder (line 30) | func NewBinder() *Binder { function NewBinderWithValidateError (line 35) | func NewBinderWithValidateError(err error) *Binder { FILE: internal/test/mock/binder/binder_test.go function TestNewBinder (line 26) | func TestNewBinder(t *testing.T) { function TestNewBinderWithValidateError (line 43) | func TestNewBinderWithValidateError(t *testing.T) { function TestBinderValidate (line 49) | func TestBinderValidate(t *testing.T) { FILE: internal/testutils/testutils.go type RouteEngine (line 25) | type RouteEngine interface function WaitEngineRunning (line 29) | func WaitEngineRunning(e RouteEngine) { function NewTestListener (line 42) | func NewTestListener(tb testing.TB) net.Listener { FILE: internal/testutils/testutils_test.go function TestNewTestListener (line 25) | func TestNewTestListener(t *testing.T) { type routeEngine (line 31) | type routeEngine struct method IsRunning (line 35) | func (e *routeEngine) IsRunning() bool { function TestWaitEngineRunning (line 39) | func TestWaitEngineRunning(t *testing.T) { FILE: pkg/app/client/client.go function Do (line 93) | func Do(ctx context.Context, req *protocol.Request, resp *protocol.Respo... function DoTimeout (line 126) | func DoTimeout(ctx context.Context, req *protocol.Request, resp *protoco... function DoDeadline (line 159) | func DoDeadline(ctx context.Context, req *protocol.Request, resp *protoc... function DoRedirects (line 182) | func DoRedirects(ctx context.Context, req *protocol.Request, resp *proto... function Get (line 193) | func Get(ctx context.Context, dst []byte, url string, requestOptions ...... function GetTimeout (line 212) | func GetTimeout(ctx context.Context, dst []byte, url string, timeout tim... function GetDeadline (line 231) | func GetDeadline(ctx context.Context, dst []byte, url string, deadline t... function Post (line 243) | func Post(ctx context.Context, dst []byte, url string, postArgs *protoco... type Client (line 254) | type Client struct method GetOptions (line 282) | func (c *Client) GetOptions() *config.ClientOptions { method SetRetryIfFunc (line 286) | func (c *Client) SetRetryIfFunc(retryIf client.RetryIfFunc) { method SetRetryIf (line 291) | func (c *Client) SetRetryIf(fn func(request *protocol.Request) bool) { method SetProxy (line 302) | func (c *Client) SetProxy(p protocol.Proxy) { method Get (line 312) | func (c *Client) Get(ctx context.Context, dst []byte, url string, requ... method GetTimeout (line 325) | func (c *Client) GetTimeout(ctx context.Context, dst []byte, url strin... method GetDeadline (line 338) | func (c *Client) GetDeadline(ctx context.Context, dst []byte, url stri... method Post (line 350) | func (c *Client) Post(ctx context.Context, dst []byte, url string, pos... method DoTimeout (line 383) | func (c *Client) DoTimeout(ctx context.Context, req *protocol.Request,... method DoDeadline (line 410) | func (c *Client) DoDeadline(ctx context.Context, req *protocol.Request... method DoRedirects (line 433) | func (c *Client) DoRedirects(ctx context.Context, req *protocol.Reques... method Do (line 457) | func (c *Client) Do(ctx context.Context, req *protocol.Request, resp *... method do (line 467) | func (c *Client) do(ctx context.Context, req *protocol.Request, resp *... method CloseIdleConnections (line 545) | func (c *Client) CloseIdleConnections() { method cleaner (line 556) | func (c *Client) cleaner(isTLS bool) { method cleanHostClients (line 565) | func (c *Client) cleanHostClients(isTLS bool) bool { method SetClientFactory (line 586) | func (c *Client) SetClientFactory(cf suite.ClientFactory) { method GetDialerName (line 591) | func (c *Client) GetDialerName() (dName string, err error) { method Use (line 629) | func (c *Client) Use(mws ...Middleware) { method UseAsLast (line 644) | func (c *Client) UseAsLast(mw Middleware) error { method TakeOutLastMiddleware (line 655) | func (c *Client) TakeOutLastMiddleware() Middleware { function NewClient (line 615) | func NewClient(opts ...config.ClientOption) (*Client, error) { function newHttp1OptionFromClient (line 661) | func newHttp1OptionFromClient(c *Client) *http1.ClientOptions { FILE: pkg/app/client/client_test.go function assertNil (line 89) | func assertNil(err error) { function waitEngineRunning (line 95) | func waitEngineRunning(e *route.Engine) { function newTestOptions (line 99) | func newTestOptions(t *testing.T) (*config.Options, net.Listener) { function fullURL (line 108) | func fullURL(ln net.Listener, p string) string { function TestCloseIdleConnections (line 112) | func TestCloseIdleConnections(t *testing.T) { function TestCloseIdleTLSConnections (line 160) | func TestCloseIdleTLSConnections(t *testing.T) { function TestClientInvalidURI (line 204) | func TestClientInvalidURI(t *testing.T) { function TestClientGetWithBody (line 235) | func TestClientGetWithBody(t *testing.T) { function TestClientPostBodyStream (line 267) | func TestClientPostBodyStream(t *testing.T) { function TestClientURLAuth (line 297) | func TestClientURLAuth(t *testing.T) { function TestClientNilResp (line 337) | func TestClientNilResp(t *testing.T) { function TestClientParseConn (line 363) | func TestClientParseConn(t *testing.T) { function TestClientPostArgs (line 402) | func TestClientPostArgs(t *testing.T) { function TestClientHeaderCase (line 439) | func TestClientHeaderCase(t *testing.T) { function TestClientReadTimeout (line 470) | func TestClientReadTimeout(t *testing.T) { function TestClientDefaultUserAgent (line 545) | func TestClientDefaultUserAgent(t *testing.T) { function TestClientSetUserAgent (line 575) | func TestClientSetUserAgent(t *testing.T) { function TestClientNoUserAgent (line 605) | func TestClientNoUserAgent(t *testing.T) { function TestClientDoWithCustomHeaders (line 635) | func TestClientDoWithCustomHeaders(t *testing.T) { function TestClientDoTimeoutDisablePathNormalizing (line 722) | func TestClientDoTimeoutDisablePathNormalizing(t *testing.T) { function TestHostClientPendingRequests (line 757) | func TestHostClientPendingRequests(t *testing.T) { function TestHostClientMaxConnsWithDeadline (line 841) | func TestHostClientMaxConnsWithDeadline(t *testing.T) { function TestHostClientMaxConnDuration (line 911) | func TestHostClientMaxConnDuration(t *testing.T) { function TestHostClientMultipleAddrs (line 956) | func TestHostClientMultipleAddrs(t *testing.T) { function TestClientFollowRedirects (line 1004) | func TestClientFollowRedirects(t *testing.T) { function TestHostClientMaxConnWaitTimeoutSuccess (line 1105) | func TestHostClientMaxConnWaitTimeoutSuccess(t *testing.T) { function TestHostClientMaxConnWaitTimeoutError (line 1172) | func TestHostClientMaxConnWaitTimeoutError(t *testing.T) { function TestNewClient (line 1246) | func TestNewClient(t *testing.T) { function TestUseShortConnection (line 1278) | func TestUseShortConnection(t *testing.T) { function TestPostWithFormData (line 1323) | func TestPostWithFormData(t *testing.T) { function TestPostWithMultipartField (line 1379) | func TestPostWithMultipartField(t *testing.T) { function TestSetFiles (line 1424) | func TestSetFiles(t *testing.T) { function TestSetMultipartFields (line 1477) | func TestSetMultipartFields(t *testing.T) { function TestClientReadResponseBodyStream (line 1543) | func TestClientReadResponseBodyStream(t *testing.T) { function TestWithBasicAuth (line 1593) | func TestWithBasicAuth(t *testing.T) { function TestClientProxyWithStandardDialer (line 1652) | func TestClientProxyWithStandardDialer(t *testing.T) { function TestClientProxyWithNetpollDialer (line 1792) | func TestClientProxyWithNetpollDialer(t *testing.T) { function TestClientMiddleware (line 1866) | func TestClientMiddleware(t *testing.T) { function TestClientLastMiddleware (line 1906) | func TestClientLastMiddleware(t *testing.T) { function TestClientReadResponseBodyStreamWithDoubleRequest (line 1975) | func TestClientReadResponseBodyStreamWithDoubleRequest(t *testing.T) { function TestClientReadResponseBodyStreamWithConnectionClose (line 2052) | func TestClientReadResponseBodyStreamWithConnectionClose(t *testing.T) { type mockDialer (line 2110) | type mockDialer struct method DialConnection (line 2118) | func (m *mockDialer) DialConnection(network, address string, timeout t... function TestClientRetry (line 2125) | func TestClientRetry(t *testing.T) { function TestClientHostClientConfigHookError (line 2255) | func TestClientHostClientConfigHookError(t *testing.T) { function TestClientHostClientConfigHook (line 2271) | func TestClientHostClientConfigHook(t *testing.T) { function TestClientDialerName (line 2293) | func TestClientDialerName(t *testing.T) { function TestClientDoWithDialFunc (line 2342) | func TestClientDoWithDialFunc(t *testing.T) { function TestClientState (line 2405) | func TestClientState(t *testing.T) { function TestClientRetryErr (line 2447) | func TestClientRetryErr(t *testing.T) { type mockHostClient (line 2510) | type mockHostClient struct method Do (line 2515) | func (m *mockHostClient) Do(ctx context.Context, req *protocol.Request... method SetDynamicConfig (line 2519) | func (m *mockHostClient) SetDynamicConfig(dc *client.DynamicConfig) { method CloseIdleConnections (line 2522) | func (m *mockHostClient) CloseIdleConnections() { method ShouldRemove (line 2525) | func (m *mockHostClient) ShouldRemove() bool { method ConnectionCount (line 2529) | func (m *mockHostClient) ConnectionCount() int { method Close (line 2533) | func (m *mockHostClient) Close() error { function TestCleanHostClients (line 2538) | func TestCleanHostClients(t *testing.T) { FILE: pkg/app/client/client_unix_test.go function newMockDialerWithCustomFunc (line 30) | func newMockDialerWithCustomFunc(network, address string, timeout time.D... FILE: pkg/app/client/client_windows_test.go function newMockDialerWithCustomFunc (line 28) | func newMockDialerWithCustomFunc(network, address string, timeout time.D... FILE: pkg/app/client/discovery/discovery.go type TargetInfo (line 27) | type TargetInfo struct type Resolver (line 32) | type Resolver interface type SynthesizedResolver (line 44) | type SynthesizedResolver struct method Target (line 50) | func (sr SynthesizedResolver) Target(ctx context.Context, target *Targ... method Resolve (line 57) | func (sr SynthesizedResolver) Resolve(ctx context.Context, key string)... method Name (line 62) | func (sr SynthesizedResolver) Name() string { type Instance (line 70) | type Instance interface type instance (line 76) | type instance struct method Address (line 82) | func (i *instance) Address() net.Addr { method Weight (line 86) | func (i *instance) Weight() int { method Tag (line 93) | func (i *instance) Tag(key string) (value string, exist bool) { function NewInstance (line 99) | func NewInstance(network, address string, weight int, tags map[string]st... type Result (line 109) | type Result struct FILE: pkg/app/client/discovery/discovery_test.go function TestInstance (line 27) | func TestInstance(t *testing.T) { function TestSynthesizedResolver (line 44) | func TestSynthesizedResolver(t *testing.T) { FILE: pkg/app/client/loadbalance/lbcache.go type cacheResult (line 33) | type cacheResult struct function cacheKey (line 44) | func cacheKey(resolver, balancer string, opts Options) string { type BalancerFactory (line 48) | type BalancerFactory struct method watcher (line 86) | func (b *BalancerFactory) watcher() { method refresh (line 109) | func (b *BalancerFactory) refresh() { method GetInstance (line 127) | func (b *BalancerFactory) GetInstance(ctx context.Context, req *protoc... method getCacheResult (line 141) | func (b *BalancerFactory) getCacheResult(ctx context.Context, req *pro... type Config (line 56) | type Config struct function NewBalancerFactory (line 64) | func NewBalancerFactory(config Config) *BalancerFactory { function renameResultCacheKey (line 104) | func renameResultCacheKey(res *discovery.Result, resolverName string) { FILE: pkg/app/client/loadbalance/lbcache_test.go function TestBuilder (line 32) | func TestBuilder(t *testing.T) { function TestBalancerCache (line 74) | func TestBalancerCache(t *testing.T) { function TestBalancerRefresh (line 106) | func TestBalancerRefresh(t *testing.T) { function TestBalancerExpires (line 140) | func TestBalancerExpires(t *testing.T) { function TestCacheKey (line 172) | func TestCacheKey(t *testing.T) { type mockLoadbalancer (line 177) | type mockLoadbalancer struct method Rebalance (line 185) | func (m mockLoadbalancer) Rebalance(ch discovery.Result) { method Delete (line 192) | func (m mockLoadbalancer) Delete(ch string) { method Name (line 199) | func (m mockLoadbalancer) Name() string { method Pick (line 207) | func (m mockLoadbalancer) Pick(d discovery.Result) discovery.Instance { FILE: pkg/app/client/loadbalance/loadbalance.go type Loadbalancer (line 26) | type Loadbalancer interface constant DefaultRefreshInterval (line 41) | DefaultRefreshInterval = 5 * time.Second constant DefaultExpireInterval (line 42) | DefaultExpireInterval = 15 * time.Second type Options (line 51) | type Options struct method Check (line 61) | func (v *Options) Check() { FILE: pkg/app/client/loadbalance/weight_random.go type weightedBalancer (line 28) | type weightedBalancer struct method calcWeightInfo (line 45) | func (wb *weightedBalancer) calcWeightInfo(e discovery.Result) *weight... method Pick (line 72) | func (wb *weightedBalancer) Pick(e discovery.Result) discovery.Instance { method Rebalance (line 98) | func (wb *weightedBalancer) Rebalance(e discovery.Result) { method Delete (line 103) | func (wb *weightedBalancer) Delete(cacheKey string) { method Name (line 107) | func (wb *weightedBalancer) Name() string { type weightInfo (line 33) | type weightInfo struct function NewWeightedBalancer (line 40) | func NewWeightedBalancer() Loadbalancer { FILE: pkg/app/client/loadbalance/weight_random_test.go function TestWeightedBalancer (line 27) | func TestWeightedBalancer(t *testing.T) { FILE: pkg/app/client/middleware.go type Endpoint (line 26) | type Endpoint type Middleware (line 29) | type Middleware function chain (line 32) | func chain(mws ...Middleware) Middleware { FILE: pkg/app/client/middleware_test.go function invoke (line 34) | func invoke(ctx context.Context, req *protocol.Request, resp *protocol.R... function mockMW0 (line 39) | func mockMW0(next Endpoint) Endpoint { function mockMW1 (line 51) | func mockMW1(next Endpoint) Endpoint { function TestChain (line 63) | func TestChain(t *testing.T) { FILE: pkg/app/client/option.go function WithDialTimeout (line 32) | func WithDialTimeout(dialTimeout time.Duration) config.ClientOption { function WithMaxConnsPerHost (line 39) | func WithMaxConnsPerHost(mc int) config.ClientOption { function WithMaxIdleConnDuration (line 46) | func WithMaxIdleConnDuration(t time.Duration) config.ClientOption { function WithMaxConnDuration (line 53) | func WithMaxConnDuration(t time.Duration) config.ClientOption { function WithMaxConnWaitTimeout (line 60) | func WithMaxConnWaitTimeout(t time.Duration) config.ClientOption { function WithKeepAlive (line 67) | func WithKeepAlive(b bool) config.ClientOption { function WithClientReadTimeout (line 74) | func WithClientReadTimeout(t time.Duration) config.ClientOption { function WithTLSConfig (line 81) | func WithTLSConfig(cfg *tls.Config) config.ClientOption { function WithDialer (line 89) | func WithDialer(d network.Dialer) config.ClientOption { function WithResponseBodyStream (line 96) | func WithResponseBodyStream(b bool) config.ClientOption { function WithHostClientConfigHook (line 103) | func WithHostClientConfigHook(h func(hc interface{}) error) config.Clien... function WithDisableHeaderNamesNormalizing (line 110) | func WithDisableHeaderNamesNormalizing(disable bool) config.ClientOption { function WithName (line 117) | func WithName(name string) config.ClientOption { function WithNoDefaultUserAgentHeader (line 124) | func WithNoDefaultUserAgentHeader(isNoDefaultUserAgentHeader bool) confi... function WithDisablePathNormalizing (line 131) | func WithDisablePathNormalizing(isDisablePathNormalizing bool) config.Cl... function WithRetryConfig (line 137) | func WithRetryConfig(opts ...retry.Option) config.ClientOption { function WithWriteTimeout (line 153) | func WithWriteTimeout(t time.Duration) config.ClientOption { function WithConnStateObserve (line 163) | func WithConnStateObserve(hs config.HostClientStateFunc, interval ...tim... function WithDialFunc (line 174) | func WithDialFunc(f network.DialFunc, dialers ...network.Dialer) config.... type customDialer (line 185) | type customDialer struct method DialConnection (line 190) | func (m *customDialer) DialConnection(network, address string, timeout... function newCustomDialerWithDialFunc (line 197) | func newCustomDialerWithDialFunc(dialer network.Dialer, dialFunc network... FILE: pkg/app/client/option_test.go function TestClientOptions (line 30) | func TestClientOptions(t *testing.T) { FILE: pkg/app/client/retry/option.go type Option (line 22) | type Option struct function WithMaxAttemptTimes (line 27) | func WithMaxAttemptTimes(maxAttemptTimes uint) Option { function WithInitDelay (line 34) | func WithInitDelay(delay time.Duration) Option { function WithMaxDelay (line 41) | func WithMaxDelay(maxDelay time.Duration) Option { function WithDelayPolicy (line 48) | func WithDelayPolicy(delayPolicy DelayPolicyFunc) Option { function WithMaxJitter (line 55) | func WithMaxJitter(maxJitter time.Duration) Option { FILE: pkg/app/client/retry/retry.go type Config (line 27) | type Config struct method Apply (line 45) | func (o *Config) Apply(opts []Option) { type DelayPolicyFunc (line 53) | type DelayPolicyFunc function DefaultDelayPolicy (line 56) | func DefaultDelayPolicy(_ uint, _ error, _ *Config) time.Duration { function FixedDelayPolicy (line 61) | func FixedDelayPolicy(_ uint, _ error, retryConfig *Config) time.Duration { function RandomDelayPolicy (line 66) | func RandomDelayPolicy(_ uint, _ error, retryConfig *Config) time.Durati... function BackOffDelayPolicy (line 74) | func BackOffDelayPolicy(attempts uint, _ error, retryConfig *Config) tim... function CombineDelay (line 88) | func CombineDelay(delays ...DelayPolicyFunc) DelayPolicyFunc { function Delay (line 105) | func Delay(attempts uint, err error, retryConfig *Config) time.Duration { FILE: pkg/app/client/retry/retry_test.go function TestApply (line 27) | func TestApply(t *testing.T) { function TestPolicy (line 45) | func TestPolicy(t *testing.T) { FILE: pkg/app/context.go type Handler (line 75) | type Handler interface type ClientIP (line 79) | type ClientIP type ClientIPOptions (line 81) | type ClientIPOptions struct function ClientIPWithOption (line 105) | func ClientIPWithOption(opts ClientIPOptions) ClientIP { function isTrustedProxy (line 135) | func isTrustedProxy(trustedCIDRs []*net.IPNet, remoteIP net.IP) bool { function validateHeader (line 148) | func validateHeader(trustedCIDRs []*net.IPNet, header string) (clientIP ... function SetClientIPFunc (line 173) | func SetClientIPFunc(fn ClientIP) { type FormValueFunc (line 177) | type FormValueFunc type RequestContext (line 198) | type RequestContext struct method Exile (line 243) | func (ctx *RequestContext) Exile() { method IsExiled (line 247) | func (ctx *RequestContext) IsExiled() bool { method Flush (line 253) | func (ctx *RequestContext) Flush() error { method SetClientIPFunc (line 260) | func (ctx *RequestContext) SetClientIPFunc(f ClientIP) { method SetFormValueFunc (line 264) | func (ctx *RequestContext) SetFormValueFunc(f FormValueFunc) { method SetBinder (line 268) | func (ctx *RequestContext) SetBinder(binder binding.Binder) { method GetTraceInfo (line 272) | func (ctx *RequestContext) GetTraceInfo() traceinfo.TraceInfo { method SetTraceInfo (line 276) | func (ctx *RequestContext) SetTraceInfo(t traceinfo.TraceInfo) { method IsEnableTrace (line 280) | func (ctx *RequestContext) IsEnableTrace() bool { method SetEnableTrace (line 287) | func (ctx *RequestContext) SetEnableTrace(enable bool) { method ForEachKey (line 301) | func (ctx *RequestContext) ForEachKey(fn func(k string, v interface{})) { method SetConn (line 309) | func (ctx *RequestContext) SetConn(c network.Conn) { method GetConn (line 313) | func (ctx *RequestContext) GetConn() network.Conn { method SetHijackHandler (line 317) | func (ctx *RequestContext) SetHijackHandler(h HijackHandler) { method GetHijackHandler (line 321) | func (ctx *RequestContext) GetHijackHandler() HijackHandler { method GetReader (line 325) | func (ctx *RequestContext) GetReader() network.Reader { method GetWriter (line 329) | func (ctx *RequestContext) GetWriter() network.Writer { method GetIndex (line 333) | func (ctx *RequestContext) GetIndex() int8 { method SetIndex (line 339) | func (ctx *RequestContext) SetIndex(index int8) { method Hijack (line 445) | func (ctx *RequestContext) Hijack(handler HijackHandler) { method Finished (line 459) | func (ctx *RequestContext) Finished() <-chan struct{} { method GetRequest (line 470) | func (ctx *RequestContext) GetRequest() (dst *protocol.Request) { method GetResponse (line 477) | func (ctx *RequestContext) GetResponse() (dst *protocol.Response) { method Value (line 488) | func (ctx *RequestContext) Value(key interface{}) interface{} { method Hijacked (line 501) | func (ctx *RequestContext) Hijacked() bool { method SetBodyStream (line 516) | func (ctx *RequestContext) SetBodyStream(bodyStream io.Reader, bodySiz... method Host (line 523) | func (ctx *RequestContext) Host() []byte { method RemoteAddr (line 530) | func (ctx *RequestContext) RemoteAddr() net.Addr { method WriteString (line 542) | func (ctx *RequestContext) WriteString(s string) (int, error) { method SetContentType (line 548) | func (ctx *RequestContext) SetContentType(contentType string) { method Path (line 555) | func (ctx *RequestContext) Path() []byte { method NotModified (line 560) | func (ctx *RequestContext) NotModified() { method IfModifiedSince (line 569) | func (ctx *RequestContext) IfModifiedSince(lastModified time.Time) bool { method URI (line 585) | func (ctx *RequestContext) URI() *protocol.URI { method String (line 589) | func (ctx *RequestContext) String(code int, format string, values ...i... method FullPath (line 599) | func (ctx *RequestContext) FullPath() string { method SetFullPath (line 603) | func (ctx *RequestContext) SetFullPath(p string) { method SetStatusCode (line 608) | func (ctx *RequestContext) SetStatusCode(statusCode int) { method Write (line 613) | func (ctx *RequestContext) Write(p []byte) (int, error) { method File (line 619) | func (ctx *RequestContext) File(filepath string) { method FileFromFS (line 623) | func (ctx *RequestContext) FileFromFS(filepath string, fs *FS) { method FileAttachment (line 636) | func (ctx *RequestContext) FileAttachment(filepath, filename string) { method SetBodyString (line 642) | func (ctx *RequestContext) SetBodyString(body string) { method SetContentTypeBytes (line 649) | func (ctx *RequestContext) SetContentTypeBytes(contentType []byte) { method FormFile (line 654) | func (ctx *RequestContext) FormFile(name string) (*multipart.FileHeade... method FormValue (line 674) | func (ctx *RequestContext) FormValue(key string) []byte { method multipartFormValue (line 681) | func (ctx *RequestContext) multipartFormValue(key string) (string, boo... method multipartFormValueArray (line 692) | func (ctx *RequestContext) multipartFormValueArray(key string) ([]stri... method RequestBodyStream (line 703) | func (ctx *RequestContext) RequestBodyStream() io.Reader { method MultipartForm (line 721) | func (ctx *RequestContext) MultipartForm() (*multipart.Form, error) { method SaveUploadedFile (line 726) | func (ctx *RequestContext) SaveUploadedFile(file *multipart.FileHeader... method SetConnectionClose (line 744) | func (ctx *RequestContext) SetConnectionClose() { method IsGet (line 749) | func (ctx *RequestContext) IsGet() bool { method IsHead (line 754) | func (ctx *RequestContext) IsHead() bool { method IsPost (line 759) | func (ctx *RequestContext) IsPost() bool { method Method (line 766) | func (ctx *RequestContext) Method() []byte { method NotFound (line 771) | func (ctx *RequestContext) NotFound() { method redirect (line 777) | func (ctx *RequestContext) redirect(uri []byte, statusCode int) { method Copy (line 797) | func (ctx *RequestContext) Copy() *RequestContext { method Next (line 824) | func (ctx *RequestContext) Next(c context.Context) { method Handler (line 833) | func (ctx *RequestContext) Handler() HandlerFunc { method Handlers (line 838) | func (ctx *RequestContext) Handlers() HandlersChain { method SetHandlers (line 842) | func (ctx *RequestContext) SetHandlers(hc HandlersChain) { method HandlerName (line 849) | func (ctx *RequestContext) HandlerName() string { method ResetWithoutConn (line 853) | func (ctx *RequestContext) ResetWithoutConn() { method Reset (line 876) | func (ctx *RequestContext) Reset() { method Redirect (line 888) | func (ctx *RequestContext) Redirect(statusCode int, uri []byte) { method Header (line 895) | func (ctx *RequestContext) Header(key, value string) { method Set (line 905) | func (ctx *RequestContext) Set(key string, value interface{}) { method Get (line 917) | func (ctx *RequestContext) Get(key string) (value interface{}, exists ... method MustGet (line 925) | func (ctx *RequestContext) MustGet(key string) interface{} { method GetString (line 933) | func (ctx *RequestContext) GetString(key string) (s string) { method GetBool (line 941) | func (ctx *RequestContext) GetBool(key string) (b bool) { method GetInt (line 949) | func (ctx *RequestContext) GetInt(key string) (i int) { method GetInt32 (line 957) | func (ctx *RequestContext) GetInt32(key string) (i32 int32) { method GetInt64 (line 965) | func (ctx *RequestContext) GetInt64(key string) (i64 int64) { method GetUint (line 973) | func (ctx *RequestContext) GetUint(key string) (ui uint) { method GetUint32 (line 981) | func (ctx *RequestContext) GetUint32(key string) (ui32 uint32) { method GetUint64 (line 989) | func (ctx *RequestContext) GetUint64(key string) (ui64 uint64) { method GetFloat32 (line 997) | func (ctx *RequestContext) GetFloat32(key string) (f32 float32) { method GetFloat64 (line 1005) | func (ctx *RequestContext) GetFloat64(key string) (f64 float64) { method GetTime (line 1013) | func (ctx *RequestContext) GetTime(key string) (t time.Time) { method GetDuration (line 1021) | func (ctx *RequestContext) GetDuration(key string) (d time.Duration) { method GetStringSlice (line 1031) | func (ctx *RequestContext) GetStringSlice(key string) (ss []string) { method GetStringMap (line 1041) | func (ctx *RequestContext) GetStringMap(key string) (sm map[string]int... method GetStringMapString (line 1051) | func (ctx *RequestContext) GetStringMapString(key string) (sms map[str... method GetStringMapStringSlice (line 1061) | func (ctx *RequestContext) GetStringMapStringSlice(key string) (smss m... method Param (line 1075) | func (ctx *RequestContext) Param(key string) string { method Abort (line 1085) | func (ctx *RequestContext) Abort() { method AbortWithStatus (line 1092) | func (ctx *RequestContext) AbortWithStatus(code int) { method AbortWithMsg (line 1101) | func (ctx *RequestContext) AbortWithMsg(msg string, statusCode int) { method AbortWithStatusJSON (line 1113) | func (ctx *RequestContext) AbortWithStatusJSON(code int, jsonObj inter... method Render (line 1119) | func (ctx *RequestContext) Render(code int, r render.Render) { method ProtoBuf (line 1133) | func (ctx *RequestContext) ProtoBuf(code int, obj interface{}) { method JSON (line 1140) | func (ctx *RequestContext) JSON(code int, obj interface{}) { method PureJSON (line 1146) | func (ctx *RequestContext) PureJSON(code int, obj interface{}) { method IndentedJSON (line 1152) | func (ctx *RequestContext) IndentedJSON(code int, obj interface{}) { method HTML (line 1160) | func (ctx *RequestContext) HTML(code int, name string, obj interface{}) { method Data (line 1166) | func (ctx *RequestContext) Data(code int, contentType string, data []b... method XML (line 1176) | func (ctx *RequestContext) XML(code int, obj interface{}) { method AbortWithError (line 1184) | func (ctx *RequestContext) AbortWithError(code int, err error) *errors... method IsAborted (line 1190) | func (ctx *RequestContext) IsAborted() bool { method Error (line 1200) | func (ctx *RequestContext) Error(err error) *errors.Error { method ContentType (line 1218) | func (ctx *RequestContext) ContentType() []byte { method Cookie (line 1223) | func (ctx *RequestContext) Cookie(key string) []byte { method SetCookie (line 1245) | func (ctx *RequestContext) SetCookie(name, value string, maxAge int, p... method setCookie (line 1249) | func (ctx *RequestContext) setCookie(name, value string, maxAge int, p... method SetPartitionedCookie (line 1273) | func (ctx *RequestContext) SetPartitionedCookie(name, value string, ma... method UserAgent (line 1278) | func (ctx *RequestContext) UserAgent() []byte { method Status (line 1283) | func (ctx *RequestContext) Status(code int) { method GetHeader (line 1288) | func (ctx *RequestContext) GetHeader(key string) []byte { method GetRawData (line 1293) | func (ctx *RequestContext) GetRawData() []byte { method Body (line 1298) | func (ctx *RequestContext) Body() ([]byte, error) { method ClientIP (line 1305) | func (ctx *RequestContext) ClientIP() string { method QueryArgs (line 1317) | func (ctx *RequestContext) QueryArgs() *protocol.Args { method PostArgs (line 1326) | func (ctx *RequestContext) PostArgs() *protocol.Args { method Query (line 1339) | func (ctx *RequestContext) Query(key string) string { method DefaultQuery (line 1346) | func (ctx *RequestContext) DefaultQuery(key, defaultValue string) stri... method GetQuery (line 1363) | func (ctx *RequestContext) GetQuery(key string) (string, bool) { method PostForm (line 1369) | func (ctx *RequestContext) PostForm(key string) string { method PostFormArray (line 1376) | func (ctx *RequestContext) PostFormArray(key string) []string { method DefaultPostForm (line 1385) | func (ctx *RequestContext) DefaultPostForm(key, defaultValue string) s... method GetPostForm (line 1401) | func (ctx *RequestContext) GetPostForm(key string) (string, bool) { method GetPostFormArray (line 1417) | func (ctx *RequestContext) GetPostFormArray(key string) ([]string, boo... method getBinder (line 1443) | func (ctx *RequestContext) getBinder() binding.Binder { method BindAndValidate (line 1452) | func (ctx *RequestContext) BindAndValidate(obj interface{}) error { method Bind (line 1462) | func (ctx *RequestContext) Bind(obj interface{}) error { method Validate (line 1468) | func (ctx *RequestContext) Validate(obj interface{}) error { method BindQuery (line 1474) | func (ctx *RequestContext) BindQuery(obj interface{}) error { method BindHeader (line 1480) | func (ctx *RequestContext) BindHeader(obj interface{}) error { method BindPath (line 1486) | func (ctx *RequestContext) BindPath(obj interface{}) error { method BindForm (line 1492) | func (ctx *RequestContext) BindForm(obj interface{}) error { method BindJSON (line 1501) | func (ctx *RequestContext) BindJSON(obj interface{}) error { method BindProtobuf (line 1507) | func (ctx *RequestContext) BindProtobuf(obj interface{}) error { method BindByContentType (line 1513) | func (ctx *RequestContext) BindByContentType(obj interface{}) error { method VisitAllQueryArgs (line 1534) | func (ctx *RequestContext) VisitAllQueryArgs(f func(key, value []byte)) { method VisitAllPostArgs (line 1542) | func (ctx *RequestContext) VisitAllPostArgs(f func(key, value []byte)) { method VisitAllHeaders (line 1552) | func (ctx *RequestContext) VisitAllHeaders(f func(key, value []byte)) { method VisitAllCookie (line 1559) | func (ctx *RequestContext) VisitAllCookie(f func(key, value []byte)) { function NewContext (line 294) | func NewContext(maxParams uint16) *RequestContext { type HandlerFunc (line 343) | type HandlerFunc type HandlersChain (line 346) | type HandlersChain method Last (line 452) | func (c HandlersChain) Last() HandlerFunc { type HandlerNameOperator (line 348) | type HandlerNameOperator interface function SetHandlerNameOperator (line 353) | func SetHandlerNameOperator(o HandlerNameOperator) { type inbuiltHandlerNameOperatorStruct (line 357) | type inbuiltHandlerNameOperatorStruct struct method SetHandlerName (line 361) | func (o *inbuiltHandlerNameOperatorStruct) SetHandlerName(handler Hand... method GetHandlerName (line 365) | func (o *inbuiltHandlerNameOperatorStruct) GetHandlerName(handler Hand... type concurrentHandlerNameOperatorStruct (line 369) | type concurrentHandlerNameOperatorStruct struct method SetHandlerName (line 374) | func (o *concurrentHandlerNameOperatorStruct) SetHandlerName(handler H... method GetHandlerName (line 380) | func (o *concurrentHandlerNameOperatorStruct) GetHandlerName(handler H... function SetConcurrentHandlerNameOperator (line 386) | func SetConcurrentHandlerNameOperator() { function init (line 390) | func init() { function SetHandlerName (line 396) | func SetHandlerName(handler HandlerFunc, name string) { function GetHandlerName (line 400) | func GetHandlerName(handler HandlerFunc) string { function getFuncAddr (line 404) | func getFuncAddr(v interface{}) uintptr { type HijackHandler (line 419) | type HijackHandler function getRedirectStatusCode (line 783) | func getRedirectStatusCode(statusCode int) int { function bodyAllowedForStatus (line 1431) | func bodyAllowedForStatus(status int) bool { FILE: pkg/app/context_test.go function TestProtobuf (line 53) | func TestProtobuf(t *testing.T) { function TestPureJson (line 61) | func TestPureJson(t *testing.T) { function TestIndentedJSON (line 71) | func TestIndentedJSON(t *testing.T) { function TestContext (line 82) | func TestContext(t *testing.T) { function TestValue (line 91) | func TestValue(t *testing.T) { function TestContextNotModified (line 102) | func TestContextNotModified(t *testing.T) { function TestIfModifiedSince (line 114) | func TestIfModifiedSince(t *testing.T) { function TestWrite (line 128) | func TestWrite(t *testing.T) { function TestSetConnectionClose (line 142) | func TestSetConnectionClose(t *testing.T) { function TestNotFound (line 150) | func TestNotFound(t *testing.T) { function TestRedirect (line 158) | func TestRedirect(t *testing.T) { function TestGetRedirectStatusCode (line 167) | func TestGetRedirectStatusCode(t *testing.T) { function TestCookie (line 175) | func TestCookie(t *testing.T) { function TestUserAgent (line 183) | func TestUserAgent(t *testing.T) { function TestStatus (line 191) | func TestStatus(t *testing.T) { function TestPost (line 199) | func TestPost(t *testing.T) { function TestGet (line 211) | func TestGet(t *testing.T) { function TestCopy (line 220) | func TestCopy(t *testing.T) { function TestQuery (line 285) | func TestQuery(t *testing.T) { function TestMethod (line 308) | func TestMethod(t *testing.T) { function makeCtxByReqString (line 316) | func makeCtxByReqString(t *testing.T, s string) *RequestContext { function TestPostForm (line 326) | func TestPostForm(t *testing.T) { function TestPostFormArray (line 370) | func TestPostFormArray(t *testing.T) { function TestDefaultPostForm (line 404) | func TestDefaultPostForm(t *testing.T) { function TestRequestContext_FormFile (line 434) | func TestRequestContext_FormFile(t *testing.T) { function TestContextRenderFileFromFS (line 527) | func TestContextRenderFileFromFS(t *testing.T) { function TestContextRenderFile (line 551) | func TestContextRenderFile(t *testing.T) { function TestContextRenderAttachment (line 569) | func TestContextRenderAttachment(t *testing.T) { function TestRequestContext_Header (line 588) | func TestRequestContext_Header(t *testing.T) { function TestRequestContext_Keys (line 611) | func TestRequestContext_Keys(t *testing.T) { function testFunc (line 621) | func testFunc(c context.Context, ctx *RequestContext) { function testFunc2 (line 625) | func testFunc2(c context.Context, ctx *RequestContext) { function TestRequestContext_Handler (line 629) | func TestRequestContext_Handler(t *testing.T) { function TestRequestContext_Handlers (line 644) | func TestRequestContext_Handlers(t *testing.T) { function TestRequestContext_HandlerName (line 655) | func TestRequestContext_HandlerName(t *testing.T) { function TestNext (line 664) | func TestNext(t *testing.T) { function TestContextError (line 682) | func TestContextError(t *testing.T) { function TestContextAbortWithError (line 717) | func TestContextAbortWithError(t *testing.T) { function TestRender (line 727) | func TestRender(t *testing.T) { function TestHTML (line 763) | func TestHTML(t *testing.T) { type xmlmap (line 779) | type xmlmap method MarshalXML (line 782) | func (h xmlmap) MarshalXML(e *xml.Encoder, start xml.StartElement) err... function TestXML (line 803) | func TestXML(t *testing.T) { function TestJSON (line 810) | func TestJSON(t *testing.T) { function TestDATA (line 817) | func TestDATA(t *testing.T) { function TestContextReset (line 824) | func TestContextReset(t *testing.T) { function TestContextContentType (line 845) | func TestContextContentType(t *testing.T) { type MockConn (line 851) | type MockConn struct method RemoteAddr (line 857) | func (c *MockConn) RemoteAddr() net.Addr { function newContextClientIPTest (line 861) | func newContextClientIPTest() *RequestContext { function TestClientIP (line 871) | func TestClientIP(t *testing.T) { function TestSetClientIPFunc (line 916) | func TestSetClientIPFunc(t *testing.T) { function TestGetQuery (line 924) | func TestGetQuery(t *testing.T) { function TestGetPostForm (line 932) | func TestGetPostForm(t *testing.T) { function TestGetPostFormArray (line 941) | func TestGetPostFormArray(t *testing.T) { function TestRemoteAddr (line 949) | func TestRemoteAddr(t *testing.T) { function TestRequestBodyStream (line 956) | func TestRequestBodyStream(t *testing.T) { function TestContextIsAborted (line 966) | func TestContextIsAborted(t *testing.T) { function TestContextAbortWithStatus (line 980) | func TestContextAbortWithStatus(t *testing.T) { type testJSONAbortMsg (line 991) | type testJSONAbortMsg struct function TestContextAbortWithStatusJSON (line 996) | func TestContextAbortWithStatusJSON(t *testing.T) { function TestRequestCtxFormValue (line 1017) | func TestRequestCtxFormValue(t *testing.T) { function TestSetCustomFormValueFunc (line 1062) | func TestSetCustomFormValueFunc(t *testing.T) { function TestContextSetGet (line 1093) | func TestContextSetGet(t *testing.T) { function TestContextSetGetValues (line 1109) | func TestContextSetGetValues(t *testing.T) { function TestContextGetString (line 1131) | func TestContextGetString(t *testing.T) { function TestContextSetGetBool (line 1139) | func TestContextSetGetBool(t *testing.T) { function TestContextGetInt (line 1147) | func TestContextGetInt(t *testing.T) { function TestContextGetInt32 (line 1155) | func TestContextGetInt32(t *testing.T) { function TestContextGetInt64 (line 1163) | func TestContextGetInt64(t *testing.T) { function TestContextGetUint (line 1171) | func TestContextGetUint(t *testing.T) { function TestContextGetUint32 (line 1179) | func TestContextGetUint32(t *testing.T) { function TestContextGetUint64 (line 1187) | func TestContextGetUint64(t *testing.T) { function TestContextGetFloat32 (line 1195) | func TestContextGetFloat32(t *testing.T) { function TestContextGetFloat64 (line 1203) | func TestContextGetFloat64(t *testing.T) { function TestContextGetTime (line 1211) | func TestContextGetTime(t *testing.T) { function TestContextGetDuration (line 1220) | func TestContextGetDuration(t *testing.T) { function TestContextGetStringSlice (line 1228) | func TestContextGetStringSlice(t *testing.T) { function TestContextGetStringMap (line 1237) | func TestContextGetStringMap(t *testing.T) { function TestContextGetStringMapString (line 1251) | func TestContextGetStringMapString(t *testing.T) { function TestContextGetStringMapStringSlice (line 1265) | func TestContextGetStringMapStringSlice(t *testing.T) { function TestContextTraceInfo (line 1279) | func TestContextTraceInfo(t *testing.T) { function TestEnableTrace (line 1288) | func TestEnableTrace(t *testing.T) { function TestForEachKey (line 1295) | func TestForEachKey(t *testing.T) { function TestFlush (line 1308) | func TestFlush(t *testing.T) { function TestConn (line 1314) | func TestConn(t *testing.T) { function TestHijackHandler (line 1327) | func TestHijackHandler(t *testing.T) { function TestGetReader (line 1340) | func TestGetReader(t *testing.T) { function TestGetWriter (line 1353) | func TestGetWriter(t *testing.T) { function TestIndex (line 1366) | func TestIndex(t *testing.T) { function TestConcurrentHandlerName (line 1378) | func TestConcurrentHandlerName(t *testing.T) { function TestHandlerName (line 1402) | func TestHandlerName(t *testing.T) { function TestHijack (line 1409) | func TestHijack(t *testing.T) { function TestFinished (line 1416) | func TestFinished(t *testing.T) { function TestString (line 1433) | func TestString(t *testing.T) { function TestFullPath (line 1439) | func TestFullPath(t *testing.T) { function TestReset (line 1447) | func TestReset(t *testing.T) { function TestGetHeader (line 1459) | func TestGetHeader(t *testing.T) { function TestGetRawData (line 1466) | func TestGetRawData(t *testing.T) { function TestRequestContext_GetRequest (line 1477) | func TestRequestContext_GetRequest(t *testing.T) { function TestRequestContext_GetResponse (line 1490) | func TestRequestContext_GetResponse(t *testing.T) { function TestBindAndValidate (line 1503) | func TestBindAndValidate(t *testing.T) { function TestBindForm (line 1544) | func TestBindForm(t *testing.T) { function TestSetBinder (line 1570) | func TestSetBinder(t *testing.T) { function TestRequestContext_SetCookie (line 1594) | func TestRequestContext_SetCookie(t *testing.T) { function TestRequestContext_SetPartitionedCookie (line 1600) | func TestRequestContext_SetPartitionedCookie(t *testing.T) { function TestRequestContext_SetCookiePathEmpty (line 1606) | func TestRequestContext_SetCookiePathEmpty(t *testing.T) { function TestRequestContext_VisitAll (line 1612) | func TestRequestContext_VisitAll(t *testing.T) { function BenchmarkInbuiltHandlerNameOperator (line 1666) | func BenchmarkInbuiltHandlerNameOperator(b *testing.B) { function BenchmarkConcurrentHandlerNameOperator (line 1675) | func BenchmarkConcurrentHandlerNameOperator(b *testing.B) { FILE: pkg/app/fs.go type PathRewriteFunc (line 99) | type PathRewriteFunc type FS (line 105) | type FS struct method NewRequestHandler (line 305) | func (fs *FS) NewRequestHandler() HandlerFunc { method initRequestHandler (line 310) | func (fs *FS) initRequestHandler() { type byteRangeUpdater (line 178) | type byteRangeUpdater interface type fsSmallFileReader (line 182) | type fsSmallFileReader struct method Close (line 188) | func (r *fsSmallFileReader) Close() error { method UpdateByteRange (line 198) | func (r *fsSmallFileReader) UpdateByteRange(startPos, endPos int) error { method Read (line 204) | func (r *fsSmallFileReader) Read(p []byte) (int, error) { method WriteTo (line 225) | func (r *fsSmallFileReader) WriteTo(w io.Writer) (int64, error) { function ServeFile (line 279) | func ServeFile(ctx *RequestContext, path string) { type fsHandler (line 357) | type fsHandler struct method cleanCache (line 427) | func (h *fsHandler) cleanCache(pendingFiles []*fsFile) []*fsFile { method compressAndOpenFSFile (line 456) | func (h *fsHandler) compressAndOpenFSFile(filePath string) (*fsFile, e... method newCompressedFSFile (line 494) | func (h *fsHandler) newCompressedFSFile(filePath string) (*fsFile, err... method compressFileNolock (line 507) | func (h *fsHandler) compressFileNolock(f *os.File, fileInfo os.FileInf... method openFSFile (line 551) | func (h *fsHandler) openFSFile(filePath string, mustCompress bool) (*f... method newFSFile (line 598) | func (h *fsHandler) newFSFile(f *os.File, fileInfo os.FileInfo, compre... method createDirIndex (line 632) | func (h *fsHandler) createDirIndex(base *protocol.URI, dirPath string,... method openIndexFile (line 713) | func (h *fsHandler) openIndexFile(ctx *RequestContext, dirPath string,... method handleRequest (line 796) | func (h *fsHandler) handleRequest(c context.Context, ctx *RequestConte... type bigFileReader (line 377) | type bigFileReader struct method UpdateByteRange (line 384) | func (r *bigFileReader) UpdateByteRange(startPos, endPos int) error { method Read (line 394) | func (r *bigFileReader) Read(p []byte) (int, error) { method WriteTo (line 398) | func (r *bigFileReader) WriteTo(w io.Writer) (int64, error) { method Close (line 408) | func (r *bigFileReader) Close() error { type fsFile (line 951) | type fsFile struct method decReadersCount (line 732) | func (ff *fsFile) decReadersCount() { method bigFileReader (line 741) | func (ff *fsFile) bigFileReader() (io.Reader, error) { method NewReader (line 771) | func (ff *fsFile) NewReader() (io.Reader, error) { method smallFileReader (line 782) | func (ff *fsFile) smallFileReader() io.Reader { method Release (line 969) | func (ff *fsFile) Release() { method isBig (line 983) | func (ff *fsFile) isBig() bool { function cleanCacheNolock (line 987) | func cleanCacheNolock(cache map[string]*fsFile, pendingFiles, filesToRel... function stripTrailingSlashes (line 1005) | func stripTrailingSlashes(path []byte) []byte { function isFileCompressible (line 1012) | func isFileCompressible(f *os.File, minCompressRatio float64) bool { function getFileLock (line 1041) | func getFileLock(absPath string) *sync.Mutex { function fileExtension (line 1052) | func fileExtension(path string, compressed bool, compressedFileSuffix st... function readFileHeader (line 1063) | func readFileHeader(f *os.File, compressed bool) ([]byte, error) { function fsModTime (line 1090) | func fsModTime(t time.Time) time.Time { function ParseByteRange (line 1097) | func ParseByteRange(byteRange []byte, contentLength int) (startPos, endP... function NewVHostPathRewriter (line 1161) | func NewVHostPathRewriter(slashesCount int) PathRewriteFunc { function stripLeadingSlashes (line 1182) | func stripLeadingSlashes(path []byte, stripSlashes int) []byte { function ServeFileUncompressed (line 1205) | func ServeFileUncompressed(ctx *RequestContext, path string) { function NewPathSlashesStripper (line 1220) | func NewPathSlashesStripper(slashesCount int) PathRewriteFunc { FILE: pkg/app/fs_test.go function TestNewVHostPathRewriter (line 63) | func TestNewVHostPathRewriter(t *testing.T) { function TestNewVHostPathRewriterMaliciousHost (line 89) | func TestNewVHostPathRewriterMaliciousHost(t *testing.T) { function testPathNotFound (line 104) | func testPathNotFound(t *testing.T, pathNotFoundFunc HandlerFunc) { function TestPathNotFound (line 131) | func TestPathNotFound(t *testing.T) { function TestPathNotFoundFunc (line 137) | func TestPathNotFoundFunc(t *testing.T) { function TestServeFileHead (line 145) | func TestServeFileHead(t *testing.T) { function TestServeFileSmallNoReadFrom (line 184) | func TestServeFileSmallNoReadFrom(t *testing.T) { type pureWriter (line 255) | type pureWriter struct method Write (line 259) | func (pw pureWriter) Write(p []byte) (nn int, err error) { function TestServeFileCompressed (line 263) | func TestServeFileCompressed(t *testing.T) { function TestServeFileUncompressed (line 298) | func TestServeFileUncompressed(t *testing.T) { function TestFSByteRangeConcurrent (line 331) | func TestFSByteRangeConcurrent(t *testing.T) { function TestFSByteRangeSingleThread (line 360) | func TestFSByteRangeSingleThread(t *testing.T) { function testFSByteRange (line 372) | func testFSByteRange(t *testing.T, h HandlerFunc, filePath string) { function getFileContents (line 422) | func getFileContents(path string) ([]byte, error) { function TestParseByteRangeSuccess (line 432) | func TestParseByteRangeSuccess(t *testing.T) { function testParseByteRangeSuccess (line 452) | func testParseByteRangeSuccess(t *testing.T, v string, contentLength, st... function TestParseByteRangeError (line 465) | func TestParseByteRangeError(t *testing.T) { function testParseByteRangeError (line 492) | func testParseByteRangeError(t *testing.T, v string, contentLength int) { function TestFSCompressConcurrent (line 499) | func TestFSCompressConcurrent(t *testing.T) { function TestFSCompressSingleThread (line 530) | func TestFSCompressSingleThread(t *testing.T) { function testFSCompress (line 544) | func testFSCompress(t *testing.T, h HandlerFunc, filePath string) { function TestFileLock (line 595) | func TestFileLock(t *testing.T) { function TestStripPathSlashes (line 615) | func TestStripPathSlashes(t *testing.T) { function testStripPathSlashes (line 636) | func testStripPathSlashes(t *testing.T, path string, stripSlashes int, e... function TestFileExtension (line 644) | func TestFileExtension(t *testing.T) { function testFileExtension (line 660) | func testFileExtension(t *testing.T, path string, compressed bool, compr... function TestServeFileContentType (line 667) | func TestServeFileContentType(t *testing.T) { function TestFileSmallUpdateByteRange (line 691) | func TestFileSmallUpdateByteRange(t *testing.T) { FILE: pkg/app/middlewares/client/sd/discovery.go function Discovery (line 29) | func Discovery(resolver discovery.Resolver, opts ...ServiceDiscoveryOpti... FILE: pkg/app/middlewares/client/sd/discovery_test.go function TestDiscovery (line 29) | func TestDiscovery(t *testing.T) { FILE: pkg/app/middlewares/client/sd/options.go type ServiceDiscoveryOptions (line 31) | type ServiceDiscoveryOptions struct method Apply (line 42) | func (o *ServiceDiscoveryOptions) Apply(opts []ServiceDiscoveryOption) { type ServiceDiscoveryOption (line 48) | type ServiceDiscoveryOption struct function WithCustomizedAddrs (line 54) | func WithCustomizedAddrs(addrs ...string) ServiceDiscoveryOption { function WithLoadBalanceOptions (line 91) | func WithLoadBalanceOptions(lb loadbalance.Loadbalancer, options loadbal... FILE: pkg/app/middlewares/client/sd/options_test.go function TestWithCustomizedAddrs (line 27) | func TestWithCustomizedAddrs(t *testing.T) { function TestWithLoadBalanceOptions (line 39) | func TestWithLoadBalanceOptions(t *testing.T) { FILE: pkg/app/middlewares/server/basic_auth/basic_auth.go type Accounts (line 54) | type Accounts type pairs (line 57) | type pairs method findValue (line 59) | func (p pairs) findValue(needle string) (v string, ok bool) { function constructPairs (line 64) | func constructPairs(accounts Accounts) pairs { function BasicAuthForRealm (line 78) | func BasicAuthForRealm(accounts Accounts, realm, userKey string) app.Han... function BasicAuth (line 99) | func BasicAuth(accounts Accounts) app.HandlerFunc { FILE: pkg/app/middlewares/server/basic_auth/basic_auth_test.go function TestPairs (line 53) | func TestPairs(t *testing.T) { function TestBasicAuth (line 71) | func TestBasicAuth(t *testing.T) { FILE: pkg/app/middlewares/server/recovery/option.go type options (line 28) | type options struct type Option (line 32) | type Option function defaultRecoveryHandler (line 35) | func defaultRecoveryHandler(c context.Context, ctx *app.RequestContext, ... function newOptions (line 40) | func newOptions(opts ...Option) *options { function WithRecoveryHandler (line 52) | func WithRecoveryHandler(f func(c context.Context, ctx *app.RequestConte... FILE: pkg/app/middlewares/server/recovery/option_test.go function TestDefaultOption (line 31) | func TestDefaultOption(t *testing.T) { function newRecoveryHandler (line 36) | func newRecoveryHandler(c context.Context, ctx *app.RequestContext, err ... function TestOption (line 42) | func TestOption(t *testing.T) { FILE: pkg/app/middlewares/server/recovery/recovery.go function Recovery (line 39) | func Recovery(opts ...Option) app.HandlerFunc { function stack (line 55) | func stack(skip int) []byte { function source (line 82) | func source(lines [][]byte, n int) []byte { function function (line 91) | func function(pc uintptr) []byte { FILE: pkg/app/middlewares/server/recovery/recovery_test.go function TestRecovery (line 29) | func TestRecovery(t *testing.T) { function TestWithRecoveryHandler (line 45) | func TestWithRecoveryHandler(t *testing.T) { FILE: pkg/app/server/binding/binder.go type Binder (line 48) | type Binder interface FILE: pkg/app/server/binding/binder_test.go type mockRequest (line 63) | type mockRequest struct method SetRequestURI (line 73) | func (m *mockRequest) SetRequestURI(uri string) *mockRequest { method SetFile (line 78) | func (m *mockRequest) SetFile(param, fileName string) *mockRequest { method SetHeader (line 83) | func (m *mockRequest) SetHeader(key, value string) *mockRequest { method SetHeaders (line 88) | func (m *mockRequest) SetHeaders(key, value string) *mockRequest { method SetPostArg (line 93) | func (m *mockRequest) SetPostArg(key, value string) *mockRequest { method SetUrlEncodeContentType (line 98) | func (m *mockRequest) SetUrlEncodeContentType() *mockRequest { method SetJSONContentType (line 103) | func (m *mockRequest) SetJSONContentType() *mockRequest { method SetProtobufContentType (line 108) | func (m *mockRequest) SetProtobufContentType() *mockRequest { method SetBody (line 113) | func (m *mockRequest) SetBody(data []byte) *mockRequest { function newMockRequest (line 67) | func newMockRequest() *mockRequest { function TestBind_BaseType (line 119) | func TestBind_BaseType(t *testing.T) { function TestBind_SliceType (line 150) | func TestBind_SliceType(t *testing.T) { function TestBind_StructType (line 187) | func TestBind_StructType(t *testing.T) { function TestBind_PointerType (line 224) | func TestBind_PointerType(t *testing.T) { function TestBind_NestedStruct (line 269) | func TestBind_NestedStruct(t *testing.T) { function TestBind_SliceStruct (line 292) | func TestBind_SliceStruct(t *testing.T) { function TestBind_MapType (line 315) | func TestBind_MapType(t *testing.T) { function TestBind_MapFieldType (line 329) | func TestBind_MapFieldType(t *testing.T) { function TestBind_UnexportedField (line 365) | func TestBind_UnexportedField(t *testing.T) { function TestBind_NoTagField (line 380) | func TestBind_NoTagField(t *testing.T) { function TestBind_ZeroValueBind (line 405) | func TestBind_ZeroValueBind(t *testing.T) { function TestBind_DefaultValueBind (line 424) | func TestBind_DefaultValueBind(t *testing.T) { function TestBind_RequiredBind (line 470) | func TestBind_RequiredBind(t *testing.T) { function TestBind_TypedefType (line 497) | func TestBind_TypedefType(t *testing.T) { type EnumType (line 521) | type EnumType method String (line 528) | func (p EnumType) String() string { constant EnumType_TWEET (line 524) | EnumType_TWEET EnumType = 0 constant EnumType_RETWEET (line 525) | EnumType_RETWEET EnumType = 2 function TestBind_EnumBind (line 538) | func TestBind_EnumBind(t *testing.T) { type CustomizedDecode (line 551) | type CustomizedDecode struct function TestBind_CustomizedTypeDecode (line 555) | func TestBind_CustomizedTypeDecode(t *testing.T) { function TestBind_CustomizedTypeDecodeForPanic (line 597) | func TestBind_CustomizedTypeDecodeForPanic(t *testing.T) { function TestBind_JSON (line 610) | func TestBind_JSON(t *testing.T) { function TestBind_ResetJSONUnmarshal (line 639) | func TestBind_ResetJSONUnmarshal(t *testing.T) { function TestBind_FileBind (line 670) | func TestBind_FileBind(t *testing.T) { function TestBind_FileBindWithNoFile (line 701) | func TestBind_FileBindWithNoFile(t *testing.T) { function TestBind_FileSliceBind (line 726) | func TestBind_FileSliceBind(t *testing.T) { function TestBind_AnonymousField (line 770) | func TestBind_AnonymousField(t *testing.T) { function TestBind_IgnoreField (line 795) | func TestBind_IgnoreField(t *testing.T) { function TestBind_DefaultTag (line 826) | func TestBind_DefaultTag(t *testing.T) { function TestBind_StructFieldResolve (line 873) | func TestBind_StructFieldResolve(t *testing.T) { function TestBind_JSONRequiredField (line 911) | func TestBind_JSONRequiredField(t *testing.T) { function TestValidate_MultipleValidate (line 969) | func TestValidate_MultipleValidate(t *testing.T) { function TestBind_BindQuery (line 982) | func TestBind_BindQuery(t *testing.T) { function TestBind_LooseMode (line 1008) | func TestBind_LooseMode(t *testing.T) { function TestBind_NonStruct (line 1038) | func TestBind_NonStruct(t *testing.T) { function TestBind_BindTag (line 1053) | func TestBind_BindTag(t *testing.T) { function TestBind_BindAndValidate (line 1118) | func TestBind_BindAndValidate(t *testing.T) { function TestBind_FastPath (line 1156) | func TestBind_FastPath(t *testing.T) { function TestBind_NonPointer (line 1181) | func TestBind_NonPointer(t *testing.T) { function TestBind_PreBind (line 1201) | func TestBind_PreBind(t *testing.T) { function TestBind_BindProtobuf (line 1224) | func TestBind_BindProtobuf(t *testing.T) { function TestBind_PointerStruct (line 1250) | func TestBind_PointerStruct(t *testing.T) { function TestBind_StructRequired (line 1283) | func TestBind_StructRequired(t *testing.T) { function TestBind_StructErrorToWarn (line 1316) | func TestBind_StructErrorToWarn(t *testing.T) { function TestBind_DisallowUnknownFieldsConfig (line 1350) | func TestBind_DisallowUnknownFieldsConfig(t *testing.T) { function TestBind_UseNumberConfig (line 1369) | func TestBind_UseNumberConfig(t *testing.T) { function TestBind_InterfaceType (line 1393) | func TestBind_InterfaceType(t *testing.T) { function Test_BindHeaderNormalize (line 1419) | func Test_BindHeaderNormalize(t *testing.T) { type ValidateError (line 1493) | type ValidateError struct method Error (line 1498) | func (e *ValidateError) Error() string { function Test_ValidatorErrorFactory (line 1505) | func Test_ValidatorErrorFactory(t *testing.T) { function Test_Issue964 (line 1550) | func Test_Issue964(t *testing.T) { type reqSameType (line 1572) | type reqSameType struct type reqSameType2 (line 1579) | type reqSameType2 struct function TestBind_Issue1015 (line 1583) | func TestBind_Issue1015(t *testing.T) { function TestBind_JSONWithDefault (line 1606) | func TestBind_JSONWithDefault(t *testing.T) { function TestBind_WithoutPreBindForTag (line 1632) | func TestBind_WithoutPreBindForTag(t *testing.T) { function TestBind_NormalizeContentType (line 1653) | func TestBind_NormalizeContentType(t *testing.T) { type TestEnumType (line 1674) | type TestEnumType method UnmarshalText (line 1678) | func (p *TestEnumType) UnmarshalText(v []byte) error { function TestBind_TextUnmarshaler (line 1690) | func TestBind_TextUnmarshaler(t *testing.T) { function Benchmark_Binding (line 1709) | func Benchmark_Binding(b *testing.B) { function TestBind_AnonymousFieldWithDefaultTag (line 1753) | func TestBind_AnonymousFieldWithDefaultTag(t *testing.T) { FILE: pkg/app/server/binding/config.go type BindConfig (line 33) | type BindConfig struct method RegTypeUnmarshal (line 98) | func (config *BindConfig) RegTypeUnmarshal(t reflect.Type, fn inDecode... method MustRegTypeUnmarshal (line 117) | func (config *BindConfig) MustRegTypeUnmarshal(t reflect.Type, fn func... method initTypeUnmarshal (line 124) | func (config *BindConfig) initTypeUnmarshal() { method UseThirdPartyJSONUnmarshaler (line 141) | func (config *BindConfig) UseThirdPartyJSONUnmarshaler(fn func(data []... method UseStdJSONUnmarshaler (line 150) | func (config *BindConfig) UseStdJSONUnmarshaler() { function NewBindConfig (line 85) | func NewBindConfig() *BindConfig { type ValidateErrFactory (line 157) | type ValidateErrFactory type ValidateConfig (line 162) | type ValidateConfig struct method MustRegValidateFunc (line 181) | func (config *ValidateConfig) MustRegValidateFunc(funcName string, fn ... method SetValidatorErrorFactory (line 188) | func (config *ValidateConfig) SetValidatorErrorFactory(errFactory Vali... method SetValidatorTag (line 195) | func (config *ValidateConfig) SetValidatorTag(tag string) { function NewValidateConfig (line 170) | func NewValidateConfig() *ValidateConfig { FILE: pkg/app/server/binding/default.go constant queryTag (line 85) | queryTag = "query" constant headerTag (line 86) | headerTag = "header" constant formTag (line 87) | formTag = "form" constant pathTag (line 88) | pathTag = "path" constant defaultValidateTag (line 89) | defaultValidateTag = "vd" type decoderInfo (line 92) | type decoderInfo struct function DefaultBinder (line 98) | func DefaultBinder() Binder { type defaultBinder (line 102) | type defaultBinder struct method tagCache (line 156) | func (b *defaultBinder) tagCache(tag string) *sync.Map { method bindTag (line 171) | func (b *defaultBinder) bindTag(req *protocol.Request, v interface{}, ... method BindQuery (line 211) | func (b *defaultBinder) BindQuery(req *protocol.Request, v interface{}... method BindHeader (line 215) | func (b *defaultBinder) BindHeader(req *protocol.Request, v interface{... method BindPath (line 219) | func (b *defaultBinder) BindPath(req *protocol.Request, v interface{},... method BindForm (line 223) | func (b *defaultBinder) BindForm(req *protocol.Request, v interface{})... method BindJSON (line 227) | func (b *defaultBinder) BindJSON(req *protocol.Request, v interface{})... method decodeJSON (line 231) | func (b *defaultBinder) decodeJSON(r io.Reader, obj interface{}) error { method BindProtobuf (line 243) | func (b *defaultBinder) BindProtobuf(req *protocol.Request, v interfac... method Name (line 251) | func (b *defaultBinder) Name() string { method Bind (line 255) | func (b *defaultBinder) Bind(req *protocol.Request, v interface{}, par... method Validate (line 259) | func (b *defaultBinder) Validate(req *protocol.Request, v interface{})... method preBindBody (line 264) | func (b *defaultBinder) preBindBody(req *protocol.Request, v interface... method bindNonStruct (line 283) | func (b *defaultBinder) bindNonStruct(req *protocol.Request, v interfa... function NewDefaultBinder (line 111) | func NewDefaultBinder(config *BindConfig) Binder { function BindAndValidate (line 132) | func BindAndValidate(req *protocol.Request, obj interface{}, pathParams ... function Bind (line 143) | func Bind(req *protocol.Request, obj interface{}, pathParams param.Param... function Validate (line 152) | func Validate(obj interface{}) error { type validator (line 327) | type validator struct method ValidateStruct (line 372) | func (v *validator) ValidateStruct(obj interface{}) error { method Engine (line 380) | func (v *validator) Engine() interface{} { method ValidateTag (line 384) | func (v *validator) ValidateTag() string { function NewValidator (line 336) | func NewValidator(config *ValidateConfig) StructValidator { type validateError (line 352) | type validateError struct method Error (line 357) | func (e *validateError) Error() string { function defaultValidateErrorFactory (line 364) | func defaultValidateErrorFactory(failPath, msg string) error { function DefaultValidator (line 405) | func DefaultValidator() StructValidator { FILE: pkg/app/server/binding/internal/decoder/base_type_decoder.go type fieldInfo (line 51) | type fieldInfo struct type baseTypeFieldTextDecoder (line 60) | type baseTypeFieldTextDecoder struct method Decode (line 65) | func (d *baseTypeFieldTextDecoder) Decode(req *protocol.Request, param... function getBaseTypeTextDecoder (line 139) | func getBaseTypeTextDecoder(field reflect.StructField, index int, tagInf... FILE: pkg/app/server/binding/internal/decoder/customized_type_decoder.go type CustomizeDecodeFunc (line 50) | type CustomizeDecodeFunc type customizedFieldTextDecoder (line 52) | type customizedFieldTextDecoder struct method Decode (line 57) | func (d *customizedFieldTextDecoder) Decode(req *protocol.Request, par... function getCustomizedFieldDecoder (line 109) | func getCustomizedFieldDecoder(field reflect.StructField, index int, tag... FILE: pkg/app/server/binding/internal/decoder/decoder.go type fieldDecoder (line 52) | type fieldDecoder interface type Decoder (line 56) | type Decoder type DecodeConfig (line 58) | type DecodeConfig struct function GetReqDecoder (line 67) | func GetReqDecoder(rt reflect.Type, byTag string, config *DecodeConfig) ... type parentInfos (line 103) | type parentInfos struct function getFieldDecoder (line 109) | func getFieldDecoder(pInfo parentInfos, field reflect.StructField, index... function hasSameType (line 207) | func hasSameType(pts []reflect.Type, ft reflect.Type) bool { FILE: pkg/app/server/binding/internal/decoder/getter.go type getter (line 48) | type getter function path (line 50) | func path(req *protocol.Request, params param.Params, key string, defaul... function postForm (line 61) | func postForm(req *protocol.Request, params param.Params, key string, de... function query (line 89) | func query(req *protocol.Request, params param.Params, key string, defau... function cookie (line 101) | func cookie(req *protocol.Request, params param.Params, key string, defa... function header (line 114) | func header(req *protocol.Request, params param.Params, key string, defa... function rawBody (line 127) | func rawBody(req *protocol.Request, params param.Params, key string, def... FILE: pkg/app/server/binding/internal/decoder/gjson_required.go function checkRequireJSON (line 30) | func checkRequireJSON(req *protocol.Request, tagInfo TagInfo) bool { function keyExist (line 50) | func keyExist(req *protocol.Request, tagInfo TagInfo) bool { FILE: pkg/app/server/binding/internal/decoder/map_type_decoder.go type mapTypeFieldTextDecoder (line 53) | type mapTypeFieldTextDecoder struct method Decode (line 57) | func (d *mapTypeFieldTextDecoder) Decode(req *protocol.Request, params... function getMapTypeTextDecoder (line 124) | func getMapTypeTextDecoder(field reflect.StructField, index int, tagInfo... FILE: pkg/app/server/binding/internal/decoder/multipart_file_decoder.go type fileTypeDecoder (line 28) | type fileTypeDecoder struct method Decode (line 33) | func (d *fileTypeDecoder) Decode(req *protocol.Request, params param.P... method fileSliceDecode (line 78) | func (d *fileTypeDecoder) fileSliceDecode(req *protocol.Request, param... function getMultipartFileDecoder (line 148) | func getMultipartFileDecoder(field reflect.StructField, index int, tagIn... FILE: pkg/app/server/binding/internal/decoder/reflect.go function ReferenceValue (line 48) | func ReferenceValue(v reflect.Value, ptrDepth int) reflect.Value { function GetNonNilReferenceValue (line 64) | func GetNonNilReferenceValue(v reflect.Value) (reflect.Value, int) { function GetFieldValue (line 77) | func GetFieldValue(reqValue reflect.Value, parentIndex []int) reflect.Va... function getElemType (line 107) | func getElemType(t reflect.Type) reflect.Type { FILE: pkg/app/server/binding/internal/decoder/slice_getter.go type sliceGetter (line 49) | type sliceGetter function pathSlice (line 51) | func pathSlice(req *protocol.Request, params param.Params, key string, d... function postFormSlice (line 67) | func postFormSlice(req *protocol.Request, params param.Params, key strin... function querySlice (line 96) | func querySlice(req *protocol.Request, params param.Params, key string, ... function cookieSlice (line 110) | func cookieSlice(req *protocol.Request, params param.Params, key string,... function headerSlice (line 124) | func headerSlice(req *protocol.Request, params param.Params, key string,... function rawBodySlice (line 132) | func rawBodySlice(req *protocol.Request, params param.Params, key string... FILE: pkg/app/server/binding/internal/decoder/slice_type_decoder.go type sliceTypeFieldTextDecoder (line 54) | type sliceTypeFieldTextDecoder struct method Decode (line 59) | func (d *sliceTypeFieldTextDecoder) Decode(req *protocol.Request, para... function getSliceFieldDecoder (line 176) | func getSliceFieldDecoder(field reflect.StructField, index int, tagInfos... FILE: pkg/app/server/binding/internal/decoder/sonic_required.go function checkRequireJSON (line 30) | func checkRequireJSON(req *protocol.Request, tagInfo TagInfo) bool { function stringSliceForInterface (line 53) | func stringSliceForInterface(s string) (ret []interface{}) { function keyExist (line 61) | func keyExist(req *protocol.Request, tagInfo TagInfo) bool { FILE: pkg/app/server/binding/internal/decoder/struct_type_decoder.go type structTypeFieldTextDecoder (line 30) | type structTypeFieldTextDecoder struct method Decode (line 34) | func (d *structTypeFieldTextDecoder) Decode(req *protocol.Request, par... function getStructTypeFieldDecoder (line 101) | func getStructTypeFieldDecoder(field reflect.StructField, index int, tag... FILE: pkg/app/server/binding/internal/decoder/tag.go constant pathTag (line 25) | pathTag = "path" constant formTag (line 26) | formTag = "form" constant queryTag (line 27) | queryTag = "query" constant cookieTag (line 28) | cookieTag = "cookie" constant headerTag (line 29) | headerTag = "header" constant jsonTag (line 30) | jsonTag = "json" constant rawBodyTag (line 31) | rawBodyTag = "raw_body" constant fileNameTag (line 32) | fileNameTag = "file_name" constant defaultTag (line 36) | defaultTag = "default" constant requiredTagOpt (line 40) | requiredTagOpt = "required" type TagInfo (line 43) | type TagInfo struct function head (line 55) | func head(str, sep string) (head, tail string) { function lookupFieldTags (line 63) | func lookupFieldTags(field reflect.StructField, parentJSONName string, c... function getDefaultFieldTags (line 119) | func getDefaultFieldTags(field reflect.StructField, parentJSONName strin... function getFieldTagInfoByTag (line 135) | func getFieldTagInfoByTag(field reflect.StructField, tag string) []TagIn... FILE: pkg/app/server/binding/internal/decoder/text_decoder.go type TextDecoder (line 52) | type TextDecoder interface function SelectTextDecoder (line 56) | func SelectTextDecoder(rt reflect.Type) (TextDecoder, error) { type boolDecoder (line 93) | type boolDecoder struct method UnmarshalString (line 95) | func (d *boolDecoder) UnmarshalString(s string, fieldValue reflect.Val... type floatDecoder (line 107) | type floatDecoder struct method UnmarshalString (line 111) | func (d *floatDecoder) UnmarshalString(s string, fieldValue reflect.Va... type intDecoder (line 123) | type intDecoder struct method UnmarshalString (line 127) | func (d *intDecoder) UnmarshalString(s string, fieldValue reflect.Valu... type stringDecoder (line 139) | type stringDecoder struct method UnmarshalString (line 141) | func (d *stringDecoder) UnmarshalString(s string, fieldValue reflect.V... type uintDecoder (line 146) | type uintDecoder struct method UnmarshalString (line 150) | func (d *uintDecoder) UnmarshalString(s string, fieldValue reflect.Val... type interfaceDecoder (line 162) | type interfaceDecoder struct method UnmarshalString (line 164) | func (d *interfaceDecoder) UnmarshalString(s string, fieldValue reflec... FILE: pkg/app/server/binding/internal/decoder/util.go constant specialChar (line 32) | specialChar = "\x07" function toDefaultValue (line 36) | func toDefaultValue(typ reflect.Type, defaultValue string) string { function stringToValue (line 49) | func stringToValue(elemType reflect.Type, text string, req *protocol.Req... function tryTextUnmarshaler (line 86) | func tryTextUnmarshaler(v reflect.Value, s string) bool { FILE: pkg/app/server/binding/internal/decoder/util_test.go type testTextUnmarshaler (line 30) | type testTextUnmarshaler struct method UnmarshalText (line 34) | func (t *testTextUnmarshaler) UnmarshalText(text []byte) error { function TestStringToValue (line 41) | func TestStringToValue(t *testing.T) { function TestTryTextUnmarshaler (line 160) | func TestTryTextUnmarshaler(t *testing.T) { FILE: pkg/app/server/binding/reflect.go function valueAndTypeID (line 49) | func valueAndTypeID(v interface{}) (reflect.Value, uintptr) { type emptyInterface (line 55) | type emptyInterface struct function checkPointer (line 60) | func checkPointer(rv reflect.Value) error { function dereferenceType (line 68) | func dereferenceType(t reflect.Type) reflect.Type { FILE: pkg/app/server/binding/reflect_internal_test.go type foo2 (line 26) | type foo2 struct type fooq (line 30) | type fooq struct function Test_ReferenceValue (line 34) | func Test_ReferenceValue(t *testing.T) { function Test_GetNonNilReferenceValue (line 52) | func Test_GetNonNilReferenceValue(t *testing.T) { function Test_GetFieldValue (line 69) | func Test_GetFieldValue(t *testing.T) { FILE: pkg/app/server/binding/reflect_test.go type foo (line 26) | type foo struct function TestReflect_TypeID (line 30) | func TestReflect_TypeID(t *testing.T) { function TestReflect_CheckPointer (line 48) | func TestReflect_CheckPointer(t *testing.T) { function TestReflect_DereferenceType (line 71) | func TestReflect_DereferenceType(t *testing.T) { FILE: pkg/app/server/binding/tagexpr_bind_test.go function TestRawBody (line 55) | func TestRawBody(t *testing.T) { function TestQueryString (line 74) | func TestQueryString(t *testing.T) { function TestGetBody (line 112) | func TestGetBody(t *testing.T) { function TestQueryNum (line 127) | func TestQueryNum(t *testing.T) { function TestHeaderString (line 154) | func TestHeaderString(t *testing.T) { function TestHeaderNum (line 190) | func TestHeaderNum(t *testing.T) { function TestCookieString (line 225) | func TestCookieString(t *testing.T) { function TestCookieNum (line 261) | func TestCookieNum(t *testing.T) { function TestFormString (line 294) | func TestFormString(t *testing.T) { function TestFormNum (line 348) | func TestFormNum(t *testing.T) { function TestJSON (line 392) | func TestJSON(t *testing.T) { function TestNonstruct (line 446) | func TestNonstruct(t *testing.T) { function TestPath (line 488) | func TestPath(t *testing.T) { function TestDefault (line 542) | func TestDefault(t *testing.T) { function TestAuto (line 624) | func TestAuto(t *testing.T) { function TestTypeUnmarshal (line 679) | func TestTypeUnmarshal(t *testing.T) { function TestOption (line 719) | func TestOption(t *testing.T) { function newRequest (line 794) | func newRequest(u string, header http.Header, cookies []*http.Cookie, bo... function TestQueryStringIssue (line 825) | func TestQueryStringIssue(t *testing.T) { function TestQueryTypes (line 845) | func TestQueryTypes(t *testing.T) { function TestNoTagIssue (line 895) | func TestNoTagIssue(t *testing.T) { function TestRegTypeUnmarshal (line 916) | func TestRegTypeUnmarshal(t *testing.T) { function TestPathnameBUG (line 956) | func TestPathnameBUG(t *testing.T) { function TestPathnameBUG2 (line 1013) | func TestPathnameBUG2(t *testing.T) { function TestRequiredBUG (line 1071) | func TestRequiredBUG(t *testing.T) { function TestIssue25 (line 1119) | func TestIssue25(t *testing.T) { function TestIssue26 (line 1149) | func TestIssue26(t *testing.T) { function TestDefault2 (line 1199) | func TestDefault2(t *testing.T) { type files (line 1223) | type files type file (line 1224) | type file interface function newFormBody2 (line 1230) | func newFormBody2(values url.Values, files files) (contentType string, b... function newFile (line 1256) | func newFile(name string, bodyReader io.Reader) file { type fileReader (line 1261) | type fileReader struct method Name (line 1266) | func (f *fileReader) Name() string { method Read (line 1270) | func (f *fileReader) Read(p []byte) (int, error) { function newJSONBody (line 1274) | func newJSONBody(v interface{}) (contentType string, bodyReader io.Reade... FILE: pkg/app/server/binding/testdata/hello.pb.go constant _ (line 34) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 36) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type HertzReq (line 39) | type HertzReq struct method Reset (line 47) | func (x *HertzReq) Reset() { method String (line 56) | func (x *HertzReq) String() string { method ProtoMessage (line 60) | func (*HertzReq) ProtoMessage() {} method ProtoReflect (line 62) | func (x *HertzReq) ProtoReflect() protoreflect.Message { method Descriptor (line 75) | func (*HertzReq) Descriptor() ([]byte, []int) { method GetName (line 79) | func (x *HertzReq) GetName() string { function file_hello_proto_rawDescGZIP (line 101) | func file_hello_proto_rawDescGZIP() []byte { function init (line 120) | func init() { file_hello_proto_init() } function file_hello_proto_init (line 121) | func file_hello_proto_init() { FILE: pkg/app/server/binding/validator.go type ValidatorFunc (line 52) | type ValidatorFunc type StructValidator (line 58) | type StructValidator interface function MakeValidatorFunc (line 71) | func MakeValidatorFunc(s StructValidator) ValidatorFunc { function containsStructTag (line 99) | func containsStructTag(rt reflect.Type, tag string, checking map[reflect... FILE: pkg/app/server/binding/validator_test.go function Test_ValidateStruct (line 25) | func Test_ValidateStruct(t *testing.T) { function Test_ValidateTag (line 39) | func Test_ValidateTag(t *testing.T) { FILE: pkg/app/server/hertz.go type Hertz (line 33) | type Hertz struct method Spin (line 56) | func (h *Hertz) Spin() { method SetCustomSignalWaiter (line 84) | func (h *Hertz) SetCustomSignalWaiter(f func(err chan error) error) { method initOnRunHooks (line 115) | func (h *Hertz) initOnRunHooks(errChan chan error) { function New (line 39) | func New(opts ...config.Option) *Hertz { function Default (line 48) | func Default(opts ...config.Option) *Hertz { function waitSignal (line 90) | func waitSignal(errCh chan error) error { FILE: pkg/app/server/hertz_test.go type routeEngine (line 55) | type routeEngine interface function waitEngineRunning (line 59) | func waitEngineRunning(e routeEngine) { function fullURL (line 63) | func fullURL(ln net.Listener, p string) string { function TestHertz_Run (line 67) | func TestHertz_Run(t *testing.T) { function TestHertz_GracefulShutdown (line 93) | func TestHertz_GracefulShutdown(t *testing.T) { function TestLoadHTMLGlob (line 171) | func TestLoadHTMLGlob(t *testing.T) { function TestLoadHTMLFiles (line 197) | func TestLoadHTMLFiles(t *testing.T) { function formatAsDate (line 225) | func formatAsDate(t time.Time) string { function TestServer_Use (line 236) | func TestServer_Use(t *testing.T) { function Test_getServerName (line 244) | func Test_getServerName(t *testing.T) { function TestServer_Run (line 252) | func TestServer_Run(t *testing.T) { function TestNotAbsolutePath (line 289) | func TestNotAbsolutePath(t *testing.T) { function TestNotAbsolutePathWithRawPath (line 328) | func TestNotAbsolutePathWithRawPath(t *testing.T) { function TestNotValidHost (line 376) | func TestNotValidHost(t *testing.T) { function TestWithBasePath (line 419) | func TestWithBasePath(t *testing.T) { function TestNotEnoughBodySize (line 440) | func TestNotEnoughBodySize(t *testing.T) { function TestEnoughBodySize (line 463) | func TestEnoughBodySize(t *testing.T) { function TestRequestCtxHijack (line 483) | func TestRequestCtxHijack(t *testing.T) { function verifyResponse (line 557) | func verifyResponse(t *testing.T, zr network.Reader, expectedStatusCode ... function verifyResponseHeader (line 569) | func verifyResponseHeader(t *testing.T, h *protocol.ResponseHeader, expe... function TestParamInconsist (line 584) | func TestParamInconsist(t *testing.T) { function TestDuplicateReleaseBodyStream (line 623) | func TestDuplicateReleaseBodyStream(t *testing.T) { function TestServiceRegisterFailed (line 668) | func TestServiceRegisterFailed(t *testing.T) { function TestServiceDeregisterFailed (line 694) | func TestServiceDeregisterFailed(t *testing.T) { function TestServiceRegistryInfo (line 734) | func TestServiceRegistryInfo(t *testing.T) { function TestServiceRegistryNoInitInfo (line 784) | func TestServiceRegistryNoInitInfo(t *testing.T) { type testTracer (line 826) | type testTracer struct method Start (line 828) | func (t testTracer) Start(ctx context.Context, c *app.RequestContext) ... method Finish (line 838) | func (t testTracer) Finish(ctx context.Context, c *app.RequestContext) {} function TestReuseCtx (line 840) | func TestReuseCtx(t *testing.T) { function TestOnprepare (line 857) | func TestOnprepare(t *testing.T) { type lockBuffer (line 917) | type lockBuffer struct method Write (line 922) | func (l *lockBuffer) Write(p []byte) (int, error) { method String (line 928) | func (l *lockBuffer) String() string { function TestHertzDisableHeaderNamesNormalizing (line 934) | func TestHertzDisableHeaderNamesNormalizing(t *testing.T) { function TestBindConfig (line 972) | func TestBindConfig(t *testing.T) { function TestCustomBinder (line 1021) | func TestCustomBinder(t *testing.T) { function TestValidateConfigRegValidateFunc (line 1048) | func TestValidateConfigRegValidateFunc(t *testing.T) { function TestCustomValidator (line 1077) | func TestCustomValidator(t *testing.T) { type ValidateError (line 1105) | type ValidateError struct method Error (line 1110) | func (e *ValidateError) Error() string { function TestValidateConfigSetSetErrorFactory (line 1117) | func TestValidateConfigSetSetErrorFactory(t *testing.T) { function TestValidateConfigAndBindConfig (line 1155) | func TestValidateConfigAndBindConfig(t *testing.T) { function TestWithDisableDefaultDate (line 1184) | func TestWithDisableDefaultDate(t *testing.T) { function TestWithDisableDefaultContentType (line 1200) | func TestWithDisableDefaultContentType(t *testing.T) { function TestServerReturns413And431OnSizeLimits (line 1216) | func TestServerReturns413And431OnSizeLimits(t *testing.T) { FILE: pkg/app/server/hertz_unix_test.go function TestReusePorts (line 44) | func TestReusePorts(t *testing.T) { function TestHertz_Spin (line 85) | func TestHertz_Spin(t *testing.T) { function TestWithSenseClientDisconnection (line 146) | func TestWithSenseClientDisconnection(t *testing.T) { function TestWithSenseClientDisconnectionAndWithOnConnect (line 175) | func TestWithSenseClientDisconnectionAndWithOnConnect(t *testing.T) { FILE: pkg/app/server/mocks_test.go type MockRegistry (line 26) | type MockRegistry struct method Register (line 32) | func (m MockRegistry) Register(info *registry.Info) error { method Deregister (line 40) | func (m MockRegistry) Deregister(info *registry.Info) error { FILE: pkg/app/server/option.go function WithKeepAliveTimeout (line 38) | func WithKeepAliveTimeout(t time.Duration) config.Option { function WithReadTimeout (line 47) | func WithReadTimeout(t time.Duration) config.Option { function WithWriteTimeout (line 56) | func WithWriteTimeout(t time.Duration) config.Option { function WithIdleTimeout (line 66) | func WithIdleTimeout(t time.Duration) config.Option { function WithRedirectTrailingSlash (line 79) | func WithRedirectTrailingSlash(b bool) config.Option { function WithRedirectFixedPath (line 96) | func WithRedirectFixedPath(b bool) config.Option { function WithHandleMethodNotAllowed (line 110) | func WithHandleMethodNotAllowed(b bool) config.Option { function WithUseRawPath (line 119) | func WithUseRawPath(b bool) config.Option { function WithRemoveExtraSlash (line 130) | func WithRemoveExtraSlash(b bool) config.Option { function WithUnescapePathValues (line 141) | func WithUnescapePathValues(b bool) config.Option { function WithDisablePreParseMultipartForm (line 152) | func WithDisablePreParseMultipartForm(b bool) config.Option { function WithHostPorts (line 159) | func WithHostPorts(hp string) config.Option { function WithListener (line 176) | func WithListener(ln net.Listener) config.Option { function WithBasePath (line 186) | func WithBasePath(basePath string) config.Option { function WithMaxRequestBodySize (line 202) | func WithMaxRequestBodySize(bs int) config.Option { function WithMaxHeaderBytes (line 214) | func WithMaxHeaderBytes(size int) config.Option { function WithMaxKeepBodySize (line 224) | func WithMaxKeepBodySize(bs int) config.Option { function WithGetOnly (line 231) | func WithGetOnly(isOnly bool) config.Option { function WithKeepAlive (line 238) | func WithKeepAlive(b bool) config.Option { function WithStreamBody (line 249) | func WithStreamBody(b bool) config.Option { function WithNetwork (line 256) | func WithNetwork(nw string) config.Option { function WithExitWaitTime (line 266) | func WithExitWaitTime(timeout time.Duration) config.Option { function WithTLS (line 275) | func WithTLS(cfg *tls.Config) config.Option { function WithListenConfig (line 286) | func WithListenConfig(l *net.ListenConfig) config.Option { function WithTransport (line 293) | func WithTransport(transporter func(options *config.Options) network.Tra... function WithAltTransport (line 300) | func WithAltTransport(transporter func(options *config.Options) network.... function WithH2C (line 307) | func WithH2C(enable bool) config.Option { function WithReadBufferSize (line 315) | func WithReadBufferSize(size int) config.Option { function WithALPN (line 322) | func WithALPN(enable bool) config.Option { function WithTracer (line 329) | func WithTracer(t tracer.Tracer) config.Option { function WithTraceLevel (line 336) | func WithTraceLevel(level stats.Level) config.Option { function WithRegistry (line 343) | func WithRegistry(r registry.Registry, info *registry.Info) config.Option { function WithAutoReloadRender (line 354) | func WithAutoReloadRender(b bool, interval time.Duration) config.Option { function WithDisablePrintRoute (line 363) | func WithDisablePrintRoute(b bool) config.Option { function WithOnAccept (line 371) | func WithOnAccept(fn func(conn net.Conn) context.Context) config.Option { function WithOnConnect (line 379) | func WithOnConnect(fn func(ctx context.Context, conn network.Conn) conte... function WithBindConfig (line 386) | func WithBindConfig(bc *binding.BindConfig) config.Option { function WithValidateConfig (line 395) | func WithValidateConfig(vc *binding.ValidateConfig) config.Option { function WithCustomBinder (line 416) | func WithCustomBinder(b binding.Binder) config.Option { function WithCustomValidator (line 425) | func WithCustomValidator(b binding.StructValidator) config.Option { function WithCustomValidatorFunc (line 430) | func WithCustomValidatorFunc(vf binding.ValidatorFunc) config.Option { function WithDisableHeaderNamesNormalizing (line 437) | func WithDisableHeaderNamesNormalizing(disable bool) config.Option { function WithDisableDefaultDate (line 443) | func WithDisableDefaultDate(disable bool) config.Option { function WithDisableDefaultContentType (line 449) | func WithDisableDefaultContentType(disable bool) config.Option { function WithSenseClientDisconnection (line 465) | func WithSenseClientDisconnection(b bool) config.Option { FILE: pkg/app/server/option_test.go function TestOptions (line 36) | func TestOptions(t *testing.T) { function TestDefaultOptions (line 119) | func TestDefaultOptions(t *testing.T) { function TestWithListener (line 154) | func TestWithListener(t *testing.T) { type mockTransporter (line 177) | type mockTransporter struct method ListenAndServe (line 179) | func (m *mockTransporter) ListenAndServe(onData network.OnData) (err e... method Close (line 183) | func (m *mockTransporter) Close() error { method Shutdown (line 187) | func (m *mockTransporter) Shutdown(ctx context.Context) error { FILE: pkg/app/server/registry/registry.go constant DefaultWeight (line 22) | DefaultWeight = 10 type Registry (line 26) | type Registry interface type Info (line 33) | type Info struct type noopRegistry (line 48) | type noopRegistry struct method Register (line 50) | func (e noopRegistry) Register(*Info) error { method Deregister (line 54) | func (e noopRegistry) Deregister(*Info) error { FILE: pkg/app/server/registry/registry_test.go function TestNoopRegistry (line 25) | func TestNoopRegistry(t *testing.T) { FILE: pkg/app/server/render/data.go type Data (line 47) | type Data struct method Render (line 53) | func (r Data) Render(resp *protocol.Response) (err error) { method WriteContentType (line 60) | func (r Data) WriteContentType(resp *protocol.Response) { FILE: pkg/app/server/render/html.go type Delims (line 56) | type Delims struct type HTMLRender (line 64) | type HTMLRender interface type HTMLProduction (line 71) | type HTMLProduction struct method Instance (line 85) | func (r HTMLProduction) Instance(name string, data interface{}) Render { method Close (line 93) | func (r HTMLProduction) Close() error { type HTML (line 76) | type HTML struct method Render (line 98) | func (r HTML) Render(resp *protocol.Response) error { method WriteContentType (line 108) | func (r HTML) WriteContentType(resp *protocol.Response) { type HTMLDebug (line 112) | type HTMLDebug struct method Instance (line 125) | func (h *HTMLDebug) Instance(name string, data interface{}) Render { method Close (line 143) | func (h *HTMLDebug) Close() error { method reload (line 150) | func (h *HTMLDebug) reload() { method startChecker (line 157) | func (h *HTMLDebug) startChecker() { FILE: pkg/app/server/render/html_test.go function TestHTMLDebug_StartChecker_timer (line 31) | func TestHTMLDebug_StartChecker_timer(t *testing.T) { function TestHTMLDebug_StartChecker_fs_watcher (line 52) | func TestHTMLDebug_StartChecker_fs_watcher(t *testing.T) { function TestRenderHTML (line 79) | func TestRenderHTML(t *testing.T) { FILE: pkg/app/server/render/json.go type JSONMarshaler (line 53) | type JSONMarshaler function init (line 57) | func init() { function ResetJSONMarshal (line 61) | func ResetJSONMarshal(fn JSONMarshaler) { function ResetStdJSONMarshal (line 65) | func ResetStdJSONMarshal() { type JSONRender (line 70) | type JSONRender struct method Render (line 77) | func (r JSONRender) Render(resp *protocol.Response) error { method WriteContentType (line 89) | func (r JSONRender) WriteContentType(resp *protocol.Response) { type PureJSON (line 94) | type PureJSON struct method Render (line 99) | func (r PureJSON) Render(resp *protocol.Response) (err error) { method WriteContentType (line 113) | func (r PureJSON) WriteContentType(resp *protocol.Response) { type IndentedJSON (line 118) | type IndentedJSON struct method Render (line 123) | func (r IndentedJSON) Render(resp *protocol.Response) (err error) { method WriteContentType (line 139) | func (r IndentedJSON) WriteContentType(resp *protocol.Response) { FILE: pkg/app/server/render/json_test.go function Test_ResetStdJSONMarshal (line 49) | func Test_ResetStdJSONMarshal(t *testing.T) { function Test_DefaultJSONMarshal (line 64) | func Test_DefaultJSONMarshal(t *testing.T) { FILE: pkg/app/server/render/protobuf.go type ProtoBuf (line 50) | type ProtoBuf struct method Render (line 57) | func (r ProtoBuf) Render(resp *protocol.Response) error { method WriteContentType (line 69) | func (r ProtoBuf) WriteContentType(resp *protocol.Response) { FILE: pkg/app/server/render/render.go type Render (line 47) | type Render interface function writeContentType (line 61) | func writeContentType(resp *protocol.Response, value string) { FILE: pkg/app/server/render/render_test.go type xmlmap (line 55) | type xmlmap method MarshalXML (line 58) | func (h xmlmap) MarshalXML(e *xml.Encoder, start xml.StartElement) err... function TestRenderJSON (line 79) | func TestRenderJSON(t *testing.T) { function TestRenderJSONError (line 96) | func TestRenderJSONError(t *testing.T) { function TestRenderPureJSON (line 105) | func TestRenderPureJSON(t *testing.T) { function TestRenderPureJSONError (line 123) | func TestRenderPureJSONError(t *testing.T) { function TestRenderProtobuf (line 132) | func TestRenderProtobuf(t *testing.T) { function TestRenderProtobufError (line 146) | func TestRenderProtobufError(t *testing.T) { function TestRenderString (line 155) | func TestRenderString(t *testing.T) { function TestRenderStringLenZero (line 174) | func TestRenderStringLenZero(t *testing.T) { function TestRenderData (line 187) | func TestRenderData(t *testing.T) { function TestRenderXML (line 201) | func TestRenderXML(t *testing.T) { function TestRenderXMLError (line 217) | func TestRenderXMLError(t *testing.T) { function TestRenderIndentedJSON (line 226) | func TestRenderIndentedJSON(t *testing.T) { FILE: pkg/app/server/render/text.go type String (line 51) | type String struct method Render (line 59) | func (r String) Render(resp *protocol.Response) error { method WriteContentType (line 70) | func (r String) WriteContentType(resp *protocol.Response) { FILE: pkg/app/server/render/xml.go type XML (line 51) | type XML struct method Render (line 58) | func (r XML) Render(resp *protocol.Response) error { method WriteContentType (line 70) | func (r XML) WriteContentType(w *protocol.Response) { FILE: pkg/app/server/server_bench_test.go function BenchmarkServerHelloWorld (line 30) | func BenchmarkServerHelloWorld(b *testing.B) { FILE: pkg/common/adaptor/handler.go function HertzHandler (line 36) | func HertzHandler(h http.Handler) app.HandlerFunc { type httpResponseWriter (line 102) | type httpResponseWriter struct method Header (line 116) | func (p *httpResponseWriter) Header() http.Header { method Write (line 125) | func (p *httpResponseWriter) Write(b []byte) (n int, err error) { method WriteHeader (line 143) | func (p *httpResponseWriter) WriteHeader(statusCode int) { method Flush (line 187) | func (p *httpResponseWriter) Flush() { method Hijack (line 196) | func (p *httpResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, er... type noopHijackWriter (line 226) | type noopHijackWriter struct method Write (line 230) | func (noopHijackWriter) Write(b []byte) (int, error) { method Flush (line 233) | func (noopHijackWriter) Flush() error { return errConnHijacked } method Finalize (line 234) | func (noopHijackWriter) Finalize() error { return nil } type noopWriter (line 236) | type noopWriter struct method Write (line 240) | func (noopWriter) Write(b []byte) (int, error) { return len(b), nil } method Flush (line 241) | func (noopWriter) Flush() error { return nil } method Finalize (line 242) | func (noopWriter) Finalize() error { return nil } type hijackedConn (line 244) | type hijackedConn struct method Close (line 261) | func (c *hijackedConn) Close() error { function newHijackedConn (line 251) | func newHijackedConn(conn network.Conn) *hijackedConn { function hijackedConnFinalizer (line 257) | func hijackedConnFinalizer(c *hijackedConn) { FILE: pkg/common/adaptor/handler_test.go function runEngine (line 44) | func runEngine(onCreate func(*route.Engine)) (string, *route.Engine) { function TestHertzHandler_BodyStream (line 55) | func TestHertzHandler_BodyStream(t *testing.T) { function TestHertzHandler_Chunked (line 90) | func TestHertzHandler_Chunked(t *testing.T) { function TestHertzHandler_WriteHeader (line 119) | func TestHertzHandler_WriteHeader(t *testing.T) { function TestHertzHandler_Hijack (line 146) | func TestHertzHandler_Hijack(t *testing.T) { function TestHertzHandler_HijackGC (line 193) | func TestHertzHandler_HijackGC(t *testing.T) { function TestHertzHandler_WriteHeader_Hijack (line 220) | func TestHertzHandler_WriteHeader_Hijack(t *testing.T) { function TestHertzHandler_FSEmbed (line 260) | func TestHertzHandler_FSEmbed(t *testing.T) { function TestHertzHandler_Multipart (line 279) | func TestHertzHandler_Multipart(t *testing.T) { function createMultipartBody (line 316) | func createMultipartBody(kvs map[string]string) (*bytes.Buffer, string) { function TestNoopHijackWriter (line 326) | func TestNoopHijackWriter(t *testing.T) { function TestNoopWriter (line 343) | func TestNoopWriter(t *testing.T) { FILE: pkg/common/adaptor/request.go function GetCompatRequest (line 29) | func GetCompatRequest(req *protocol.Request) (*http.Request, error) { function CopyToHertzRequest (line 45) | func CopyToHertzRequest(req *http.Request, hreq *protocol.Request) error { FILE: pkg/common/adaptor/request_test.go function fullURL (line 38) | func fullURL(ln net.Listener, p string) string { function TestCompatResponse_WriteHeader (line 42) | func TestCompatResponse_WriteHeader(t *testing.T) { function makeACall (line 81) | func makeACall(t *testing.T, method, url string, header http.Header, bod... function handlerAndCheck (line 118) | func handlerAndCheck(t *testing.T, writer http.ResponseWriter, request *... function TestCopyToHertzRequest (line 156) | func TestCopyToHertzRequest(t *testing.T) { FILE: pkg/common/adaptor/response.go type compatResponse (line 26) | type compatResponse struct method Header (line 32) | func (c *compatResponse) Header() http.Header { method Write (line 40) | func (c *compatResponse) Write(b []byte) (int, error) { method WriteHeader (line 48) | func (c *compatResponse) WriteHeader(statusCode int) { function GetCompatResponseWriter (line 73) | func GetCompatResponseWriter(resp *protocol.Response) http.ResponseWriter { FILE: pkg/common/adaptor/utils.go function methodstr (line 32) | func methodstr(m []byte) string { type bytesRWCloser (line 64) | type bytesRWCloser struct method Close (line 75) | func (bytesRWCloser) Close() error { return nil } function newBytesRWCloser (line 69) | func newBytesRWCloser(b []byte) io.ReadCloser { function writer2writerExt (line 77) | func writer2writerExt(w network.Writer) network.ExtWriter { type extWriter (line 81) | type extWriter struct method Write (line 85) | func (w extWriter) Write(b []byte) (int, error) { method Finalize (line 93) | func (w extWriter) Finalize() error { function reader2closer (line 97) | func reader2closer(r io.Reader) io.ReadCloser { function parseHTTPVersion (line 105) | func parseHTTPVersion(s string) (major, minor int, _ error) { FILE: pkg/common/adaptor/utils_test.go function TestMethodStr (line 27) | func TestMethodStr(t *testing.T) { function TestBytesRWCloser (line 52) | func TestBytesRWCloser(t *testing.T) { function TestParseHTTPVersion (line 73) | func TestParseHTTPVersion(t *testing.T) { FILE: pkg/common/bytebufferpool/bytebuffer.go type ByteBuffer (line 53) | type ByteBuffer struct method Len (line 60) | func (b *ByteBuffer) Len() int { method Cap (line 64) | func (b *ByteBuffer) Cap() int { method ReadFrom (line 71) | func (b *ByteBuffer) ReadFrom(r io.Reader) (int64, error) { method WriteTo (line 103) | func (b *ByteBuffer) WriteTo(w io.Writer) (int64, error) { method Bytes (line 111) | func (b *ByteBuffer) Bytes() []byte { method Write (line 116) | func (b *ByteBuffer) Write(p []byte) (int, error) { method WriteByte (line 126) | func (b *ByteBuffer) WriteByte(c byte) error { method WriteString (line 132) | func (b *ByteBuffer) WriteString(s string) (int, error) { method Set (line 138) | func (b *ByteBuffer) Set(p []byte) { method SetString (line 143) | func (b *ByteBuffer) SetString(s string) { method String (line 148) | func (b *ByteBuffer) String() string { method Reset (line 153) | func (b *ByteBuffer) Reset() { FILE: pkg/common/bytebufferpool/bytebuffer_test.go function TestByteBufferReadFrom (line 54) | func TestByteBufferReadFrom(t *testing.T) { function TestByteBufferWriteTo (line 89) | func TestByteBufferWriteTo(t *testing.T) { function TestByteBufferGetPutSerial (line 114) | func TestByteBufferGetPutSerial(t *testing.T) { function TestByteBufferGetPutConcurrent (line 118) | func TestByteBufferGetPutConcurrent(t *testing.T) { function testByteBufferGetPut (line 137) | func testByteBufferGetPut(t *testing.T) { function testByteBufferGetString (line 150) | func testByteBufferGetString(t *testing.T) { function TestByteBufferGetStringSerial (line 162) | func TestByteBufferGetStringSerial(t *testing.T) { function TestByteBufferGetStringConcurrent (line 166) | func TestByteBufferGetStringConcurrent(t *testing.T) { FILE: pkg/common/bytebufferpool/pool.go constant minBitSize (line 51) | minBitSize = 6 constant steps (line 52) | steps = 20 constant minSize (line 54) | minSize = 1 << minBitSize constant maxSize (line 55) | maxSize = 1 << (minBitSize + steps - 1) constant calibrateCallsThreshold (line 57) | calibrateCallsThreshold = 42000 constant maxPercentile (line 58) | maxPercentile = 0.95 type Pool (line 66) | type Pool struct method Get (line 89) | func (p *Pool) Get() *ByteBuffer { method Put (line 108) | func (p *Pool) Put(b *ByteBuffer) { method calibrate (line 122) | func (p *Pool) calibrate() { function Get (line 83) | func Get() *ByteBuffer { return defaultPool.Get() } function Put (line 103) | func Put(b *ByteBuffer) { defaultPool.Put(b) } type callSize (line 161) | type callSize struct type callSizes (line 166) | type callSizes method Len (line 168) | func (ci callSizes) Len() int { method Less (line 172) | func (ci callSizes) Less(i, j int) bool { method Swap (line 176) | func (ci callSizes) Swap(i, j int) { function index (line 180) | func index(n int) int { FILE: pkg/common/bytebufferpool/pool_test.go function TestIndex (line 50) | func TestIndex(t *testing.T) { function testIndex (line 67) | func testIndex(t *testing.T, n, expectedIdx int) { function TestPoolCalibrate (line 74) | func TestPoolCalibrate(t *testing.T) { function TestPoolVariousSizesSerial (line 84) | func TestPoolVariousSizesSerial(t *testing.T) { function TestPoolVariousSizesConcurrent (line 88) | func TestPoolVariousSizesConcurrent(t *testing.T) { function testPoolVariousSizes (line 106) | func testPoolVariousSizes(t *testing.T) { function testGetPut (line 120) | func testGetPut(t *testing.T, n int) { function allocNBytes (line 129) | func allocNBytes(dst []byte, n int) []byte { FILE: pkg/common/compress/compress.go constant CompressDefaultCompression (line 57) | CompressDefaultCompression = 6 function newCompressWriterPoolMap (line 66) | func newCompressWriterPoolMap() []*sync.Pool { type compressCtx (line 78) | type compressCtx struct function AppendGunzipBytes (line 85) | func AppendGunzipBytes(dst, src []byte) ([]byte, error) { type byteSliceWriter (line 91) | type byteSliceWriter struct method Write (line 95) | func (w *byteSliceWriter) Write(p []byte) (int, error) { function WriteGunzip (line 102) | func WriteGunzip(w io.Writer, p []byte) (int, error) { type byteSliceReader (line 118) | type byteSliceReader struct method Read (line 122) | func (r *byteSliceReader) Read(p []byte) (int, error) { function AcquireGzipReader (line 131) | func AcquireGzipReader(r io.Reader) (*gzip.Reader, error) { function ReleaseGzipReader (line 143) | func ReleaseGzipReader(zr *gzip.Reader) { function AppendGzipBytes (line 149) | func AppendGzipBytes(dst, src []byte) []byte { function AppendGzipBytesLevel (line 163) | func AppendGzipBytesLevel(dst, src []byte, level int) []byte { function nonblockingWriteGzip (line 171) | func nonblockingWriteGzip(ctxv interface{}) { function releaseRealGzipWriter (line 183) | func releaseRealGzipWriter(zw *gzip.Writer, level int) { function acquireRealGzipWriter (line 190) | func acquireRealGzipWriter(w io.Writer, level int) *gzip.Writer { function normalizeCompressLevel (line 208) | func normalizeCompressLevel(level int) int { function WriteGzipLevel (line 227) | func WriteGzipLevel(w io.Writer, p []byte, level int) (int, error) { function AcquireStacklessGzipWriter (line 248) | func AcquireStacklessGzipWriter(w io.Writer, level int) stackless.Writer { function ReleaseStacklessGzipWriter (line 262) | func ReleaseStacklessGzipWriter(sw stackless.Writer, level int) { FILE: pkg/common/compress/compress_test.go function TestCompressNewCompressWriterPoolMap (line 49) | func TestCompressNewCompressWriterPoolMap(t *testing.T) { function TestCompressAppendGunzipBytes (line 56) | func TestCompressAppendGunzipBytes(t *testing.T) { function TestCompressAppendGzipBytesLevel (line 94) | func TestCompressAppendGzipBytesLevel(t *testing.T) { function TestCompressWriteGzipLevel (line 105) | func TestCompressWriteGzipLevel(t *testing.T) { type defaultByteWriter (line 122) | type defaultByteWriter struct method Write (line 126) | func (w *defaultByteWriter) Write(p []byte) (int, error) { FILE: pkg/common/config/client_option.go type ConnPoolState (line 28) | type ConnPoolState struct type HostClientState (line 41) | type HostClientState interface type HostClientStateFunc (line 45) | type HostClientStateFunc type ClientOption (line 48) | type ClientOption struct type ClientOptions (line 52) | type ClientOptions struct method Apply (line 151) | func (o *ClientOptions) Apply(opts []ClientOption) { function NewClientOptions (line 139) | func NewClientOptions(opts []ClientOption) *ClientOptions { FILE: pkg/common/config/client_option_test.go function TestDefaultClientOptions (line 28) | func TestDefaultClientOptions(t *testing.T) { function TestCustomClientOptions (line 38) | func TestCustomClientOptions(t *testing.T) { FILE: pkg/common/config/option.go type Option (line 30) | type Option struct constant defaultKeepAliveTimeout (line 35) | defaultKeepAliveTimeout = 1 * time.Minute constant defaultReadTimeout (line 36) | defaultReadTimeout = 3 * time.Minute constant defaultAddr (line 37) | defaultAddr = ":8888" constant defaultNetwork (line 38) | defaultNetwork = "tcp" constant defaultBasePath (line 39) | defaultBasePath = "/" constant defaultMaxRequestBodySize (line 40) | defaultMaxRequestBodySize = 4 << 20 constant defaultMaxHeaderBytes (line 41) | defaultMaxHeaderBytes = 1 << 20 constant defaultWaitExitTimeout (line 42) | defaultWaitExitTimeout = time.Second * 5 constant defaultReadBufferSize (line 43) | defaultReadBufferSize = 4 * 1024 type Options (line 46) | type Options struct method Apply (line 130) | func (o *Options) Apply(opts []Option) { function NewOptions (line 136) | func NewOptions(opts []Option) *Options { FILE: pkg/common/config/option_test.go function TestDefaultOptions (line 28) | func TestDefaultOptions(t *testing.T) { function TestApplyCustomOptions (line 65) | func TestApplyCustomOptions(t *testing.T) { FILE: pkg/common/config/request_option.go type RequestOptions (line 23) | type RequestOptions struct method Apply (line 112) | func (o *RequestOptions) Apply(opts []RequestOption) { method Tag (line 118) | func (o *RequestOptions) Tag(k string) string { method Tags (line 122) | func (o *RequestOptions) Tags() map[string]string { method IsSD (line 126) | func (o *RequestOptions) IsSD() bool { method DialTimeout (line 130) | func (o *RequestOptions) DialTimeout() time.Duration { method ReadTimeout (line 134) | func (o *RequestOptions) ReadTimeout() time.Duration { method WriteTimeout (line 138) | func (o *RequestOptions) WriteTimeout() time.Duration { method RequestTimeout (line 142) | func (o *RequestOptions) RequestTimeout() time.Duration { method StartRequest (line 149) | func (o *RequestOptions) StartRequest() { method StartTime (line 155) | func (o *RequestOptions) StartTime() time.Time { method CopyTo (line 159) | func (o *RequestOptions) CopyTo(dst *RequestOptions) { type RequestOption (line 37) | type RequestOption struct function NewRequestOptions (line 42) | func NewRequestOptions(opts []RequestOption) *RequestOptions { function WithTag (line 55) | func WithTag(k, v string) RequestOption { function WithSD (line 62) | func WithSD(b bool) RequestOption { function WithDialTimeout (line 76) | func WithDialTimeout(t time.Duration) RequestOption { function WithReadTimeout (line 86) | func WithReadTimeout(t time.Duration) RequestOption { function WithWriteTimeout (line 96) | func WithWriteTimeout(t time.Duration) RequestOption { function WithRequestTimeout (line 106) | func WithRequestTimeout(t time.Duration) RequestOption { function SetPreDefinedOpts (line 177) | func SetPreDefinedOpts(opts ...RequestOption) { FILE: pkg/common/config/request_option_test.go function TestRequestOptions (line 27) | func TestRequestOptions(t *testing.T) { function TestRequestOptionsWithDefaultOpts (line 47) | func TestRequestOptionsWithDefaultOpts(t *testing.T) { function TestRequestOptions_CopyTo (line 68) | func TestRequestOptions_CopyTo(t *testing.T) { FILE: pkg/common/errors/errors.go type ErrorType (line 80) | type ErrorType type Error (line 82) | type Error struct method SetType (line 106) | func (msg *Error) SetType(flags ErrorType) *Error { method Error (line 112) | func (msg *Error) Error() string { method Unwrap (line 130) | func (msg *Error) Unwrap() error { method SetMeta (line 135) | func (msg *Error) SetMeta(data interface{}) *Error { method IsType (line 141) | func (msg *Error) IsType(flags ErrorType) bool { method JSON (line 146) | func (msg *Error) JSON() interface{} { constant ErrorTypeBind (line 90) | ErrorTypeBind ErrorType = 1 << iota constant ErrorTypeRender (line 92) | ErrorTypeRender constant ErrorTypePrivate (line 94) | ErrorTypePrivate constant ErrorTypePublic (line 96) | ErrorTypePublic constant ErrorTypeAny (line 98) | ErrorTypeAny type ErrorChain (line 101) | type ErrorChain method String (line 116) | func (a ErrorChain) String() string { method Errors (line 174) | func (a ErrorChain) Errors() []string { method ByType (line 187) | func (a ErrorChain) ByType(typ ErrorType) ErrorChain { method Last (line 205) | func (a ErrorChain) Last() *Error { method JSON (line 212) | func (a ErrorChain) JSON() interface{} { function New (line 227) | func New(err error, t ErrorType, meta interface{}) *Error { function NewPublic (line 236) | func NewPublic(err string) *Error { function NewPrivate (line 240) | func NewPrivate(err string) *Error { function Newf (line 244) | func Newf(t ErrorType, meta interface{}, format string, v ...interface{}... function NewPublicf (line 248) | func NewPublicf(format string, v ...interface{}) *Error { function NewPrivatef (line 252) | func NewPrivatef(format string, v ...interface{}) *Error { FILE: pkg/common/errors/errors_test.go function TestError (line 50) | func TestError(t *testing.T) { function TestErrorSlice (line 98) | func TestErrorSlice(t *testing.T) { function TestErrorFormat (line 134) | func TestErrorFormat(t *testing.T) { FILE: pkg/common/hlog/consts.go constant systemLogPrefix (line 20) | systemLogPrefix = "HERTZ: " constant EngineErrorFormat (line 22) | EngineErrorFormat = "Error=%s, remoteAddr=%s" FILE: pkg/common/hlog/default.go function Fatal (line 28) | func Fatal(v ...interface{}) { function Error (line 33) | func Error(v ...interface{}) { function Warn (line 38) | func Warn(v ...interface{}) { function Notice (line 43) | func Notice(v ...interface{}) { function Info (line 48) | func Info(v ...interface{}) { function Debug (line 53) | func Debug(v ...interface{}) { function Trace (line 58) | func Trace(v ...interface{}) { function Fatalf (line 63) | func Fatalf(format string, v ...interface{}) { function Errorf (line 68) | func Errorf(format string, v ...interface{}) { function Warnf (line 73) | func Warnf(format string, v ...interface{}) { function Noticef (line 78) | func Noticef(format string, v ...interface{}) { function Infof (line 83) | func Infof(format string, v ...interface{}) { function Debugf (line 88) | func Debugf(format string, v ...interface{}) { function Tracef (line 93) | func Tracef(format string, v ...interface{}) { function CtxFatalf (line 98) | func CtxFatalf(ctx context.Context, format string, v ...interface{}) { function CtxErrorf (line 103) | func CtxErrorf(ctx context.Context, format string, v ...interface{}) { function CtxWarnf (line 108) | func CtxWarnf(ctx context.Context, format string, v ...interface{}) { function CtxNoticef (line 113) | func CtxNoticef(ctx context.Context, format string, v ...interface{}) { function CtxInfof (line 118) | func CtxInfof(ctx context.Context, format string, v ...interface{}) { function CtxDebugf (line 123) | func CtxDebugf(ctx context.Context, format string, v ...interface{}) { function CtxTracef (line 128) | func CtxTracef(ctx context.Context, format string, v ...interface{}) { type defaultLogger (line 132) | type defaultLogger struct method SetOutput (line 138) | func (ll *defaultLogger) SetOutput(w io.Writer) { method SetLevel (line 142) | func (ll *defaultLogger) SetLevel(lv Level) { method logf (line 146) | func (ll *defaultLogger) logf(lv Level, format *string, v ...interface... method Fatal (line 167) | func (ll *defaultLogger) Fatal(v ...interface{}) { method Error (line 171) | func (ll *defaultLogger) Error(v ...interface{}) { method Warn (line 175) | func (ll *defaultLogger) Warn(v ...interface{}) { method Notice (line 179) | func (ll *defaultLogger) Notice(v ...interface{}) { method Info (line 183) | func (ll *defaultLogger) Info(v ...interface{}) { method Debug (line 187) | func (ll *defaultLogger) Debug(v ...interface{}) { method Trace (line 191) | func (ll *defaultLogger) Trace(v ...interface{}) { method Fatalf (line 195) | func (ll *defaultLogger) Fatalf(format string, v ...interface{}) { method Errorf (line 199) | func (ll *defaultLogger) Errorf(format string, v ...interface{}) { method Warnf (line 203) | func (ll *defaultLogger) Warnf(format string, v ...interface{}) { method Noticef (line 207) | func (ll *defaultLogger) Noticef(format string, v ...interface{}) { method Infof (line 211) | func (ll *defaultLogger) Infof(format string, v ...interface{}) { method Debugf (line 215) | func (ll *defaultLogger) Debugf(format string, v ...interface{}) { method Tracef (line 219) | func (ll *defaultLogger) Tracef(format string, v ...interface{}) { method CtxFatalf (line 223) | func (ll *defaultLogger) CtxFatalf(ctx context.Context, format string,... method CtxErrorf (line 227) | func (ll *defaultLogger) CtxErrorf(ctx context.Context, format string,... method CtxWarnf (line 231) | func (ll *defaultLogger) CtxWarnf(ctx context.Context, format string, ... method CtxNoticef (line 235) | func (ll *defaultLogger) CtxNoticef(ctx context.Context, format string... method CtxInfof (line 239) | func (ll *defaultLogger) CtxInfof(ctx context.Context, format string, ... method CtxDebugf (line 243) | func (ll *defaultLogger) CtxDebugf(ctx context.Context, format string,... method CtxTracef (line 247) | func (ll *defaultLogger) CtxTracef(ctx context.Context, format string,... FILE: pkg/common/hlog/default_test.go function initTestLogger (line 28) | func initTestLogger() { type byteSliceWriter (line 35) | type byteSliceWriter struct method Write (line 39) | func (w *byteSliceWriter) Write(p []byte) (int, error) { function TestDefaultLogger (line 44) | func TestDefaultLogger(t *testing.T) { function TestDefaultFormatLogger (line 65) | func TestDefaultFormatLogger(t *testing.T) { function TestCtxLogger (line 87) | func TestCtxLogger(t *testing.T) { function TestFormatLoggerWithEscapedCharacters (line 110) | func TestFormatLoggerWithEscapedCharacters(t *testing.T) { function TestSetLevel (line 120) | func TestSetLevel(t *testing.T) { FILE: pkg/common/hlog/hlog.go function SetOutput (line 43) | func SetOutput(w io.Writer) { function SetLevel (line 51) | func SetLevel(lv Level) { function DefaultLogger (line 57) | func DefaultLogger() FullLogger { function SystemLogger (line 63) | func SystemLogger() FullLogger { function SetSystemLogger (line 70) | func SetSystemLogger(v FullLogger) { function SetLogger (line 77) | func SetLogger(v FullLogger) { FILE: pkg/common/hlog/hlog_test.go function TestDefaultAndSysLogger (line 27) | func TestDefaultAndSysLogger(t *testing.T) { function TestSetLogger (line 37) | func TestSetLogger(t *testing.T) { FILE: pkg/common/hlog/log.go type FormatLogger (line 26) | type FormatLogger interface type Logger (line 37) | type Logger interface type CtxLogger (line 49) | type CtxLogger interface type Control (line 60) | type Control interface type FullLogger (line 66) | type FullLogger interface type Level (line 76) | type Level method toString (line 99) | func (lv Level) toString() string { constant LevelTrace (line 80) | LevelTrace Level = iota constant LevelDebug (line 81) | LevelDebug constant LevelInfo (line 82) | LevelInfo constant LevelNotice (line 83) | LevelNotice constant LevelWarn (line 84) | LevelWarn constant LevelError (line 85) | LevelError constant LevelFatal (line 86) | LevelFatal FILE: pkg/common/hlog/system.go function SetSilentMode (line 31) | func SetSilentMode(s bool) { type systemLogger (line 39) | type systemLogger struct method SetOutput (line 44) | func (ll *systemLogger) SetOutput(w io.Writer) { method SetLevel (line 48) | func (ll *systemLogger) SetLevel(lv Level) { method Fatal (line 52) | func (ll *systemLogger) Fatal(v ...interface{}) { method Error (line 57) | func (ll *systemLogger) Error(v ...interface{}) { method Warn (line 62) | func (ll *systemLogger) Warn(v ...interface{}) { method Notice (line 67) | func (ll *systemLogger) Notice(v ...interface{}) { method Info (line 72) | func (ll *systemLogger) Info(v ...interface{}) { method Debug (line 77) | func (ll *systemLogger) Debug(v ...interface{}) { method Trace (line 82) | func (ll *systemLogger) Trace(v ...interface{}) { method Fatalf (line 87) | func (ll *systemLogger) Fatalf(format string, v ...interface{}) { method Errorf (line 91) | func (ll *systemLogger) Errorf(format string, v ...interface{}) { method Warnf (line 98) | func (ll *systemLogger) Warnf(format string, v ...interface{}) { method Noticef (line 102) | func (ll *systemLogger) Noticef(format string, v ...interface{}) { method Infof (line 106) | func (ll *systemLogger) Infof(format string, v ...interface{}) { method Debugf (line 110) | func (ll *systemLogger) Debugf(format string, v ...interface{}) { method Tracef (line 114) | func (ll *systemLogger) Tracef(format string, v ...interface{}) { method CtxFatalf (line 118) | func (ll *systemLogger) CtxFatalf(ctx context.Context, format string, ... method CtxErrorf (line 122) | func (ll *systemLogger) CtxErrorf(ctx context.Context, format string, ... method CtxWarnf (line 126) | func (ll *systemLogger) CtxWarnf(ctx context.Context, format string, v... method CtxNoticef (line 130) | func (ll *systemLogger) CtxNoticef(ctx context.Context, format string,... method CtxInfof (line 134) | func (ll *systemLogger) CtxInfof(ctx context.Context, format string, v... method CtxDebugf (line 138) | func (ll *systemLogger) CtxDebugf(ctx context.Context, format string, ... method CtxTracef (line 142) | func (ll *systemLogger) CtxTracef(ctx context.Context, format string, ... method addPrefix (line 146) | func (ll *systemLogger) addPrefix(format string) string { FILE: pkg/common/hlog/system_test.go function initTestSysLogger (line 28) | func initTestSysLogger() { function TestSysLogger (line 38) | func TestSysLogger(t *testing.T) { function TestSysFormatLogger (line 58) | func TestSysFormatLogger(t *testing.T) { function TestSysCtxLogger (line 79) | func TestSysCtxLogger(t *testing.T) { FILE: pkg/common/json/sonic.go constant Name (line 23) | Name = "sonic" FILE: pkg/common/json/std.go constant Name (line 23) | Name = "encoding/json" FILE: pkg/common/stackless/func.go function NewFunc (line 62) | func NewFunc(f func(ctx interface{})) func(ctx interface{}) bool { function funcWorker (line 93) | func funcWorker(funcWorkCh <-chan *funcWork, f func(ctx interface{})) { function getFuncWork (line 100) | func getFuncWork() *funcWork { function putFuncWork (line 110) | func putFuncWork(fw *funcWork) { type funcWork (line 117) | type funcWork struct FILE: pkg/common/stackless/func_test.go function TestNewFuncSimple (line 51) | func TestNewFuncSimple(t *testing.T) { function TestNewFuncMulti (line 68) | func TestNewFuncMulti(t *testing.T) { FILE: pkg/common/stackless/func_timing_test.go function BenchmarkFuncOverhead (line 49) | func BenchmarkFuncOverhead(b *testing.B) { function BenchmarkFuncPure (line 67) | func BenchmarkFuncPure(b *testing.B) { FILE: pkg/common/stackless/writer.go type Writer (line 55) | type Writer interface type NewWriterFunc (line 64) | type NewWriterFunc function NewWriter (line 73) | func NewWriter(dstW io.Writer, newWriter NewWriterFunc) Writer { type writer (line 81) | type writer struct method Write (line 102) | func (w *writer) Write(p []byte) (int, error) { method Flush (line 109) | func (w *writer) Flush() error { method Close (line 113) | func (w *writer) Close() error { method Reset (line 117) | func (w *writer) Reset(dstW io.Writer) { method do (line 123) | func (w *writer) do(op op) error { type op (line 93) | type op constant opWrite (line 96) | opWrite op = iota constant opFlush (line 97) | opFlush constant opClose (line 98) | opClose constant opReset (line 99) | opReset function writerFunc (line 144) | func writerFunc(ctx interface{}) { type xWriter (line 161) | type xWriter struct method Write (line 165) | func (w *xWriter) Write(p []byte) (int, error) { method Reset (line 172) | func (w *xWriter) Reset() { FILE: pkg/common/stackless/writer_test.go function TestCompressFlateSerial (line 55) | func TestCompressFlateSerial(t *testing.T) { function TestCompressFlateConcurrent (line 61) | func TestCompressFlateConcurrent(t *testing.T) { function testCompressFlate (line 67) | func testCompressFlate() error { function TestCompressGzipSerial (line 79) | func TestCompressGzipSerial(t *testing.T) { function TestCompressGzipConcurrent (line 85) | func TestCompressGzipConcurrent(t *testing.T) { function testCompressGzip (line 91) | func testCompressGzip() error { function testWriter (line 103) | func testWriter(newWriter NewWriterFunc, newReader func(io.Reader) io.Re... function testWriterReuse (line 118) | func testWriterReuse(w Writer, r io.Reader, newReader func(io.Reader) io... function testConcurrent (line 145) | func testConcurrent(testFunc func() error, concurrency int) error { FILE: pkg/common/test/assert/assert.go type testingT (line 23) | type testingT interface function Assert (line 30) | func Assert(t testingT, cond bool, val ...interface{}) { function Assertf (line 43) | func Assertf(t testingT, cond bool, format string, val ...interface{}) { function DeepEqual (line 51) | func DeepEqual(t testingT, expected, actual interface{}) { function isNil (line 58) | func isNil(rv reflect.Value) bool { function Nil (line 69) | func Nil(t testingT, data interface{}) { function NotNil (line 77) | func NotNil(t testingT, data interface{}) { function NotEqual (line 85) | func NotEqual(t testingT, expected, actual interface{}) { function True (line 98) | func True(t testingT, obj interface{}) { function False (line 103) | func False(t testingT, obj interface{}) { function Panic (line 109) | func Panic(t testingT, fn func()) { function NotPanic (line 120) | func NotPanic(t testingT, fn func()) { FILE: pkg/common/test/assert/assert_test.go type mockTestingT (line 25) | type mockTestingT struct method Helper (line 29) | func (mockTestingT) Helper() {} method Reset (line 31) | func (m *mockTestingT) Reset() { method Fatal (line 35) | func (m *mockTestingT) Fatal(args ...any) { method Fatalf (line 39) | func (m *mockTestingT) Fatalf(fm string, args ...any) { method String (line 43) | func (m *mockTestingT) String() string { method Expect (line 47) | func (m *mockTestingT) Expect(t *testing.T, s string) { function TestAssert (line 56) | func TestAssert(t *testing.T) { function TestNil (line 73) | func TestNil(t *testing.T) { function TestDeepEqual (line 103) | func TestDeepEqual(t *testing.T) { function TestNotEqual (line 114) | func TestNotEqual(t *testing.T) { function TestTrueFalse (line 124) | func TestTrueFalse(t *testing.T) { function TestPanic (line 134) | func TestPanic(t *testing.T) { FILE: pkg/common/test/mock/body_data.go function CreateFixedBody (line 21) | func CreateFixedBody(bodySize int) []byte { function CreateChunkedBody (line 29) | func CreateChunkedBody(body []byte, trailer map[string]string, hasTraile... FILE: pkg/common/test/mock/body_data_test.go function TestGenerateCreateFixedBody (line 25) | func TestGenerateCreateFixedBody(t *testing.T) { function TestGenerateCreateChunkedBody (line 39) | func TestGenerateCreateChunkedBody(t *testing.T) { FILE: pkg/common/test/mock/network.go type Conn (line 37) | type Conn struct method SetWriteTimeout (line 51) | func (m *Conn) SetWriteTimeout(t time.Duration) error { method ReadBinary (line 77) | func (m *Conn) ReadBinary(n int) (p []byte, err error) { method Read (line 81) | func (m *Conn) Read(b []byte) (n int, err error) { method Write (line 85) | func (m *Conn) Write(b []byte) (n int, err error) { method Release (line 89) | func (m *Conn) Release() error { method Peek (line 93) | func (m *Conn) Peek(i int) ([]byte, error) { method Skip (line 106) | func (m *Conn) Skip(n int) error { method ReadByte (line 110) | func (m *Conn) ReadByte() (byte, error) { method Len (line 114) | func (m *Conn) Len() int { method Malloc (line 118) | func (m *Conn) Malloc(n int) (buf []byte, err error) { method WriteBinary (line 123) | func (m *Conn) WriteBinary(b []byte) (n int, err error) { method Flush (line 129) | func (m *Conn) Flush() error { method WriterRecorder (line 133) | func (m *Conn) WriterRecorder() Recorder { method GetReadTimeout (line 137) | func (m *Conn) GetReadTimeout() time.Duration { method GetWriteTimeout (line 141) | func (m *Conn) GetWriteTimeout() time.Duration { method Close (line 279) | func (m *Conn) Close() error { method LocalAddr (line 283) | func (m *Conn) LocalAddr() net.Addr { method RemoteAddr (line 287) | func (m *Conn) RemoteAddr() net.Addr { method SetDeadline (line 291) | func (m *Conn) SetDeadline(t time.Time) error { method SetReadDeadline (line 297) | func (m *Conn) SetReadDeadline(t time.Time) error { method SetWriteDeadline (line 302) | func (m *Conn) SetWriteDeadline(t time.Time) error { method Reader (line 306) | func (m *Conn) Reader() network.Reader { method Writer (line 310) | func (m *Conn) Writer() network.Writer { method IsActive (line 314) | func (m *Conn) IsActive() bool { method SetIdleTimeout (line 318) | func (m *Conn) SetIdleTimeout(timeout time.Duration) error { method SetReadTimeout (line 322) | func (m *Conn) SetReadTimeout(t time.Duration) error { method SetOnRequest (line 327) | func (m *Conn) SetOnRequest(on netpoll.OnRequest) error { method AddCloseCallback (line 331) | func (m *Conn) AddCloseCallback(callback netpoll.CloseCallback) error { type Recorder (line 46) | type Recorder interface type SlowReadConn (line 56) | type SlowReadConn struct method SetWriteTimeout (line 60) | func (m *SlowReadConn) SetWriteTimeout(t time.Duration) error { method SetReadTimeout (line 64) | func (m *SlowReadConn) SetReadTimeout(t time.Duration) error { method Peek (line 154) | func (m *SlowReadConn) Peek(i int) ([]byte, error) { function SlowReadDialer (line 69) | func SlowReadDialer(addr string) (network.Conn, error) { function SlowWriteDialer (line 73) | func SlowWriteDialer(addr string) (network.Conn, error) { type recorder (line 145) | type recorder struct method WroteLen (line 150) | func (r *recorder) WroteLen() int { function NewConn (line 167) | func NewConn(source string) *Conn { type BrokenConn (line 177) | type BrokenConn struct method Peek (line 181) | func (o *BrokenConn) Peek(i int) ([]byte, error) { method Read (line 185) | func (o *BrokenConn) Read(b []byte) (n int, err error) { method Flush (line 189) | func (o *BrokenConn) Flush() error { function NewBrokenConn (line 193) | func NewBrokenConn(source string) *BrokenConn { type OneTimeConn (line 197) | type OneTimeConn struct method Peek (line 204) | func (o *OneTimeConn) Peek(n int) ([]byte, error) { method Skip (line 211) | func (o *OneTimeConn) Skip(n int) error { method Flush (line 224) | func (o *OneTimeConn) Flush() error { function NewOneTimeConn (line 232) | func NewOneTimeConn(source string) *OneTimeConn { function NewSlowReadConn (line 236) | func NewSlowReadConn(source string) *SlowReadConn { type ErrorReadConn (line 240) | type ErrorReadConn struct method Peek (line 252) | func (er *ErrorReadConn) Peek(n int) ([]byte, error) { function NewErrorReadConn (line 245) | func NewErrorReadConn(err error) *ErrorReadConn { type SlowWriteConn (line 256) | type SlowWriteConn struct method SetWriteTimeout (line 261) | func (m *SlowWriteConn) SetWriteTimeout(t time.Duration) error { method Flush (line 270) | func (m *SlowWriteConn) Flush() error { function NewSlowWriteConn (line 266) | func NewSlowWriteConn(source string) *SlowWriteConn { type StreamConn (line 335) | type StreamConn struct method Peek (line 346) | func (m *StreamConn) Peek(n int) ([]byte, error) { method Skip (line 357) | func (m *StreamConn) Skip(n int) error { method Release (line 365) | func (m *StreamConn) Release() error { method Len (line 370) | func (m *StreamConn) Len() int { method ReadByte (line 374) | func (m *StreamConn) ReadByte() (byte, error) { method ReadBinary (line 378) | func (m *StreamConn) ReadBinary(n int) (p []byte, err error) { function NewStreamConn (line 340) | func NewStreamConn() *StreamConn { function DialerFun (line 382) | func DialerFun(addr string) (network.Conn, error) { type MockWriter (line 386) | type MockWriter struct method Malloc (line 398) | func (m *MockWriter) Malloc(n int) (buf []byte, err error) { method WriteBinary (line 405) | func (m *MockWriter) WriteBinary(b []byte) (n int, err error) { method Flush (line 412) | func (m *MockWriter) Flush() error { function NewMockWriter (line 394) | func NewMockWriter(w network.Writer) *MockWriter { type TLSConn (line 419) | type TLSConn struct method Handshake (line 427) | func (c *TLSConn) Handshake() error { method ConnectionState (line 431) | func (c *TLSConn) ConnectionState() tls.ConnectionState { function NewTLSConn (line 435) | func NewTLSConn(conn network.Conn) *TLSConn { FILE: pkg/common/test/mock/network_test.go function TestConn (line 30) | func TestConn(t *testing.T) { function TestSlowConn (line 133) | func TestSlowConn(t *testing.T) { function TestStreamConn (line 160) | func TestStreamConn(t *testing.T) { function TestBrokenConn_Flush (line 190) | func TestBrokenConn_Flush(t *testing.T) { function TestBrokenConn_Peek (line 198) | func TestBrokenConn_Peek(t *testing.T) { function TestOneTimeConn_Flush (line 205) | func TestOneTimeConn_Flush(t *testing.T) { function TestOneTimeConn_Skip (line 217) | func TestOneTimeConn_Skip(t *testing.T) { FILE: pkg/common/test/mock/reader.go type ZeroCopyReader (line 30) | type ZeroCopyReader struct method Peek (line 34) | func (m ZeroCopyReader) Peek(n int) ([]byte, error) { method Skip (line 46) | func (m ZeroCopyReader) Skip(n int) (err error) { method Release (line 51) | func (m ZeroCopyReader) Release() (err error) { method Len (line 55) | func (m ZeroCopyReader) Len() (length int) { method ReadBinary (line 59) | func (m ZeroCopyReader) ReadBinary(n int) (p []byte, err error) { function NewZeroCopyReader (line 63) | func NewZeroCopyReader(r string) ZeroCopyReader { function NewLimitReader (line 68) | func NewLimitReader(r *bytes.Buffer) io.LimitedReader { type EOFReader (line 75) | type EOFReader struct method Peek (line 77) | func (e *EOFReader) Peek(n int) ([]byte, error) { method Skip (line 81) | func (e *EOFReader) Skip(n int) error { method Release (line 85) | func (e *EOFReader) Release() error { method Len (line 89) | func (e *EOFReader) Len() int { method ReadByte (line 93) | func (e *EOFReader) ReadByte() (byte, error) { method ReadBinary (line 97) | func (e *EOFReader) ReadBinary(n int) (p []byte, err error) { method Read (line 101) | func (e *EOFReader) Read(p []byte) (n int, err error) { FILE: pkg/common/test/mock/reader_test.go function TestZeroCopyReader (line 28) | func TestZeroCopyReader(t *testing.T) { function TestEOFReader (line 67) | func TestEOFReader(t *testing.T) { function readBytes (line 84) | func readBytes(buf *bufio.Reader) string { FILE: pkg/common/test/mock/writer.go type ExtWriter (line 21) | type ExtWriter struct method Write (line 27) | func (m *ExtWriter) Write(p []byte) (n int, err error) { method Flush (line 32) | func (m *ExtWriter) Flush() error { method Finalize (line 37) | func (m *ExtWriter) Finalize() error { method SetBody (line 44) | func (m *ExtWriter) SetBody(body []byte) { FILE: pkg/common/test/mock/writer_test.go function TestExtWriter (line 26) | func TestExtWriter(t *testing.T) { FILE: pkg/common/testdata/proto/test.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type FOO (line 24) | type FOO method Enum (line 40) | func (x FOO) Enum() *FOO { method String (line 46) | func (x FOO) String() string { method Descriptor (line 50) | func (FOO) Descriptor() protoreflect.EnumDescriptor { method Type (line 54) | func (FOO) Type() protoreflect.EnumType { method Number (line 58) | func (x FOO) Number() protoreflect.EnumNumber { method UnmarshalJSON (line 63) | func (x *FOO) UnmarshalJSON(b []byte) error { method EnumDescriptor (line 73) | func (FOO) EnumDescriptor() ([]byte, []int) { constant FOO_X (line 27) | FOO_X FOO = 17 type Test (line 77) | type Test struct method Reset (line 93) | func (x *Test) Reset() { method String (line 102) | func (x *Test) String() string { method ProtoMessage (line 106) | func (*Test) ProtoMessage() {} method ProtoReflect (line 108) | func (x *Test) ProtoReflect() protoreflect.Message { method Descriptor (line 121) | func (*Test) Descriptor() ([]byte, []int) { method GetLabel (line 125) | func (x *Test) GetLabel() string { method GetType (line 132) | func (x *Test) GetType() int32 { method GetReps (line 139) | func (x *Test) GetReps() []int64 { method GetOptionalgroup (line 146) | func (x *Test) GetOptionalgroup() *Test_OptionalGroup { constant Default_Test_Type (line 90) | Default_Test_Type = int32(77) type TestStruct (line 153) | type TestStruct struct method Reset (line 161) | func (x *TestStruct) Reset() { method String (line 170) | func (x *TestStruct) String() string { method ProtoMessage (line 174) | func (*TestStruct) ProtoMessage() {} method ProtoReflect (line 176) | func (x *TestStruct) ProtoReflect() protoreflect.Message { method Descriptor (line 189) | func (*TestStruct) Descriptor() ([]byte, []int) { method GetBody (line 193) | func (x *TestStruct) GetBody() []byte { type Test_OptionalGroup (line 200) | type Test_OptionalGroup struct method Reset (line 208) | func (x *Test_OptionalGroup) Reset() { method String (line 217) | func (x *Test_OptionalGroup) String() string { method ProtoMessage (line 221) | func (*Test_OptionalGroup) ProtoMessage() {} method ProtoReflect (line 223) | func (x *Test_OptionalGroup) ProtoReflect() protoreflect.Message { method Descriptor (line 236) | func (*Test_OptionalGroup) Descriptor() ([]byte, []int) { method GetRequiredField (line 240) | func (x *Test_OptionalGroup) GetRequiredField() string { function file_test_proto_rawDescGZIP (line 276) | func file_test_proto_rawDescGZIP() []byte { function init (line 303) | func init() { file_test_proto_init() } function file_test_proto_init (line 304) | func file_test_proto_init() { FILE: pkg/common/timer/timer.go function initTimer (line 49) | func initTimer(t *time.Timer, timeout time.Duration) *time.Timer { function stopTimer (line 59) | func stopTimer(t *time.Timer) { function AcquireTimer (line 75) | func AcquireTimer(timeout time.Duration) *time.Timer { function ReleaseTimer (line 90) | func ReleaseTimer(t *time.Timer) { FILE: pkg/common/timer/timer_test.go function TestTimerInitTimer (line 50) | func TestTimerInitTimer(t *testing.T) { function wrapInitTimer (line 68) | func wrapInitTimer(t *time.Timer, timeout time.Duration) (ret int) { function TestTimerStopTimer (line 81) | func TestTimerStopTimer(t *testing.T) { function TestTimerAcquireTimer (line 89) | func TestTimerAcquireTimer(t *testing.T) { function TestTimerReleaseTimer (line 97) | func TestTimerReleaseTimer(t *testing.T) { FILE: pkg/common/tracer/stats/event.go type EventIndex (line 27) | type EventIndex type Level (line 30) | type Level constant LevelDisabled (line 34) | LevelDisabled Level = iota constant LevelBase (line 35) | LevelBase constant LevelDetailed (line 36) | LevelDetailed type Event (line 40) | type Event interface type event (line 45) | type event struct method Index (line 51) | func (e event) Index() EventIndex { method Level (line 56) | func (e event) Level() Level { constant _ (line 61) | _ EventIndex = iota constant serverHandleStart (line 62) | serverHandleStart constant serverHandleFinish (line 63) | serverHandleFinish constant httpStart (line 64) | httpStart constant httpFinish (line 65) | httpFinish constant readHeaderStart (line 66) | readHeaderStart constant readHeaderFinish (line 67) | readHeaderFinish constant readBodyStart (line 68) | readBodyStart constant readBodyFinish (line 69) | readBodyFinish constant writeStart (line 70) | writeStart constant writeFinish (line 71) | writeFinish constant predefinedEventNum (line 72) | predefinedEventNum function FinishInitialization (line 104) | func FinishInitialization() { function DefineNewEvent (line 109) | func DefineNewEvent(name string, level Level) (Event, error) { function MaxEventNum (line 125) | func MaxEventNum() int { function newEvent (line 131) | func newEvent(idx EventIndex, level Level) Event { FILE: pkg/common/tracer/stats/event_test.go function TestDefineNewEvent (line 25) | func TestDefineNewEvent(t *testing.T) { FILE: pkg/common/tracer/stats/status.go type Status (line 20) | type Status constant StatusInfo (line 24) | StatusInfo Status = 1 constant StatusWarn (line 25) | StatusWarn Status = 2 constant StatusError (line 26) | StatusError Status = 3 FILE: pkg/common/tracer/traceinfo/httpstats.go type event (line 34) | type event struct method Event (line 42) | func (e *event) Event() stats.Event { method Status (line 47) | func (e *event) Status() stats.Status { method Info (line 52) | func (e *event) Info() string { method Time (line 57) | func (e *event) Time() time.Time { method IsNil (line 62) | func (e *event) IsNil() bool { method zero (line 70) | func (e *event) zero() { method Recycle (line 78) | func (e *event) Recycle() { function newEvent (line 66) | func newEvent() interface{} { type httpStats (line 83) | type httpStats struct method Record (line 101) | func (h *httpStats) Record(e stats.Event, status stats.Status, info st... method SendSize (line 118) | func (h *httpStats) SendSize() int { method RecvSize (line 123) | func (h *httpStats) RecvSize() int { method Error (line 128) | func (h *httpStats) Error() error { method Panicked (line 133) | func (h *httpStats) Panicked() (bool, interface{}) { method GetEvent (line 138) | func (h *httpStats) GetEvent(e stats.Event) Event { method Level (line 150) | func (h *httpStats) Level() stats.Level { method SetSendSize (line 155) | func (h *httpStats) SetSendSize(size int) { method SetRecvSize (line 160) | func (h *httpStats) SetRecvSize(size int) { method SetError (line 165) | func (h *httpStats) SetError(err error) { method SetPanicked (line 170) | func (h *httpStats) SetPanicked(x interface{}) { method SetLevel (line 175) | func (h *httpStats) SetLevel(level stats.Level) { method Reset (line 180) | func (h *httpStats) Reset() { method ImmutableView (line 194) | func (h *httpStats) ImmutableView() HTTPStats { function init (line 96) | func init() { function NewHTTPStats (line 199) | func NewHTTPStats() HTTPStats { FILE: pkg/common/tracer/traceinfo/interface.go type HTTPStats (line 26) | type HTTPStats interface type Event (line 43) | type Event interface type TraceInfo (line 52) | type TraceInfo interface FILE: pkg/common/tracer/traceinfo/traceinfo.go type traceInfo (line 19) | type traceInfo struct method Stats (line 24) | func (r *traceInfo) Stats() HTTPStats { return r.stats } method Reset (line 27) | func (r *traceInfo) Reset() { function NewTraceInfo (line 32) | func NewTraceInfo() TraceInfo { FILE: pkg/common/tracer/tracer.go type Tracer (line 26) | type Tracer interface type Controller (line 31) | type Controller interface FILE: pkg/common/ut/context.go function CreateUtRequestContext (line 30) | func CreateUtRequestContext(method, url string, body *Body, headers ...H... function createUtRequestContext (line 35) | func createUtRequestContext(engine *route.Engine, method, url string, bo... FILE: pkg/common/ut/context_test.go function TestCreateUtRequestContext (line 26) | func TestCreateUtRequestContext(t *testing.T) { FILE: pkg/common/ut/request.go type Header (line 28) | type Header struct type Body (line 34) | type Body struct function PerformRequest (line 49) | func PerformRequest(engine *route.Engine, method, url string, body *Body... FILE: pkg/common/ut/request_test.go function newTestEngine (line 32) | func newTestEngine() *route.Engine { function TestPerformRequest (line 37) | func TestPerformRequest(t *testing.T) { function createChunkedBody (line 105) | func createChunkedBody(body []byte) []byte { FILE: pkg/common/ut/response.go type ResponseRecorder (line 27) | type ResponseRecorder struct method Header (line 63) | func (rw *ResponseRecorder) Header() *protocol.ResponseHeader { method Write (line 74) | func (rw *ResponseRecorder) Write(buf []byte) (int, error) { method WriteString (line 86) | func (rw *ResponseRecorder) WriteString(str string) (int, error) { method WriteHeader (line 98) | func (rw *ResponseRecorder) WriteHeader(code int) { method Flush (line 112) | func (rw *ResponseRecorder) Flush() { method Result (line 134) | func (rw *ResponseRecorder) Result() *protocol.Response { function NewRecorder (line 52) | func NewRecorder() *ResponseRecorder { FILE: pkg/common/ut/response_test.go function TestResult (line 26) | func TestResult(t *testing.T) { function TestFlush (line 32) | func TestFlush(t *testing.T) { function TestWriterHeader (line 39) | func TestWriterHeader(t *testing.T) { function TestWriteString (line 47) | func TestWriteString(t *testing.T) { function TestWrite (line 54) | func TestWrite(t *testing.T) { FILE: pkg/common/utils/chunk.go function ParseChunkSize (line 32) | func ParseChunkSize(r network.Reader) (int, error) { function SkipCRLF (line 69) | func SkipCRLF(reader network.Reader) error { FILE: pkg/common/utils/chunk_test.go function TestChunkParseChunkSizeGetCorrect (line 26) | func TestChunkParseChunkSizeGetCorrect(t *testing.T) { function TestChunkParseChunkSizeGetError (line 38) | func TestChunkParseChunkSizeGetError(t *testing.T) { function TestChunkParseChunkSizeCorrectWhiteSpace (line 65) | func TestChunkParseChunkSizeCorrectWhiteSpace(t *testing.T) { function TestChunkParseChunkSizeNonCRLF (line 78) | func TestChunkParseChunkSizeNonCRLF(t *testing.T) { function TestChunkReadTrueCRLF (line 87) | func TestChunkReadTrueCRLF(t *testing.T) { function TestChunkReadFalseCRLF (line 94) | func TestChunkReadFalseCRLF(t *testing.T) { FILE: pkg/common/utils/env.go function GetBoolFromEnv (line 28) | func GetBoolFromEnv(key string) (bool, error) { FILE: pkg/common/utils/ioutil.go function CopyBuffer (line 25) | func CopyBuffer(dst network.Writer, src io.Reader, buf []byte) (written ... function copyBuffer (line 34) | func copyBuffer(dst network.Writer, src io.Reader, buf []byte) (written ... function CopyZeroAlloc (line 87) | func CopyZeroAlloc(w network.Writer, r io.Reader) (int64, error) { FILE: pkg/common/utils/ioutil_test.go type writeReadTest (line 30) | type writeReadTest interface type readerTest (line 37) | type readerTest interface type testWriter (line 44) | type testWriter struct method Write (line 48) | func (t testWriter) Write(p []byte) (n int, err error) { method Malloc (line 52) | func (t testWriter) Malloc(n int) (buf []byte, err error) { method WriteBinary (line 56) | func (t testWriter) WriteBinary(b []byte) (n int, err error) { method Flush (line 60) | func (t testWriter) Flush() error { type testReader (line 64) | type testReader struct method ReadFrom (line 68) | func (t testReader) ReadFrom(r io.Reader) (n int64, err error) { method Malloc (line 72) | func (t testReader) Malloc(n int) (buf []byte, err error) { method WriteBinary (line 76) | func (t testReader) WriteBinary(b []byte) (n int, err error) { method Flush (line 80) | func (t testReader) Flush() error { function newTestWriter (line 84) | func newTestWriter(w io.Writer) writeReadTest { function newTestReaderForm (line 90) | func newTestReaderForm(r io.ReaderFrom) readerTest { function TestIoutilCopyBuffer (line 96) | func TestIoutilCopyBuffer(t *testing.T) { function TestIoutilCopyBufferWithIoWriter (line 128) | func TestIoutilCopyBufferWithIoWriter(t *testing.T) { function TestIoutilCopyBufferWithIoReaderFrom (line 143) | func TestIoutilCopyBufferWithIoReaderFrom(t *testing.T) { function TestIoutilCopyBufferWithPanic (line 160) | func TestIoutilCopyBufferWithPanic(t *testing.T) { function TestIoutilCopyBufferWithNilBuffer (line 175) | func TestIoutilCopyBufferWithNilBuffer(t *testing.T) { function TestIoutilCopyBufferWithNilBufferAndIoLimitedReader (line 189) | func TestIoutilCopyBufferWithNilBufferAndIoLimitedReader(t *testing.T) { function TestIoutilCopyZeroAlloc (line 216) | func TestIoutilCopyZeroAlloc(t *testing.T) { function TestIoutilCopyBufferWithEmptyBuffer (line 237) | func TestIoutilCopyBufferWithEmptyBuffer(t *testing.T) { function TestIoutilCopyBufferWithLimitedReader (line 258) | func TestIoutilCopyBufferWithLimitedReader(t *testing.T) { FILE: pkg/common/utils/netaddr.go type NetAddr (line 24) | type NetAddr struct method Network (line 35) | func (na *NetAddr) Network() string { method String (line 40) | func (na *NetAddr) String() string { function NewNetAddr (line 30) | func NewNetAddr(network, address string) net.Addr { FILE: pkg/common/utils/netaddr_test.go function TestNetAddr (line 25) | func TestNetAddr(t *testing.T) { FILE: pkg/common/utils/network.go constant UNKNOWN_IP_ADDR (line 22) | UNKNOWN_IP_ADDR = "-" function LocalIP (line 28) | func LocalIP() string { function getLocalIp (line 33) | func getLocalIp() string { function init (line 56) | func init() { function TLSRecordHeaderLooksLikeHTTP (line 62) | func TLSRecordHeaderLooksLikeHTTP(hdr [5]byte) bool { FILE: pkg/common/utils/network_test.go function TestTLSRecordHeaderLooksLikeHTTP (line 25) | func TestTLSRecordHeaderLooksLikeHTTP(t *testing.T) { function TestLocalIP (line 45) | func TestLocalIP(t *testing.T) { FILE: pkg/common/utils/path.go function CleanPath (line 58) | func CleanPath(p string) string { function bufApp (line 165) | func bufApp(buf *[]byte, s string, w int, c byte) { function AddMissingPort (line 192) | func AddMissingPort(addr string, isTLS bool) string { FILE: pkg/common/utils/path_test.go function TestPathCleanPath (line 49) | func TestPathCleanPath(t *testing.T) { function TestPathAddMissingPort (line 93) | func TestPathAddMissingPort(t *testing.T) { FILE: pkg/common/utils/utils.go function Assert (line 56) | func Assert(guard bool, text string) { type H (line 63) | type H function IsTrueString (line 65) | func IsTrueString(str string) bool { function NameOfFunction (line 69) | func NameOfFunction(f interface{}) string { function CaseInsensitiveCompare (line 73) | func CaseInsensitiveCompare(a, b []byte) bool { function NormalizeHeaderKey (line 85) | func NormalizeHeaderKey(b []byte, disableNormalizing bool) { function NextLine (line 109) | func NextLine(b []byte) ([]byte, []byte, error) { function FilterContentType (line 121) | func FilterContentType(content string) string { FILE: pkg/common/utils/utils_test.go function TestUtilsAssert (line 51) | func TestUtilsAssert(t *testing.T) { function TestUtilsIsTrueString (line 82) | func TestUtilsIsTrueString(t *testing.T) { function testName (line 93) | func testName(a int) { function TestUtilsNameOfFunction (line 97) | func TestUtilsNameOfFunction(t *testing.T) { function TestUtilsCaseInsensitiveCompare (line 107) | func TestUtilsCaseInsensitiveCompare(t *testing.T) { function TestUtilsNormalizeHeaderKey (line 124) | func TestUtilsNormalizeHeaderKey(t *testing.T) { function TestUtilsNextLine (line 143) | func TestUtilsNextLine(t *testing.T) { function TestFilterContentType (line 167) | func TestFilterContentType(t *testing.T) { function TestNormalizeHeaderKeyEdgeCases (line 173) | func TestNormalizeHeaderKeyEdgeCases(t *testing.T) { function TestFilterContentTypeEdgeCases (line 181) | func TestFilterContentTypeEdgeCases(t *testing.T) { FILE: pkg/network/connection.go type Reader (line 29) | type Reader interface type Writer (line 52) | type Writer interface type ReadWriter (line 64) | type ReadWriter interface type Conn (line 69) | type Conn interface type ConnTLSer (line 79) | type ConnTLSer interface type HandleSpecificError (line 84) | type HandleSpecificError interface type ErrorNormalization (line 88) | type ErrorNormalization interface type DialFunc (line 92) | type DialFunc type StreamConn (line 97) | type StreamConn interface type Streamer (line 116) | type Streamer interface type Stream (line 149) | type Stream interface type ReceiveStream (line 155) | type ReceiveStream interface type SendStream (line 172) | type SendStream interface type ApplicationError (line 205) | type ApplicationError interface FILE: pkg/network/dialer.go type Dialer (line 25) | type Dialer interface FILE: pkg/network/dialer/dialer.go function SetDialer (line 33) | func SetDialer(dialer network.Dialer) { function DefaultDialer (line 37) | func DefaultDialer() network.Dialer { function DialConnection (line 41) | func DialConnection(network, address string, timeout time.Duration, tlsC... function DialTimeout (line 45) | func DialTimeout(network, address string, timeout time.Duration, tlsConf... function AddTLS (line 51) | func AddTLS(conn network.Conn, tlsConfig *tls.Config) (network.Conn, err... FILE: pkg/network/dialer/dialer_test.go function TestDialer (line 30) | func TestDialer(t *testing.T) { type mockDialer (line 45) | type mockDialer struct method DialConnection (line 47) | func (m *mockDialer) DialConnection(network, address string, timeout t... method DialTimeout (line 51) | func (m *mockDialer) DialTimeout(network, address string, timeout time... method AddTLS (line 55) | func (m *mockDialer) AddTLS(conn network.Conn, tlsConfig *tls.Config) ... FILE: pkg/network/dialer/netpoll.go function init (line 28) | func init() { FILE: pkg/network/netpoll/connection.go type Conn (line 30) | type Conn struct method ToHertzError (line 34) | func (c *Conn) ToHertzError(err error) error { method Peek (line 46) | func (c *Conn) Peek(n int) (b []byte, err error) { method Read (line 52) | func (c *Conn) Read(p []byte) (int, error) { method Skip (line 58) | func (c *Conn) Skip(n int) error { method Release (line 62) | func (c *Conn) Release() error { method Len (line 66) | func (c *Conn) Len() int { method ReadByte (line 70) | func (c *Conn) ReadByte() (b byte, err error) { method ReadBinary (line 76) | func (c *Conn) ReadBinary(n int) (b []byte, err error) { method Malloc (line 82) | func (c *Conn) Malloc(n int) (buf []byte, err error) { method WriteBinary (line 86) | func (c *Conn) WriteBinary(b []byte) (n int, err error) { method Flush (line 90) | func (c *Conn) Flush() error { method HandleSpecificError (line 94) | func (c *Conn) HandleSpecificError(err error, rip string) (needIgnore ... function normalizeErr (line 106) | func normalizeErr(err error) error { function newConn (line 114) | func newConn(c netpoll.Connection) network.Conn { FILE: pkg/network/netpoll/connection_test.go function TestReadBytes (line 30) | func TestReadBytes(t *testing.T) { function TestPeekRelease (line 54) | func TestPeekRelease(t *testing.T) { function TestWriteLogin (line 66) | func TestWriteLogin(t *testing.T) { function TestHandleSpecificError (line 76) | func TestHandleSpecificError(t *testing.T) { type mockConn (line 82) | type mockConn struct method SetWriteTimeout (line 89) | func (m *mockConn) SetWriteTimeout(timeout time.Duration) error { method Peek (line 96) | func (m *mockConn) Peek(n int) (b []byte, err error) { method Skip (line 104) | func (m *mockConn) Skip(n int) error { method Release (line 113) | func (m *mockConn) Release() error { method Len (line 120) | func (m *mockConn) Len() int { method ReadByte (line 125) | func (m *mockConn) ReadByte() (byte, error) { method ReadBinary (line 134) | func (m *mockConn) ReadBinary(n int) (b []byte, err error) { method Malloc (line 143) | func (m *mockConn) Malloc(n int) (buf []byte, err error) { method WriteBinary (line 149) | func (m *mockConn) WriteBinary(b []byte) (n int, err error) { method Flush (line 154) | func (m *mockConn) Flush() error { method HandleSpecificError (line 158) | func (m *mockConn) HandleSpecificError(err error, rip string) (needIgn... method Read (line 162) | func (m *mockConn) Read(b []byte) (n int, err error) { method Write (line 166) | func (m *mockConn) Write(b []byte) (n int, err error) { method Close (line 170) | func (m *mockConn) Close() error { method LocalAddr (line 174) | func (m *mockConn) LocalAddr() net.Addr { method RemoteAddr (line 178) | func (m *mockConn) RemoteAddr() net.Addr { method SetDeadline (line 182) | func (m *mockConn) SetDeadline(deadline time.Time) error { method SetReadDeadline (line 186) | func (m *mockConn) SetReadDeadline(deadline time.Time) error { method SetWriteDeadline (line 190) | func (m *mockConn) SetWriteDeadline(deadline time.Time) error { method Reader (line 194) | func (m *mockConn) Reader() netpoll.Reader { method Writer (line 198) | func (m *mockConn) Writer() netpoll.Writer { method IsActive (line 202) | func (m *mockConn) IsActive() bool { method SetReadTimeout (line 206) | func (m *mockConn) SetReadTimeout(timeout time.Duration) error { method SetIdleTimeout (line 210) | func (m *mockConn) SetIdleTimeout(timeout time.Duration) error { method SetOnRequest (line 214) | func (m *mockConn) SetOnRequest(on netpoll.OnRequest) error { method AddCloseCallback (line 218) | func (m *mockConn) AddCloseCallback(callback netpoll.CloseCallback) er... FILE: pkg/network/netpoll/dial.go type dialer (line 30) | type dialer struct method DialConnection (line 34) | func (d dialer) DialConnection(n, address string, timeout time.Duratio... method DialTimeout (line 47) | func (d dialer) DialTimeout(network, address string, timeout time.Dura... method AddTLS (line 55) | func (d dialer) AddTLS(conn network.Conn, tlsConfig *tls.Config) (netw... function NewDialer (line 59) | func NewDialer() network.Dialer { FILE: pkg/network/netpoll/dial_test.go function TestDial (line 32) | func TestDial(t *testing.T) { FILE: pkg/network/netpoll/transport.go function init (line 33) | func init() { type ctxCancelKeyStruct (line 38) | type ctxCancelKeyStruct struct function cancelContext (line 42) | func cancelContext(ctx context.Context) context.Context { type transporter (line 48) | type transporter struct method Listener (line 80) | func (t *transporter) Listener() net.Listener { method ListenAndServe (line 88) | func (t *transporter) ListenAndServe(onReq network.OnData) (err error) { method Close (line 162) | func (t *transporter) Close() error { method Shutdown (line 170) | func (t *transporter) Shutdown(ctx context.Context) error { function NewTransporter (line 65) | func NewTransporter(options *config.Options) network.Transporter { FILE: pkg/network/netpoll/transport_test.go function TestTransport (line 35) | func TestTransport(t *testing.T) { FILE: pkg/network/standard/connection.go type Conn (line 36) | type Conn struct method ToHertzError (line 45) | func (c *Conn) ToHertzError(err error) error { method SetWriteTimeout (line 56) | func (c *Conn) SetWriteTimeout(t time.Duration) error { method SetReadTimeout (line 63) | func (c *Conn) SetReadTimeout(t time.Duration) error { method Peek (line 76) | func (c *Conn) Peek(n int) ([]byte, error) { method Skip (line 87) | func (c *Conn) Skip(n int) error { method Release (line 95) | func (c *Conn) Release() error { method Len (line 100) | func (c *Conn) Len() int { method ReadByte (line 105) | func (c *Conn) ReadByte() (b byte, err error) { method ReadBinary (line 115) | func (c *Conn) ReadBinary(n int) ([]byte, error) { method Read (line 125) | func (c *Conn) Read(b []byte) (int, error) { method Write (line 131) | func (c *Conn) Write(b []byte) (n int, err error) { method ReadFrom (line 141) | func (c *Conn) ReadFrom(r io.Reader) (n int64, err error) { method Close (line 172) | func (c *Conn) Close() error { method LocalAddr (line 182) | func (c *Conn) LocalAddr() net.Addr { method RemoteAddr (line 187) | func (c *Conn) RemoteAddr() net.Addr { method SetDeadline (line 192) | func (c *Conn) SetDeadline(t time.Time) error { method SetReadDeadline (line 197) | func (c *Conn) SetReadDeadline(t time.Time) error { method SetWriteDeadline (line 202) | func (c *Conn) SetWriteDeadline(t time.Time) error { method Malloc (line 207) | func (c *Conn) Malloc(n int) ([]byte, error) { method WriteBinary (line 213) | func (c *Conn) WriteBinary(b []byte) (int, error) { method Flush (line 218) | func (c *Conn) Flush() error { method HandleSpecificError (line 222) | func (c *Conn) HandleSpecificError(err error, rip string) (needIgnore ... type TLSConn (line 70) | type TLSConn struct method Handshake (line 230) | func (c *TLSConn) Handshake() error { method ConnectionState (line 234) | func (c *TLSConn) ConnectionState() tls.ConnectionState { function newConn (line 238) | func newConn(c net.Conn, size int) network.Conn { function newTLSConn (line 246) | func newTLSConn(c net.Conn, size int) network.Conn { FILE: pkg/network/standard/connection_test.go function mkConn (line 36) | func mkConn(data []byte) (*bufConn, *Conn) { type bufConn (line 41) | type bufConn struct method Read (line 47) | func (c *bufConn) Read(b []byte) (int, error) { return c.r.Read(b) } method Write (line 48) | func (c *bufConn) Write(b []byte) (int, error) { return c.w.Write(b) } type mockConn (line 50) | type mockConn struct method Handshake (line 56) | func (m *mockConn) Handshake() error { return erro... method ConnectionState (line 57) | func (m *mockConn) ConnectionState() tls.ConnectionState { return tls.... method Read (line 58) | func (m mockConn) Read(b []byte) (int, error) { method Write (line 68) | func (m *mockConn) Write(b []byte) (int, error) { return m.buffer.... method Close (line 69) | func (m *mockConn) Close() error { return errors.Ne... method LocalAddr (line 70) | func (m *mockConn) LocalAddr() net.Addr { return m.localAd... method RemoteAddr (line 71) | func (m *mockConn) RemoteAddr() net.Addr { return m.remoteA... method SetDeadline (line 72) | func (m *mockConn) SetDeadline(t time.Time) error { return m.SetWrit... method SetReadDeadline (line 73) | func (m *mockConn) SetReadDeadline(time.Time) error { return errors.Ne... method SetWriteDeadline (line 74) | func (m *mockConn) SetWriteDeadline(time.Time) error { type errReader (line 78) | type errReader struct method Read (line 84) | func (r *errReader) Read(b []byte) (int, error) { type readerFromConn (line 92) | type readerFromConn struct method ReadFrom (line 96) | func (c *readerFromConn) ReadFrom(r io.Reader) (int64, error) { function TestRead (line 102) | func TestRead(t *testing.T) { function TestPeekSkipRelease (line 117) | func TestPeekSkipRelease(t *testing.T) { function TestReadByteAndReadBinary (line 139) | func TestReadByteAndReadBinary(t *testing.T) { function TestWriteAndFlush (line 151) | func TestWriteAndFlush(t *testing.T) { function TestReadFrom (line 162) | func TestReadFrom(t *testing.T) { function TestPeekPartialEOF (line 192) | func TestPeekPartialEOF(t *testing.T) { function TestConnAddrs (line 206) | func TestConnAddrs(t *testing.T) { function TestSetDeadlines (line 215) | func TestSetDeadlines(t *testing.T) { function TestSetTimeouts (line 223) | func TestSetTimeouts(t *testing.T) { function TestToHertzError (line 232) | func TestToHertzError(t *testing.T) { function TestHandleSpecificError (line 242) | func TestHandleSpecificError(t *testing.T) { function TestTLSConn (line 248) | func TestTLSConn(t *testing.T) { type mockAddr (line 255) | type mockAddr struct method Network (line 260) | func (m *mockAddr) Network() string { return m.network } method String (line 261) | func (m *mockAddr) String() string { return m.address } type timeoutErr (line 263) | type timeoutErr struct method Error (line 265) | func (e *timeoutErr) Error() string { return "timeout" } method Timeout (line 266) | func (e *timeoutErr) Timeout() bool { return true } method Temporary (line 267) | func (e *timeoutErr) Temporary() bool { return true } FILE: pkg/network/standard/dial.go type dialer (line 27) | type dialer struct method DialConnection (line 29) | func (d *dialer) DialConnection(n, address string, timeout time.Durati... method DialTimeout (line 40) | func (d *dialer) DialTimeout(network, address string, timeout time.Dur... method AddTLS (line 45) | func (d *dialer) AddTLS(conn network.Conn, tlsConfig *tls.Config) (net... function NewDialer (line 55) | func NewDialer() network.Dialer { FILE: pkg/network/standard/dial_test.go function TestDial (line 37) | func TestDial(t *testing.T) { function TestDialTLS (line 64) | func TestDialTLS(t *testing.T) { function mockTLSServe (line 108) | func mockTLSServe(nw, addr string, handle func(conn net.Conn), listened ... function generateTestCertificate (line 139) | func generateTestCertificate(host string) ([]byte, []byte, error) { FILE: pkg/network/standard/transport.go type transport (line 36) | type transport struct method Listener (line 59) | func (t *transport) Listener() net.Listener { method serve (line 65) | func (t *transport) serve() (err error) { method updateActive (line 154) | func (t *transport) updateActive(delta int32) int32 { method ListenAndServe (line 158) | func (t *transport) ListenAndServe(onData network.OnData) (err error) { method Close (line 163) | func (t *transport) Close() error { method Shutdown (line 176) | func (t *transport) Shutdown(ctx context.Context) error { function NewTransporter (line 215) | func NewTransporter(options *config.Options) network.Transporter { FILE: pkg/network/standard/transport_test.go function assertWriteRead (line 32) | func assertWriteRead(t *testing.T, c io.ReadWriter, w, r string) { function TestTransporter (line 48) | func TestTransporter(t *testing.T) { function TestAcceptError (line 113) | func TestAcceptError(t *testing.T) { FILE: pkg/network/standard/unix_test.go function TestConnCloseWithStater (line 31) | func TestConnCloseWithStater(t *testing.T) { function TestConnstateConnectionCloseDetection (line 63) | func TestConnstateConnectionCloseDetection(t *testing.T) { function TestSenseClientDisconnectionContextCancel (line 123) | func TestSenseClientDisconnectionContextCancel(t *testing.T) { function TestSenseClientDisconnectionDisabled (line 173) | func TestSenseClientDisconnectionDisabled(t *testing.T) { type mockConnStater (line 221) | type mockConnStater struct method Close (line 226) | func (m *mockConnStater) Close() error { method State (line 231) | func (m *mockConnStater) State() connstate.ConnState { FILE: pkg/network/transport.go type Transporter (line 23) | type Transporter interface type OnData (line 35) | type OnData FILE: pkg/network/utils.go function UnlinkUdsFile (line 21) | func UnlinkUdsFile(network, addr string) error { FILE: pkg/network/utils_test.go function TestUnlinkUdsFile (line 25) | func TestUnlinkUdsFile(t *testing.T) { function pathExists (line 53) | func pathExists(path string) (bool, error) { FILE: pkg/network/version.go constant VersionTLS (line 21) | VersionTLS uint32 = 0x1 constant VersionDraft29 (line 22) | VersionDraft29 uint32 = 0xff00001d constant Version1 (line 23) | Version1 uint32 = 0x1 constant Version2 (line 24) | Version2 uint32 = 0x709a50c4 FILE: pkg/network/writer.go constant size4K (line 26) | size4K = 1024 * 4 type node (line 28) | type node struct function init (line 35) | func init() { type networkWriter (line 41) | type networkWriter struct method release (line 46) | func (w *networkWriter) release() { method Malloc (line 58) | func (w *networkWriter) Malloc(length int) (buf []byte, err error) { method WriteBinary (line 76) | func (w *networkWriter) WriteBinary(b []byte) (length int, err error) { method Flush (line 90) | func (w *networkWriter) Flush() (err error) { function NewWriter (line 101) | func NewWriter(w io.Writer) Writer { type ExtWriter (line 107) | type ExtWriter interface FILE: pkg/network/writer_test.go constant size1K (line 26) | size1K = 1024 function TestConvertNetworkWriter (line 29) | func TestConvertNetworkWriter(t *testing.T) { type mockIOWriter (line 89) | type mockIOWriter struct method Write (line 93) | func (m *mockIOWriter) Write(p []byte) (n int, err error) { FILE: pkg/protocol/args.go constant argsNoValue (line 53) | argsNoValue = true constant ArgsHasValue (line 54) | ArgsHasValue = false type argsScanner (line 57) | type argsScanner struct method next (line 94) | func (s *argsScanner) next(kv *argsKV) bool { type Args (line 61) | type Args struct method Set (line 69) | func (a *Args) Set(key, value string) { method Reset (line 74) | func (a *Args) Reset() { method CopyTo (line 79) | func (a *Args) CopyTo(dst *Args) { method Del (line 85) | func (a *Args) Del(key string) { method DelBytes (line 90) | func (a *Args) DelBytes(key []byte) { method Has (line 271) | func (a *Args) Has(key string) bool { method String (line 286) | func (a *Args) String() string { method QueryString (line 346) | func (a *Args) QueryString() []byte { method ParseBytes (line 352) | func (a *Args) ParseBytes(b []byte) { method Peek (line 375) | func (a *Args) Peek(key string) []byte { method PeekExists (line 379) | func (a *Args) PeekExists(key string) (string, bool) { method PeekAll (line 384) | func (a *Args) PeekAll(key string) [][]byte { method Len (line 402) | func (a *Args) Len() int { method AppendBytes (line 407) | func (a *Args) AppendBytes(dst []byte) []byte { method VisitAll (line 428) | func (a *Args) VisitAll(f func(key, value []byte)) { method WriteTo (line 435) | func (a *Args) WriteTo(w io.Writer) (int64, error) { method Add (line 443) | func (a *Args) Add(key, value string) { function decodeArgAppend (line 134) | func decodeArgAppend(dst, src []byte) []byte { function allocArg (line 164) | func allocArg(h []argsKV) ([]argsKV, *argsKV) { function releaseArg (line 180) | func releaseArg(h []argsKV) []argsKV { function updateArgBytes (line 184) | func updateArgBytes(h []argsKV, key, value []byte) []argsKV { function setArgBytes (line 197) | func setArgBytes(h []argsKV, key, value []byte, noValue bool) []argsKV { function setArg (line 214) | func setArg(h []argsKV, key, value string, noValue bool) []argsKV { function peekArgBytes (line 231) | func peekArgBytes(h []argsKV, k []byte) []byte { function peekAllArgBytesToDst (line 241) | func peekAllArgBytesToDst(dst [][]byte, h []argsKV, k []byte) [][]byte { function delAllArgsBytes (line 251) | func delAllArgsBytes(args []argsKV, key []byte) []argsKV { function delAllArgs (line 255) | func delAllArgs(args []argsKV, key string) []argsKV { function hasArg (line 275) | func hasArg(h []argsKV, key string) bool { function decodeArgAppendNoPlus (line 295) | func decodeArgAppendNoPlus(dst, src []byte) []byte { function peekArgStr (line 323) | func peekArgStr(h []argsKV, k string) []byte { function peekArgStrExists (line 333) | func peekArgStrExists(h []argsKV, k string) (string, bool) { function visitArgs (line 394) | func visitArgs(args []argsKV, f func(k, v []byte)) { FILE: pkg/protocol/args_test.go function TestArgsDeleteAll (line 50) | func TestArgsDeleteAll(t *testing.T) { function TestArgsBytesOperation (line 64) | func TestArgsBytesOperation(t *testing.T) { function TestArgsPeekExists (line 74) | func TestArgsPeekExists(t *testing.T) { function TestSetArg (line 93) | func TestSetArg(t *testing.T) { function TestArgsParseBytes (line 102) | func TestArgsParseBytes(t *testing.T) { function TestArgsVisitAll (line 122) | func TestArgsVisitAll(t *testing.T) { function TestArgsCopyTo (line 133) | func TestArgsCopyTo(t *testing.T) { function TestArgsPeek (line 146) | func TestArgsPeek(t *testing.T) { function TestArgsPeekMulti (line 164) | func TestArgsPeekMulti(t *testing.T) { FILE: pkg/protocol/client/client.go constant defaultMaxRedirectsCount (line 57) | defaultMaxRedirectsCount = 16 type HostClient (line 67) | type HostClient interface type Doer (line 75) | type Doer interface function DefaultRetryIf (line 81) | func DefaultRetryIf(req *protocol.Request, resp *protocol.Response, err ... function isIdempotent (line 94) | func isIdempotent(req *protocol.Request, resp *protocol.Response, err er... type DynamicConfig (line 104) | type DynamicConfig struct type RetryIfFunc (line 112) | type RetryIfFunc type clientURLResponse (line 114) | type clientURLResponse struct function GetURL (line 120) | func GetURL(ctx context.Context, dst []byte, url string, c Doer, request... function GetURLTimeout (line 130) | func GetURLTimeout(ctx context.Context, dst []byte, url string, timeout ... function GetURLDeadline (line 135) | func GetURLDeadline(ctx context.Context, dst []byte, url string, deadlin... function PostURL (line 184) | func PostURL(ctx context.Context, dst []byte, url string, postArgs *prot... function doRequestFollowRedirectsBuffer (line 202) | func doRequestFollowRedirectsBuffer(ctx context.Context, req *protocol.R... function DoRequestFollowRedirects (line 219) | func DoRequestFollowRedirects(ctx context.Context, req *protocol.Request... function StatusCodeIsRedirect (line 254) | func StatusCodeIsRedirect(statusCode int) bool { function getRedirectURL (line 262) | func getRedirectURL(baseURL string, location []byte) string { function DoTimeout (line 271) | func DoTimeout(ctx context.Context, req *protocol.Request, resp *protoco... function DoDeadline (line 280) | func DoDeadline(ctx context.Context, req *protocol.Request, resp *protoc... FILE: pkg/protocol/client/client_test.go type MockDoer (line 31) | type MockDoer struct method Do (line 35) | func (m *MockDoer) Do(ctx context.Context, req *protocol.Request, resp... function TestDoRequestFollowRedirects (line 66) | func TestDoRequestFollowRedirects(t *testing.T) { FILE: pkg/protocol/consts/default.go constant DefaultMaxInMemoryFileSize (line 51) | DefaultMaxInMemoryFileSize = 16 * 1024 * 1024 constant DefaultDialTimeout (line 57) | DefaultDialTimeout = time.Second constant DefaultMaxConnsPerHost (line 63) | DefaultMaxConnsPerHost = 512 constant DefaultMaxIdleConnDuration (line 67) | DefaultMaxIdleConnDuration = 10 * time.Second constant DefaultMaxIdempotentCallAttempts (line 70) | DefaultMaxIdempotentCallAttempts = 1 constant DefaultMaxRetryTimes (line 73) | DefaultMaxRetryTimes = 1 FILE: pkg/protocol/consts/fs.go constant MaxSmallFileSize (line 48) | MaxSmallFileSize = 2 * 4096 constant FSHandlerCacheDuration (line 52) | FSHandlerCacheDuration = 10 * time.Second constant FSCompressedFileSuffix (line 57) | FSCompressedFileSuffix = ".hertz.gz" constant FsMinCompressRatio (line 58) | FsMinCompressRatio = 0.8 constant FsMaxCompressibleFileSize (line 59) | FsMaxCompressibleFileSize = 8 * 1024 * 1024 FILE: pkg/protocol/consts/headers.go constant HeaderDate (line 20) | HeaderDate = "Date" constant HeaderIfModifiedSince (line 22) | HeaderIfModifiedSince = "If-Modified-Since" constant HeaderLastModified (line 23) | HeaderLastModified = "Last-Modified" constant HeaderLocation (line 26) | HeaderLocation = "Location" constant HeaderTE (line 29) | HeaderTE = "TE" constant HeaderTrailer (line 30) | HeaderTrailer = "Trailer" constant HeaderTrailerLower (line 31) | HeaderTrailerLower = "trailer" constant HeaderTransferEncoding (line 32) | HeaderTransferEncoding = "Transfer-Encoding" constant HeaderCookie (line 35) | HeaderCookie = "Cookie" constant HeaderExpect (line 36) | HeaderExpect = "Expect" constant HeaderMaxForwards (line 37) | HeaderMaxForwards = "Max-Forwards" constant HeaderSetCookie (line 38) | HeaderSetCookie = "Set-Cookie" constant HeaderSetCookieLower (line 39) | HeaderSetCookieLower = "set-cookie" constant HeaderConnection (line 42) | HeaderConnection = "Connection" constant HeaderKeepAlive (line 43) | HeaderKeepAlive = "Keep-Alive" constant HeaderProxyConnection (line 44) | HeaderProxyConnection = "Proxy-Connection" constant HeaderAuthorization (line 47) | HeaderAuthorization = "Authorization" constant HeaderProxyAuthenticate (line 48) | HeaderProxyAuthenticate = "Proxy-Authenticate" constant HeaderProxyAuthorization (line 49) | HeaderProxyAuthorization = "Proxy-Authorization" constant HeaderWWWAuthenticate (line 50) | HeaderWWWAuthenticate = "WWW-Authenticate" constant HeaderAcceptRanges (line 53) | HeaderAcceptRanges = "Accept-Ranges" constant HeaderContentRange (line 54) | HeaderContentRange = "Content-Range" constant HeaderIfRange (line 55) | HeaderIfRange = "If-Range" constant HeaderRange (line 56) | HeaderRange = "Range" constant HeaderAllow (line 59) | HeaderAllow = "Allow" constant HeaderServer (line 60) | HeaderServer = "Server" constant HeaderServerLower (line 61) | HeaderServerLower = "server" constant HeaderFrom (line 64) | HeaderFrom = "From" constant HeaderHost (line 65) | HeaderHost = "Host" constant HeaderReferer (line 66) | HeaderReferer = "Referer" constant HeaderReferrerPolicy (line 67) | HeaderReferrerPolicy = "Referrer-Policy" constant HeaderUserAgent (line 68) | HeaderUserAgent = "User-Agent" constant HeaderContentEncoding (line 71) | HeaderContentEncoding = "Content-Encoding" constant HeaderContentLanguage (line 72) | HeaderContentLanguage = "Content-Language" constant HeaderContentLength (line 73) | HeaderContentLength = "Content-Length" constant HeaderContentLocation (line 74) | HeaderContentLocation = "Content-Location" constant HeaderContentType (line 75) | HeaderContentType = "Content-Type" constant HeaderAccept (line 78) | HeaderAccept = "Accept" constant HeaderAcceptCharset (line 79) | HeaderAcceptCharset = "Accept-Charset" constant HeaderAcceptEncoding (line 80) | HeaderAcceptEncoding = "Accept-Encoding" constant HeaderAcceptLanguage (line 81) | HeaderAcceptLanguage = "Accept-Language" constant HeaderAltSvc (line 82) | HeaderAltSvc = "Alt-Svc" constant HTTP11 (line 85) | HTTP11 = "HTTP/1.1" constant HTTP10 (line 86) | HTTP10 = "HTTP/1.0" constant HTTP20 (line 87) | HTTP20 = "HTTP/2.0" constant MIMETextPlain (line 90) | MIMETextPlain = "text/plain" constant MIMETextPlainUTF8 (line 91) | MIMETextPlainUTF8 = "text/plain; charset=utf-8" constant MIMETextPlainISO88591 (line 92) | MIMETextPlainISO88591 = "text/plain; charset=iso-8859-1" constant MIMETextPlainFormatFlowed (line 93) | MIMETextPlainFormatFlowed = "text/plain; format=flowed" constant MIMETextPlainDelSpaceYes (line 94) | MIMETextPlainDelSpaceYes = "text/plain; delsp=yes" constant MiMETextPlainDelSpaceNo (line 95) | MiMETextPlainDelSpaceNo = "text/plain; delsp=no" constant MIMETextHtml (line 96) | MIMETextHtml = "text/html" constant MIMETextCss (line 97) | MIMETextCss = "text/css" constant MIMETextJavascript (line 98) | MIMETextJavascript = "text/javascript" constant MIMEMultipartPOSTForm (line 99) | MIMEMultipartPOSTForm = "multipart/form-data" constant MIMEApplicationOctetStream (line 102) | MIMEApplicationOctetStream = "application/octet-stream" constant MIMEApplicationFlash (line 103) | MIMEApplicationFlash = "application/x-shockwave-flash" constant MIMEApplicationHTMLForm (line 104) | MIMEApplicationHTMLForm = "application/x-www-form-urlencoded" constant MIMEApplicationHTMLFormUTF8 (line 105) | MIMEApplicationHTMLFormUTF8 = "application/x-www-form-urlencoded; charse... constant MIMEApplicationTar (line 106) | MIMEApplicationTar = "application/x-tar" constant MIMEApplicationGZip (line 107) | MIMEApplicationGZip = "application/gzip" constant MIMEApplicationXGZip (line 108) | MIMEApplicationXGZip = "application/x-gzip" constant MIMEApplicationBZip2 (line 109) | MIMEApplicationBZip2 = "application/bzip2" constant MIMEApplicationXBZip2 (line 110) | MIMEApplicationXBZip2 = "application/x-bzip2" constant MIMEApplicationShell (line 111) | MIMEApplicationShell = "application/x-sh" constant MIMEApplicationDownload (line 112) | MIMEApplicationDownload = "application/x-msdownload" constant MIMEApplicationJSON (line 113) | MIMEApplicationJSON = "application/json" constant MIMEApplicationJSONUTF8 (line 114) | MIMEApplicationJSONUTF8 = "application/json; charset=utf-8" constant MIMEApplicationXML (line 115) | MIMEApplicationXML = "application/xml" constant MIMEApplicationXMLUTF8 (line 116) | MIMEApplicationXMLUTF8 = "application/xml; charset=utf-8" constant MIMEApplicationZip (line 117) | MIMEApplicationZip = "application/zip" constant MIMEApplicationPdf (line 118) | MIMEApplicationPdf = "application/pdf" constant MIMEApplicationWord (line 119) | MIMEApplicationWord = "application/msword" constant MIMEApplicationExcel (line 120) | MIMEApplicationExcel = "application/vnd.ms-excel" constant MIMEApplicationPPT (line 121) | MIMEApplicationPPT = "application/vnd.ms-powerpoint" constant MIMEApplicationOpenXMLWord (line 122) | MIMEApplicationOpenXMLWord = "application/vnd.openxmlformats-officedocu... constant MIMEApplicationOpenXMLExcel (line 123) | MIMEApplicationOpenXMLExcel = "application/vnd.openxmlformats-officedocu... constant MIMEApplicationOpenXMLPPT (line 124) | MIMEApplicationOpenXMLPPT = "application/vnd.openxmlformats-officedocu... constant MIMEPROTOBUF (line 125) | MIMEPROTOBUF = "application/x-protobuf" constant MIMEImageJPEG (line 128) | MIMEImageJPEG = "image/jpeg" constant MIMEImagePNG (line 129) | MIMEImagePNG = "image/png" constant MIMEImageGIF (line 130) | MIMEImageGIF = "image/gif" constant MIMEImageBitmap (line 131) | MIMEImageBitmap = "image/bmp" constant MIMEImageWebP (line 132) | MIMEImageWebP = "image/webp" constant MIMEImageIco (line 133) | MIMEImageIco = "image/x-icon" constant MIMEImageMicrosoftICO (line 134) | MIMEImageMicrosoftICO = "image/vnd.microsoft.icon" constant MIMEImageTIFF (line 135) | MIMEImageTIFF = "image/tiff" constant MIMEImageSVG (line 136) | MIMEImageSVG = "image/svg+xml" constant MIMEImagePhotoshop (line 137) | MIMEImagePhotoshop = "image/vnd.adobe.photoshop" constant MIMEAudioBasic (line 140) | MIMEAudioBasic = "audio/basic" constant MIMEAudioL24 (line 141) | MIMEAudioL24 = "audio/L24" constant MIMEAudioMP3 (line 142) | MIMEAudioMP3 = "audio/mp3" constant MIMEAudioMP4 (line 143) | MIMEAudioMP4 = "audio/mp4" constant MIMEAudioMPEG (line 144) | MIMEAudioMPEG = "audio/mpeg" constant MIMEAudioOggVorbis (line 145) | MIMEAudioOggVorbis = "audio/ogg" constant MIMEAudioWAVE (line 146) | MIMEAudioWAVE = "audio/vnd.wave" constant MIMEAudioWebM (line 147) | MIMEAudioWebM = "audio/webm" constant MIMEAudioAAC (line 148) | MIMEAudioAAC = "audio/x-aac" constant MIMEAudioAIFF (line 149) | MIMEAudioAIFF = "audio/x-aiff" constant MIMEAudioMIDI (line 150) | MIMEAudioMIDI = "audio/x-midi" constant MIMEAudioM3U (line 151) | MIMEAudioM3U = "audio/x-mpegurl" constant MIMEAudioRealAudio (line 152) | MIMEAudioRealAudio = "audio/x-pn-realaudio" constant MIMEVideoMPEG (line 155) | MIMEVideoMPEG = "video/mpeg" constant MIMEVideoOgg (line 156) | MIMEVideoOgg = "video/ogg" constant MIMEVideoMP4 (line 157) | MIMEVideoMP4 = "video/mp4" constant MIMEVideoQuickTime (line 158) | MIMEVideoQuickTime = "video/quicktime" constant MIMEVideoWinMediaVideo (line 159) | MIMEVideoWinMediaVideo = "video/x-ms-wmv" constant MIMEVideWebM (line 160) | MIMEVideWebM = "video/webm" constant MIMEVideoFlashVideo (line 161) | MIMEVideoFlashVideo = "video/x-flv" constant MIMEVideo3GPP (line 162) | MIMEVideo3GPP = "video/3gpp" constant MIMEVideoAVI (line 163) | MIMEVideoAVI = "video/x-msvideo" constant MIMEVideoMatroska (line 164) | MIMEVideoMatroska = "video/x-matroska" FILE: pkg/protocol/consts/http2.go constant ClientPreface (line 21) | ClientPreface = "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n" FILE: pkg/protocol/consts/methods.go constant MethodGet (line 21) | MethodGet = "GET" constant MethodHead (line 22) | MethodHead = "HEAD" constant MethodPost (line 23) | MethodPost = "POST" constant MethodPut (line 24) | MethodPut = "PUT" constant MethodPatch (line 25) | MethodPatch = "PATCH" constant MethodDelete (line 26) | MethodDelete = "DELETE" constant MethodConnect (line 27) | MethodConnect = "CONNECT" constant MethodOptions (line 28) | MethodOptions = "OPTIONS" constant MethodTrace (line 29) | MethodTrace = "TRACE" FILE: pkg/protocol/consts/status.go constant statusMessageMin (line 50) | statusMessageMin = 100 constant statusMessageMax (line 51) | statusMessageMax = 511 constant StatusContinue (line 56) | StatusContinue = 100 constant StatusSwitchingProtocols (line 57) | StatusSwitchingProtocols = 101 constant StatusProcessing (line 58) | StatusProcessing = 102 constant StatusOK (line 60) | StatusOK = 200 constant StatusCreated (line 61) | StatusCreated = 201 constant StatusAccepted (line 62) | StatusAccepted = 202 constant StatusNonAuthoritativeInfo (line 63) | StatusNonAuthoritativeInfo = 203 constant StatusNoContent (line 64) | StatusNoContent = 204 constant StatusResetContent (line 65) | StatusResetContent = 205 constant StatusPartialContent (line 66) | StatusPartialContent = 206 constant StatusMultiStatus (line 67) | StatusMultiStatus = 207 constant StatusAlreadyReported (line 68) | StatusAlreadyReported = 208 constant StatusIMUsed (line 69) | StatusIMUsed = 226 constant StatusMultipleChoices (line 71) | StatusMultipleChoices = 300 constant StatusMovedPermanently (line 72) | StatusMovedPermanently = 301 constant StatusFound (line 73) | StatusFound = 302 constant StatusSeeOther (line 74) | StatusSeeOther = 303 constant StatusNotModified (line 75) | StatusNotModified = 304 constant StatusUseProxy (line 76) | StatusUseProxy = 305 constant _ (line 77) | _ = 306 constant StatusTemporaryRedirect (line 78) | StatusTemporaryRedirect = 307 constant StatusPermanentRedirect (line 79) | StatusPermanentRedirect = 308 constant StatusBadRequest (line 81) | StatusBadRequest = 400 constant StatusUnauthorized (line 82) | StatusUnauthorized = 401 constant StatusPaymentRequired (line 83) | StatusPaymentRequired = 402 constant StatusForbidden (line 84) | StatusForbidden = 403 constant StatusNotFound (line 85) | StatusNotFound = 404 constant StatusMethodNotAllowed (line 86) | StatusMethodNotAllowed = 405 constant StatusNotAcceptable (line 87) | StatusNotAcceptable = 406 constant StatusProxyAuthRequired (line 88) | StatusProxyAuthRequired = 407 constant StatusRequestTimeout (line 89) | StatusRequestTimeout = 408 constant StatusConflict (line 90) | StatusConflict = 409 constant StatusGone (line 91) | StatusGone = 410 constant StatusLengthRequired (line 92) | StatusLengthRequired = 411 constant StatusPreconditionFailed (line 93) | StatusPreconditionFailed = 412 constant StatusRequestEntityTooLarge (line 94) | StatusRequestEntityTooLarge = 413 constant StatusRequestURITooLong (line 95) | StatusRequestURITooLong = 414 constant StatusUnsupportedMediaType (line 96) | StatusUnsupportedMediaType = 415 constant StatusRequestedRangeNotSatisfiable (line 97) | StatusRequestedRangeNotSatisfiable = 416 constant StatusExpectationFailed (line 98) | StatusExpectationFailed = 417 constant StatusTeapot (line 99) | StatusTeapot = 418 constant StatusUnprocessableEntity (line 100) | StatusUnprocessableEntity = 422 constant StatusLocked (line 101) | StatusLocked = 423 constant StatusFailedDependency (line 102) | StatusFailedDependency = 424 constant StatusUpgradeRequired (line 103) | StatusUpgradeRequired = 426 constant StatusPreconditionRequired (line 104) | StatusPreconditionRequired = 428 constant StatusTooManyRequests (line 105) | StatusTooManyRequests = 429 constant StatusRequestHeaderFieldsTooLarge (line 106) | StatusRequestHeaderFieldsTooLarge = 431 constant StatusUnavailableForLegalReasons (line 107) | StatusUnavailableForLegalReasons = 451 constant StatusInternalServerError (line 109) | StatusInternalServerError = 500 constant StatusNotImplemented (line 110) | StatusNotImplemented = 501 constant StatusBadGateway (line 111) | StatusBadGateway = 502 constant StatusServiceUnavailable (line 112) | StatusServiceUnavailable = 503 constant StatusGatewayTimeout (line 113) | StatusGatewayTimeout = 504 constant StatusHTTPVersionNotSupported (line 114) | StatusHTTPVersionNotSupported = 505 constant StatusVariantAlsoNegotiates (line 115) | StatusVariantAlsoNegotiates = 506 constant StatusInsufficientStorage (line 116) | StatusInsufficientStorage = 507 constant StatusLoopDetected (line 117) | StatusLoopDetected = 508 constant StatusNotExtended (line 118) | StatusNotExtended = 510 constant StatusNetworkAuthenticationRequired (line 119) | StatusNetworkAuthenticationRequired = 511 function StatusMessage (line 193) | func StatusMessage(statusCode int) string { function init (line 205) | func init() { function StatusLine (line 209) | func StatusLine(statusCode int) []byte { FILE: pkg/protocol/cookie.go constant CookieSameSiteDisabled (line 59) | CookieSameSiteDisabled CookieSameSite = iota constant CookieSameSiteDefaultMode (line 61) | CookieSameSiteDefaultMode constant CookieSameSiteLaxMode (line 63) | CookieSameSiteLaxMode constant CookieSameSiteStrictMode (line 65) | CookieSameSiteStrictMode constant CookieSameSiteNoneMode (line 70) | CookieSameSiteNoneMode type CookieSameSite (line 87) | type CookieSameSite type Cookie (line 94) | type Cookie struct method SetDomain (line 139) | func (c *Cookie) SetDomain(domain string) { method SetPath (line 144) | func (c *Cookie) SetPath(path string) { method SetPathBytes (line 150) | func (c *Cookie) SetPathBytes(path []byte) { method SetExpire (line 161) | func (c *Cookie) SetExpire(expire time.Time) { method SetKey (line 166) | func (c *Cookie) SetKey(key string) { method SetKeyBytes (line 171) | func (c *Cookie) SetKeyBytes(key []byte) { method SetValue (line 176) | func (c *Cookie) SetValue(value string) { method SetValueBytes (line 182) | func (c *Cookie) SetValueBytes(value []byte) { method AppendBytes (line 189) | func (c *Cookie) AppendBytes(dst []byte) []byte { method Key (line 336) | func (c *Cookie) Key() []byte { method Cookie (line 343) | func (c *Cookie) Cookie() []byte { method Reset (line 349) | func (c *Cookie) Reset() { method Value (line 365) | func (c *Cookie) Value() []byte { method Parse (line 370) | func (c *Cookie) Parse(src string) error { method ParseBytes (line 376) | func (c *Cookie) ParseBytes(src []byte) error { method MaxAge (line 474) | func (c *Cookie) MaxAge() int { method SetMaxAge (line 485) | func (c *Cookie) SetMaxAge(seconds int) { method Expire (line 492) | func (c *Cookie) Expire() time.Time { method Domain (line 503) | func (c *Cookie) Domain() []byte { method Path (line 508) | func (c *Cookie) Path() []byte { method Secure (line 513) | func (c *Cookie) Secure() bool { method SetSecure (line 518) | func (c *Cookie) SetSecure(secure bool) { method SameSite (line 523) | func (c *Cookie) SameSite() CookieSameSite { method Partitioned (line 528) | func (c *Cookie) Partitioned() bool { method SetSameSite (line 534) | func (c *Cookie) SetSameSite(mode CookieSameSite) { method HTTPOnly (line 542) | func (c *Cookie) HTTPOnly() bool { method SetHTTPOnly (line 547) | func (c *Cookie) SetHTTPOnly(httpOnly bool) { method SetPartitioned (line 552) | func (c *Cookie) SetPartitioned(partitioned bool) { method String (line 560) | func (c *Cookie) String() string { function AcquireCookie (line 125) | func AcquireCookie() *Cookie { function ReleaseCookie (line 133) | func ReleaseCookie(c *Cookie) { function appendCookiePart (line 247) | func appendCookiePart(dst, key, value []byte) []byte { function appendRequestCookieBytes (line 254) | func appendRequestCookieBytes(dst []byte, cookies []argsKV) []byte { function appendResponseCookieBytes (line 271) | func appendResponseCookieBytes(dst []byte, cookies []argsKV) []byte { type cookieScanner (line 282) | type cookieScanner struct method next (line 299) | func (s *cookieScanner) next(kv *argsKV) bool { function parseRequestCookies (line 286) | func parseRequestCookies(cookies []argsKV, src []byte) []argsKV { function decodeCookieArg (line 564) | func decodeCookieArg(dst, src []byte, skipQuotes bool) []byte { function getCookieKey (line 579) | func getCookieKey(dst, src []byte) []byte { function warnIfInvalid (line 587) | func warnIfInvalid(value []byte) bool { FILE: pkg/protocol/cookie_test.go function TestCookieAppendBytes (line 53) | func TestCookieAppendBytes(t *testing.T) { function testCookieAppendBytes (line 75) | func testCookieAppendBytes(t *testing.T, c *Cookie, key, value, expected... function TestParseRequestCookies (line 84) | func TestParseRequestCookies(t *testing.T) { function testParseRequestCookies (line 97) | func testParseRequestCookies(t *testing.T, s, expectedS string) { function TestAppendRequestCookieBytes (line 105) | func TestAppendRequestCookieBytes(t *testing.T) { function testAppendRequestCookieBytes (line 114) | func testAppendRequestCookieBytes(t *testing.T, s, expectedS string) { function TestCookieSecureHTTPOnly (line 139) | func TestCookieSecureHTTPOnly(t *testing.T) { function TestCookieSecure (line 162) | func TestCookieSecure(t *testing.T) { function TestCookieSameSite (line 190) | func TestCookieSameSite(t *testing.T) { function TestCookiePartitioned (line 263) | func TestCookiePartitioned(t *testing.T) { function TestCookieMaxAgeExpires (line 288) | func TestCookieMaxAgeExpires(t *testing.T) { function TestCookieHttpOnly (line 342) | func TestCookieHttpOnly(t *testing.T) { function TestCookieParse (line 370) | func TestCookieParse(t *testing.T) { function Test_decodeCookieArg (line 384) | func Test_decodeCookieArg(t *testing.T) { function testCookieParse (line 391) | func testCookieParse(t *testing.T, s, expectedS string) { function Test_WarnIfInvalid (line 402) | func Test_WarnIfInvalid(t *testing.T) { function getValidCookie (line 413) | func getValidCookie() []byte { FILE: pkg/protocol/header.go type RequestHeader (line 65) | type RequestHeader struct method SetRawHeaders (line 99) | func (h *RequestHeader) SetRawHeaders(r []byte) { method Add (line 257) | func (h *RequestHeader) Add(key, value string) { method IsHTTP11 (line 301) | func (h *RequestHeader) IsHTTP11() bool { method SetProtocol (line 305) | func (h *RequestHeader) SetProtocol(p string) { method GetProtocol (line 309) | func (h *RequestHeader) GetProtocol() string { method SetNoHTTP11 (line 317) | func (h *RequestHeader) SetNoHTTP11(b bool) { method InitBufValue (line 326) | func (h *RequestHeader) InitBufValue(size int) { method GetBufValue (line 332) | func (h *RequestHeader) GetBufValue() []byte { method HasAcceptEncodingBytes (line 338) | func (h *RequestHeader) HasAcceptEncodingBytes(acceptEncoding []byte) ... method PeekIfModifiedSinceBytes (line 354) | func (h *RequestHeader) PeekIfModifiedSinceBytes() []byte { method RequestURI (line 359) | func (h *RequestHeader) RequestURI() []byte { method PeekArgBytes (line 367) | func (h *RequestHeader) PeekArgBytes(key []byte) []byte { method RawHeaders (line 381) | func (h *RequestHeader) RawHeaders() []byte { method AppendBytes (line 387) | func (h *RequestHeader) AppendBytes(dst []byte) []byte { method Header (line 445) | func (h *RequestHeader) Header() []byte { method IsPut (line 451) | func (h *RequestHeader) IsPut() bool { method IsHead (line 456) | func (h *RequestHeader) IsHead() bool { method IsPost (line 461) | func (h *RequestHeader) IsPost() bool { method IsDelete (line 466) | func (h *RequestHeader) IsDelete() bool { method IsConnect (line 471) | func (h *RequestHeader) IsConnect() bool { method IgnoreBody (line 475) | func (h *RequestHeader) IgnoreBody() bool { method ContentLength (line 483) | func (h *RequestHeader) ContentLength() int { method SetHost (line 488) | func (h *RequestHeader) SetHost(host string) { method PeekAll (line 776) | func (h *RequestHeader) PeekAll(key string) [][]byte { method peekAll (line 782) | func (h *RequestHeader) peekAll(key []byte) [][]byte { method Len (line 1035) | func (h *RequestHeader) Len() int { method Reset (line 1042) | func (h *RequestHeader) Reset() { method SetByteRange (line 1052) | func (h *RequestHeader) SetByteRange(startPos, endPos int) { method DelBytes (line 1071) | func (h *RequestHeader) DelBytes(key []byte) { method Del (line 1078) | func (h *RequestHeader) Del(key string) { method SetArgBytes (line 1084) | func (h *RequestHeader) SetArgBytes(key, value []byte, noValue bool) { method del (line 1088) | func (h *RequestHeader) del(key []byte) { method CopyTo (line 1110) | func (h *RequestHeader) CopyTo(dst *RequestHeader) { method Peek (line 1136) | func (h *RequestHeader) Peek(key string) []byte { method SetMultipartFormBoundary (line 1145) | func (h *RequestHeader) SetMultipartFormBoundary(boundary string) { method ContentLengthBytes (line 1157) | func (h *RequestHeader) ContentLengthBytes() []byte { method SetContentLengthBytes (line 1161) | func (h *RequestHeader) SetContentLengthBytes(contentLength []byte) { method SetContentTypeBytes (line 1166) | func (h *RequestHeader) SetContentTypeBytes(contentType []byte) { method ContentType (line 1171) | func (h *RequestHeader) ContentType() []byte { method SetNoDefaultContentType (line 1179) | func (h *RequestHeader) SetNoDefaultContentType(b bool) { method SetContentLength (line 1186) | func (h *RequestHeader) SetContentLength(contentLength int) { method InitContentLengthWithValue (line 1197) | func (h *RequestHeader) InitContentLengthWithValue(contentLength int) { method MultipartFormBoundary (line 1203) | func (h *RequestHeader) MultipartFormBoundary() []byte { method ConnectionClose (line 1244) | func (h *RequestHeader) ConnectionClose() bool { method Method (line 1249) | func (h *RequestHeader) Method() []byte { method IsGet (line 1257) | func (h *RequestHeader) IsGet() bool { method IsOptions (line 1262) | func (h *RequestHeader) IsOptions() bool { method IsTrace (line 1267) | func (h *RequestHeader) IsTrace() bool { method SetHostBytes (line 1272) | func (h *RequestHeader) SetHostBytes(host []byte) { method SetRequestURIBytes (line 1279) | func (h *RequestHeader) SetRequestURIBytes(requestURI []byte) { method SetBytesKV (line 1286) | func (h *RequestHeader) SetBytesKV(key, value []byte) { method AddArgBytes (line 1292) | func (h *RequestHeader) AddArgBytes(key, value []byte, noValue bool) { method SetUserAgentBytes (line 1297) | func (h *RequestHeader) SetUserAgentBytes(userAgent []byte) { method SetCookie (line 1302) | func (h *RequestHeader) SetCookie(key, value string) { method Cookie (line 1314) | func (h *RequestHeader) Cookie(key string) []byte { method Cookies (line 1322) | func (h *RequestHeader) Cookies() []*Cookie { method PeekRange (line 1333) | func (h *RequestHeader) PeekRange() []byte { method PeekContentEncoding (line 1337) | func (h *RequestHeader) PeekContentEncoding() []byte { method FullCookie (line 1342) | func (h *RequestHeader) FullCookie() []byte { method DelCookie (line 1347) | func (h *RequestHeader) DelCookie(key string) { method DelAllCookies (line 1353) | func (h *RequestHeader) DelAllCookies() { method VisitAllCookie (line 1361) | func (h *RequestHeader) VisitAllCookie(f func(key, value []byte)) { method collectCookies (line 1366) | func (h *RequestHeader) collectCookies() { method SetConnectionClose (line 1386) | func (h *RequestHeader) SetConnectionClose(close bool) { method ResetConnectionClose (line 1391) | func (h *RequestHeader) ResetConnectionClose() { method SetMethod (line 1399) | func (h *RequestHeader) SetMethod(method string) { method SetRequestURI (line 1406) | func (h *RequestHeader) SetRequestURI(requestURI string) { method Set (line 1413) | func (h *RequestHeader) Set(key, value string) { method SetCanonical (line 1426) | func (h *RequestHeader) SetCanonical(key, value []byte) { method ResetSkipNormalize (line 1434) | func (h *RequestHeader) ResetSkipNormalize() { method Host (line 1489) | func (h *RequestHeader) Host() []byte { method UserAgent (line 1494) | func (h *RequestHeader) UserAgent() []byte { method DisableNormalizing (line 1510) | func (h *RequestHeader) DisableNormalizing() { method IsDisableNormalizing (line 1515) | func (h *RequestHeader) IsDisableNormalizing() bool { method String (line 1520) | func (h *RequestHeader) String() string { method VisitAll (line 1530) | func (h *RequestHeader) VisitAll(f func(key, value []byte)) { method VisitAllCustomHeader (line 1568) | func (h *RequestHeader) VisitAllCustomHeader(f func(key, value []byte)) { method peek (line 1609) | func (h *RequestHeader) peek(key string) []byte { method Get (line 1636) | func (h *RequestHeader) Get(key string) string { method GetAll (line 1646) | func (h *RequestHeader) GetAll(key string) []string { method SetMethodBytes (line 1706) | func (h *RequestHeader) SetMethodBytes(method []byte) { method setSpecialHeader (line 1788) | func (h *RequestHeader) setSpecialHeader(key, value []byte) bool { method Trailer (line 1851) | func (h *RequestHeader) Trailer() *Trailer { type ResponseHeader (line 110) | type ResponseHeader struct method SetHeaderLength (line 138) | func (h *ResponseHeader) SetHeaderLength(length int) { method GetHeaderLength (line 143) | func (h *ResponseHeader) GetHeaderLength() int { method SetContentRange (line 149) | func (h *ResponseHeader) SetContentRange(startPos, endPos, contentLeng... method NoDefaultContentType (line 163) | func (h *ResponseHeader) NoDefaultContentType() bool { method SetConnectionClose (line 168) | func (h *ResponseHeader) SetConnectionClose(close bool) { method PeekArgBytes (line 172) | func (h *ResponseHeader) PeekArgBytes(key []byte) []byte { method SetNoHTTP11 (line 180) | func (h *ResponseHeader) SetNoHTTP11(b bool) { method Cookie (line 192) | func (h *ResponseHeader) Cookie(cookie *Cookie) bool { method FullCookie (line 202) | func (h *ResponseHeader) FullCookie() []byte { method IsHTTP11 (line 207) | func (h *ResponseHeader) IsHTTP11() bool { method SetContentType (line 212) | func (h *ResponseHeader) SetContentType(contentType string) { method GetHeaders (line 216) | func (h *ResponseHeader) GetHeaders() []argsKV { method Reset (line 221) | func (h *ResponseHeader) Reset() { method CopyTo (line 230) | func (h *ResponseHeader) CopyTo(dst *ResponseHeader) { method VisitAll (line 270) | func (h *ResponseHeader) VisitAll(f func(key, value []byte)) { method SetStatusCode (line 493) | func (h *ResponseHeader) SetStatusCode(statusCode int) { method ResetSkipNormalize (line 507) | func (h *ResponseHeader) ResetSkipNormalize() { method ContentLength (line 530) | func (h *ResponseHeader) ContentLength() int { method Set (line 537) | func (h *ResponseHeader) Set(key, value string) { method Add (line 550) | func (h *ResponseHeader) Add(key, value string) { method SetContentLength (line 564) | func (h *ResponseHeader) SetContentLength(contentLength int) { method ContentLengthBytes (line 583) | func (h *ResponseHeader) ContentLengthBytes() []byte { method InitContentLengthWithValue (line 587) | func (h *ResponseHeader) InitContentLengthWithValue(contentLength int) { method VisitAllCookie (line 598) | func (h *ResponseHeader) VisitAllCookie(f func(key, value []byte)) { method DelAllCookies (line 603) | func (h *ResponseHeader) DelAllCookies() { method DelCookie (line 611) | func (h *ResponseHeader) DelCookie(key string) { method DelCookieBytes (line 619) | func (h *ResponseHeader) DelCookieBytes(key []byte) { method DelBytes (line 624) | func (h *ResponseHeader) DelBytes(key []byte) { method Header (line 633) | func (h *ResponseHeader) Header() []byte { method PeekLocation (line 638) | func (h *ResponseHeader) PeekLocation() []byte { method DelClientCookie (line 655) | func (h *ResponseHeader) DelClientCookie(key string) { method DelClientCookieBytes (line 678) | func (h *ResponseHeader) DelClientCookieBytes(key []byte) { method Peek (line 686) | func (h *ResponseHeader) Peek(key string) []byte { method IsDisableNormalizing (line 692) | func (h *ResponseHeader) IsDisableNormalizing() bool { method ParseSetCookie (line 696) | func (h *ResponseHeader) ParseSetCookie(value []byte) { method peek (line 703) | func (h *ResponseHeader) peek(key string) []byte { method PeekAll (line 733) | func (h *ResponseHeader) PeekAll(key string) [][]byte { method peekAll (line 739) | func (h *ResponseHeader) peekAll(key []byte) [][]byte { method SetContentTypeBytes (line 818) | func (h *ResponseHeader) SetContentTypeBytes(contentType []byte) { method ContentEncoding (line 823) | func (h *ResponseHeader) ContentEncoding() []byte { method SetContentEncoding (line 828) | func (h *ResponseHeader) SetContentEncoding(contentEncoding string) { method SetContentEncodingBytes (line 833) | func (h *ResponseHeader) SetContentEncodingBytes(contentEncoding []byt... method SetContentLengthBytes (line 837) | func (h *ResponseHeader) SetContentLengthBytes(contentLength []byte) { method SetCanonical (line 843) | func (h *ResponseHeader) SetCanonical(key, value []byte) { method ResetConnectionClose (line 852) | func (h *ResponseHeader) ResetConnectionClose() { method Server (line 860) | func (h *ResponseHeader) Server() []byte { method AddArgBytes (line 864) | func (h *ResponseHeader) AddArgBytes(key, value []byte, noValue bool) { method SetArgBytes (line 868) | func (h *ResponseHeader) SetArgBytes(key, value []byte, noValue bool) { method AppendBytes (line 874) | func (h *ResponseHeader) AppendBytes(dst []byte) []byte { method ConnectionClose (line 934) | func (h *ResponseHeader) ConnectionClose() bool { method GetCookies (line 938) | func (h *ResponseHeader) GetCookies() []argsKV { method ContentType (line 943) | func (h *ResponseHeader) ContentType() []byte { method SetNoDefaultContentType (line 952) | func (h *ResponseHeader) SetNoDefaultContentType(b bool) { method SetNoDefaultDate (line 957) | func (h *ResponseHeader) SetNoDefaultDate(b bool) { method SetServerBytes (line 962) | func (h *ResponseHeader) SetServerBytes(server []byte) { method MustSkipContentLength (line 966) | func (h *ResponseHeader) MustSkipContentLength() bool { method StatusCode (line 981) | func (h *ResponseHeader) StatusCode() int { method Del (line 989) | func (h *ResponseHeader) Del(key string) { method del (line 995) | func (h *ResponseHeader) del(key []byte) { method SetBytesV (line 1019) | func (h *ResponseHeader) SetBytesV(key string, value []byte) { method Len (line 1027) | func (h *ResponseHeader) Len() int { method SetCookie (line 1309) | func (h *ResponseHeader) SetCookie(cookie *Cookie) { method Get (line 1640) | func (h *ResponseHeader) Get(key string) string { method GetAll (line 1657) | func (h *ResponseHeader) GetAll(key string) []string { method DisableNormalizing (line 1722) | func (h *ResponseHeader) DisableNormalizing() { method setSpecialHeader (line 1728) | func (h *ResponseHeader) setSpecialHeader(key, value []byte) bool { method Trailer (line 1843) | func (h *ResponseHeader) Trailer() *Trailer { method SetProtocol (line 1858) | func (h *ResponseHeader) SetProtocol(p string) { method GetProtocol (line 1862) | func (h *ResponseHeader) GetProtocol() string { function checkWriteHeaderCode (line 498) | func checkWriteHeaderCode(code int) { function initHeaderKV (line 1418) | func initHeaderKV(kv *argsKV, key, value string, disableNormalizing bool) { function peekRawHeader (line 1457) | func peekRawHeader(buf, key []byte) []byte { function ParseContentLength (line 1572) | func ParseContentLength(b []byte) (int, error) { function appendArgBytes (line 1583) | func appendArgBytes(args []argsKV, key, value []byte, noValue bool) []ar... function appendArg (line 1596) | func appendArg(args []argsKV, key, value string, noValue bool) []argsKV { function appendHeaderLine (line 1666) | func appendHeaderLine(dst, key, value []byte) []byte { function appendHeaderValue (line 1679) | func appendHeaderValue(dst, v []byte) []byte { function UpdateServerDate (line 1690) | func UpdateServerDate() { function refreshServerDate (line 1700) | func refreshServerDate() { FILE: pkg/protocol/header_test.go function TestRequestHeaderSetRawHeaders (line 57) | func TestRequestHeaderSetRawHeaders(t *testing.T) { function TestResponseHeaderSetHeaderLength (line 63) | func TestResponseHeaderSetHeaderLength(t *testing.T) { function TestSetNoHTTP11 (line 70) | func TestSetNoHTTP11(t *testing.T) { function TestResponseHeaderSetContentType (line 88) | func TestResponseHeaderSetContentType(t *testing.T) { function TestSetContentLengthBytes (line 94) | func TestSetContentLengthBytes(t *testing.T) { function TestInitContentLengthWithValue (line 104) | func TestInitContentLengthWithValue(t *testing.T) { function TestSetContentEncoding (line 115) | func TestSetContentEncoding(t *testing.T) { function Test_peekRawHeader (line 121) | func Test_peekRawHeader(t *testing.T) { function TestResponseHeader_SetContentLength (line 126) | func TestResponseHeader_SetContentLength(t *testing.T) { function TestResponseHeader_SetContentRange (line 134) | func TestResponseHeader_SetContentRange(t *testing.T) { function TestSetCanonical (line 140) | func TestSetCanonical(t *testing.T) { function TestHasAcceptEncodingBytes (line 161) | func TestHasAcceptEncodingBytes(t *testing.T) { function TestRequestHeaderGet (line 167) | func TestRequestHeaderGet(t *testing.T) { function TestResponseHeaderGet (line 177) | func TestResponseHeaderGet(t *testing.T) { function TestRequestHeaderGetAll (line 185) | func TestRequestHeaderGetAll(t *testing.T) { function TestResponseHeaderGetAll (line 194) | func TestResponseHeaderGetAll(t *testing.T) { function TestRequestHeaderVisitAll (line 203) | func TestRequestHeaderVisitAll(t *testing.T) { function TestRequestHeaderCookie (line 245) | func TestRequestHeaderCookie(t *testing.T) { function TestRequestHeaderCookies (line 252) | func TestRequestHeaderCookies(t *testing.T) { function TestRequestHeaderDel (line 264) | func TestRequestHeaderDel(t *testing.T) { function TestResponseHeaderDel (line 341) | func TestResponseHeaderDel(t *testing.T) { function TestResponseHeaderDelClientCookie (line 411) | func TestResponseHeaderDelClientCookie(t *testing.T) { function TestResponseHeaderResetConnectionClose (line 435) | func TestResponseHeaderResetConnectionClose(t *testing.T) { function TestRequestHeaderResetConnectionClose (line 449) | func TestRequestHeaderResetConnectionClose(t *testing.T) { function TestCheckWriteHeaderCode (line 463) | func TestCheckWriteHeaderCode(t *testing.T) { function TestResponseHeaderAdd (line 479) | func TestResponseHeaderAdd(t *testing.T) { function TestRequestHeaderAdd (line 515) | func TestRequestHeaderAdd(t *testing.T) { function TestResponseHeaderAddContentType (line 549) | func TestResponseHeaderAddContentType(t *testing.T) { function TestResponseHeaderAddContentEncoding (line 566) | func TestResponseHeaderAddContentEncoding(t *testing.T) { function TestRequestHeaderAddContentType (line 583) | func TestRequestHeaderAddContentType(t *testing.T) { function TestSetMultipartFormBoundary (line 600) | func TestSetMultipartFormBoundary(t *testing.T) { function TestRequestHeaderSetByteRange (line 606) | func TestRequestHeaderSetByteRange(t *testing.T) { function TestRequestHeaderSetMethodBytes (line 613) | func TestRequestHeaderSetMethodBytes(t *testing.T) { function TestRequestHeaderSetBytesKV (line 619) | func TestRequestHeaderSetBytesKV(t *testing.T) { function TestResponseHeaderSetBytesV (line 626) | func TestResponseHeaderSetBytesV(t *testing.T) { function TestRequestHeaderInitBufValue (line 633) | func TestRequestHeaderInitBufValue(t *testing.T) { function TestRequestHeaderDelAllCookies (line 641) | func TestRequestHeaderDelAllCookies(t *testing.T) { function TestResponseHeaderDelAllCookies (line 651) | func TestResponseHeaderDelAllCookies(t *testing.T) { function TestRequestHeaderSetNoDefaultContentType (line 661) | func TestRequestHeaderSetNoDefaultContentType(t *testing.T) { function TestRequestHeader_PeekAll (line 671) | func TestRequestHeader_PeekAll(t *testing.T) { function expectRequestHeaderAll (line 699) | func expectRequestHeaderAll(t *testing.T, h *RequestHeader, key string, ... function TestResponseHeader_PeekAll (line 706) | func TestResponseHeader_PeekAll(t *testing.T) { function expectResponseHeaderAll (line 733) | func expectResponseHeaderAll(t *testing.T, h *ResponseHeader, key string... function TestRequestHeaderCopyTo (line 740) | func TestRequestHeaderCopyTo(t *testing.T) { function TestResponseHeaderCopyTo (line 769) | func TestResponseHeaderCopyTo(t *testing.T) { function TestResponseHeaderDateEmpty (line 798) | func TestResponseHeaderDateEmpty(t *testing.T) { function TestSetTrailerWithROString (line 810) | func TestSetTrailerWithROString(t *testing.T) { function Benchmark_RequestHeader_Peek (line 820) | func Benchmark_RequestHeader_Peek(b *testing.B) { function TestAppendHeaderLine (line 832) | func TestAppendHeaderLine(t *testing.T) { FILE: pkg/protocol/header_timing_test.go function BenchmarkHTTPHeaderGet (line 50) | func BenchmarkHTTPHeaderGet(b *testing.B) { function BenchmarkHertzHeaderGet (line 59) | func BenchmarkHertzHeaderGet(b *testing.B) { function BenchmarkHTTPHeaderSet (line 68) | func BenchmarkHTTPHeaderSet(b *testing.B) { function BenchmarkHertzHeaderSet (line 76) | func BenchmarkHertzHeaderSet(b *testing.B) { function BenchmarkHTTPHeaderAdd (line 84) | func BenchmarkHTTPHeaderAdd(b *testing.B) { function BenchmarkHertzHeaderAdd (line 92) | func BenchmarkHertzHeaderAdd(b *testing.B) { function BenchmarkRefreshServerDate (line 100) | func BenchmarkRefreshServerDate(b *testing.B) { function BenchmarkHeaderAppendBytes (line 108) | func BenchmarkHeaderAppendBytes(b *testing.B) { FILE: pkg/protocol/http1/client.go type HostClient (line 93) | type HostClient struct method SetDynamicConfig (line 133) | func (c *HostClient) SetDynamicConfig(dc *client.DynamicConfig) { method LastUseTime (line 164) | func (c *HostClient) LastUseTime() time.Time { method Get (line 175) | func (c *HostClient) Get(ctx context.Context, dst []byte, url string) ... method ConnectionCount (line 179) | func (c *HostClient) ConnectionCount() (count int) { method WantConnectionCount (line 186) | func (c *HostClient) WantConnectionCount() (count int) { method ConnPoolState (line 190) | func (c *HostClient) ConnPoolState() config.ConnPoolState { method GetTimeout (line 215) | func (c *HostClient) GetTimeout(ctx context.Context, dst []byte, url s... method GetDeadline (line 228) | func (c *HostClient) GetDeadline(ctx context.Context, dst []byte, url ... method Post (line 240) | func (c *HostClient) Post(ctx context.Context, dst []byte, url string,... method DoTimeout (line 301) | func (c *HostClient) DoTimeout(ctx context.Context, req *protocol.Requ... method DoDeadline (line 323) | func (c *HostClient) DoDeadline(ctx context.Context, req *protocol.Req... method DoRedirects (line 346) | func (c *HostClient) DoRedirects(ctx context.Context, req *protocol.Re... method Do (line 365) | func (c *HostClient) Do(ctx context.Context, req *protocol.Request, re... method PendingRequests (line 455) | func (c *HostClient) PendingRequests() int { method do (line 459) | func (c *HostClient) do(req *protocol.Request, resp *protocol.Response... method getTimeouts (line 503) | func (c *HostClient) getTimeouts(o *config.RequestOptions) (dtimeout, ... method doNonNilReqResp (line 519) | func (c *HostClient) doNonNilReqResp(req *protocol.Request, resp *prot... method Close (line 807) | func (c *HostClient) Close() error { method SetMaxConns (line 813) | func (c *HostClient) SetMaxConns(newMaxConns int) { method acquireConn (line 819) | func (c *HostClient) acquireConn(dialTimeout time.Duration) (cc *clien... method queueForIdle (line 895) | func (c *HostClient) queueForIdle(w *wantConn) { method dialConnFor (line 905) | func (c *HostClient) dialConnFor(w *wantConn) { method CloseIdleConnections (line 925) | func (c *HostClient) CloseIdleConnections() { method ShouldRemove (line 939) | func (c *HostClient) ShouldRemove() bool { method connsCleaner (line 945) | func (c *HostClient) connsCleaner() { method closeConn (line 1002) | func (c *HostClient) closeConn(cc *clientConn) { method decConnsCount (line 1008) | func (c *HostClient) decConnsCount() { method releaseConn (line 1053) | func (c *HostClient) releaseConn(cc *clientConn) { method acquireWriter (line 1085) | func (c *HostClient) acquireWriter(conn network.Conn) network.Writer { method acquireReader (line 1089) | func (c *HostClient) acquireReader(conn network.Conn) network.Reader { method nextAddr (line 1126) | func (c *HostClient) nextAddr() string { method dialHostHard (line 1140) | func (c *HostClient) dialHostHard(dialTimeout time.Duration) (conn net... method cachedTLSConfig (line 1168) | func (c *HostClient) cachedTLSConfig(addr string) *tls.Config { method getClientName (line 1231) | func (c *HostClient) getClientName() []byte { type clientConn (line 154) | type clientConn struct type wantConnQueue (line 247) | type wantConnQueue struct method len (line 1292) | func (q *wantConnQueue) len() int { method pushBack (line 1297) | func (q *wantConnQueue) pushBack(w *wantConn) { method popFront (line 1302) | func (q *wantConnQueue) popFront() *wantConn { method peekFront (line 1318) | func (q *wantConnQueue) peekFront() *wantConn { method clearFront (line 1330) | func (q *wantConnQueue) clearFront() (cleaned bool) { type wantConn (line 271) | type wantConn struct method waiting (line 1247) | func (w *wantConn) waiting() bool { method tryDeliver (line 1257) | func (w *wantConn) tryDeliver(conn *clientConn, err error) bool { method cancel (line 1275) | func (w *wantConn) cancel(c *HostClient, err error) { function timeUntil (line 475) | func timeUntil(deadline time.Time) time.Duration { function calcTimeout (line 487) | func calcTimeout(deadline time.Time, timeout time.Duration) time.Duration { type upgradeConn (line 772) | type upgradeConn struct method Read (line 786) | func (p *upgradeConn) Read(b []byte) (int, error) { return p.cc.c.Read... method Hijack (line 789) | func (p *upgradeConn) Hijack() (network.Conn, error) { return p.cc.c, ... method gc (line 796) | func (p *upgradeConn) gc() error { function newUpgradeConn (line 777) | func newUpgradeConn(c *HostClient, cc *clientConn) *upgradeConn { function acquireClientConn (line 1034) | func acquireClientConn(conn network.Conn) *clientConn { function releaseClientConn (line 1045) | func releaseClientConn(cc *clientConn) { function newClientTLSConfig (line 1093) | func newClientTLSConfig(c *tls.Config, addr string) *tls.Config { function tlsServerName (line 1115) | func tlsServerName(addr string) string { function dialAddr (line 1196) | func dialAddr(addr string, dial network.Dialer, dialDualStack bool, tlsC... function NewHostClient (line 1341) | func NewHostClient(c *ClientOptions) client.HostClient { type ClientOptions (line 1350) | type ClientOptions struct FILE: pkg/protocol/http1/client_test.go function TestHostClientMaxConnWaitTimeoutWithEarlierDeadline (line 78) | func TestHostClientMaxConnWaitTimeoutWithEarlierDeadline(t *testing.T) { function TestReadHeaderErr (line 150) | func TestReadHeaderErr(t *testing.T) { function TestResponseReadBodyStream (line 180) | func TestResponseReadBodyStream(t *testing.T) { function testContinueReadResponseBodyStream (line 214) | func testContinueReadResponseBodyStream(t *testing.T, header, body strin... type dialerFunc (line 248) | type dialerFunc method DialConnection (line 250) | func (f dialerFunc) DialConnection(network, address string, timeout ti... method DialTimeout (line 254) | func (_ dialerFunc) DialTimeout(network, address string, timeout time.... method AddTLS (line 258) | func (_ dialerFunc) AddTLS(conn network.Conn, tlsConfig *tls.Config) (... type slowDialer (line 262) | type slowDialer struct method DialConnection (line 266) | func (s *slowDialer) DialConnection(network, address string, timeout t... function TestTimeoutPriority (line 271) | func TestTimeoutPriority(t *testing.T) { function TestDoNonNilReqResp (line 414) | func TestDoNonNilReqResp(t *testing.T) { function TestDoNonNilReqResp_WriteErr (line 432) | func TestDoNonNilReqResp_WriteErr(t *testing.T) { function TestDoNonNilReqResp_TLS (line 468) | func TestDoNonNilReqResp_TLS(t *testing.T) { function TestDoNonNilReqResp_Err (line 507) | func TestDoNonNilReqResp_Err(t *testing.T) { function doGET (line 524) | func doGET(t *testing.T, addr, path string) *protocol.Response { function TestStreamResponse_EventStream (line 541) | func TestStreamResponse_EventStream(t *testing.T) { function TestStreamResponse_ConnUpgrade (line 569) | func TestStreamResponse_ConnUpgrade(t *testing.T) { function TestStateObserve (line 619) | func TestStateObserve(t *testing.T) { function TestCachedTLSConfig (line 651) | func TestCachedTLSConfig(t *testing.T) { function TestRetry (line 672) | func TestRetry(t *testing.T) { type writeErrConn (line 717) | type writeErrConn struct method WriteBinary (line 721) | func (w writeErrConn) WriteBinary(b []byte) (n int, err error) { type peekErrConn (line 725) | type peekErrConn struct method Peek (line 729) | func (c peekErrConn) Peek(n int) ([]byte, error) { type retryConn (line 733) | type retryConn struct method SetWriteTimeout (line 737) | func (w retryConn) SetWriteTimeout(t time.Duration) error { function TestConnInPoolRetry (line 741) | func TestConnInPoolRetry(t *testing.T) { function TestConnNotRetry (line 773) | func TestConnNotRetry(t *testing.T) { type countCloseConn (line 795) | type countCloseConn struct method Close (line 800) | func (c *countCloseConn) Close() error { function newCountCloseConn (line 805) | func newCountCloseConn(s string) *countCloseConn { function TestStreamNoContent (line 811) | func TestStreamNoContent(t *testing.T) { function TestDialTimeout (line 835) | func TestDialTimeout(t *testing.T) { function TestContextNil (line 854) | func TestContextNil(t *testing.T) { function TestCalcimeout (line 864) | func TestCalcimeout(t *testing.T) { type mockConnClosed (line 895) | type mockConnClosed struct method Close (line 900) | func (m *mockConnClosed) Close() error { function TestDoNonNilReqResp_releaseConn (line 906) | func TestDoNonNilReqResp_releaseConn(t *testing.T) { FILE: pkg/protocol/http1/client_unix_test.go function TestGcBodyStream (line 37) | func TestGcBodyStream(t *testing.T) { function TestMaxConn (line 73) | func TestMaxConn(t *testing.T) { FILE: pkg/protocol/http1/ext/common.go constant maxContentLengthInStream (line 61) | maxContentLengthInStream = 8 * 1024 function MustPeekBuffered (line 65) | func MustPeekBuffered(r network.Reader) []byte { function MustDiscard (line 75) | func MustDiscard(r network.Reader, n int) { function ReadRawHeaders (line 81) | func ReadRawHeaders(dst, buf []byte) ([]byte, int, error) { function WriteBodyChunked (line 109) | func WriteBodyChunked(w network.Writer, r io.Reader) error { function WriteBodyFixedSize (line 143) | func WriteBodyFixedSize(w network.Writer, r io.Reader, size int64) error { function appendBodyFixedSize (line 165) | func appendBodyFixedSize(r network.Reader, dst []byte, n int) ([]byte, e... function readBodyIdentity (line 198) | func readBodyIdentity(r network.Reader, maxBodySize int, dst []byte) ([]... function ReadBody (line 241) | func ReadBody(r network.Reader, contentLength, maxBodySize int, dst []by... function LimitedReaderSize (line 255) | func LimitedReaderSize(r io.Reader) int64 { function readBodyChunked (line 263) | func readBodyChunked(r network.Reader, maxBodySize int, dst []byte) ([]b... function round2 (line 292) | func round2(n int) int { function WriteChunk (line 305) | func WriteChunk(w network.Writer, b []byte, withFlush bool) error { function isOnlyCRLF (line 332) | func isOnlyCRLF(b []byte) bool { function BufferSnippet (line 341) | func BufferSnippet(b []byte) string { function normalizeHeaderValue (line 356) | func normalizeHeaderValue(ov, ob []byte, headerLength int) (nv, nb []byt... function stripSpace (line 402) | func stripSpace(b []byte) []byte { function SkipTrailer (line 412) | func SkipTrailer(r network.Reader) error { function trySkipTrailer (line 432) | func trySkipTrailer(r network.Reader, n int) error { function skipTrailer (line 458) | func skipTrailer(buf []byte) (int, error) { function ReadTrailer (line 476) | func ReadTrailer(t *protocol.Trailer, r network.Reader) error { function tryReadTrailer (line 497) | func tryReadTrailer(t *protocol.Trailer, r network.Reader, n int) error { function parseTrailer (line 523) | func parseTrailer(t *protocol.Trailer, buf []byte) (int, error) { function WriteTrailer (line 556) | func WriteTrailer(t *protocol.Trailer, w network.Writer) error { FILE: pkg/protocol/http1/ext/common_test.go function Test_stripSpace (line 34) | func Test_stripSpace(t *testing.T) { function Test_bufferSnippet (line 43) | func Test_bufferSnippet(t *testing.T) { function Test_isOnlyCRLF (line 50) | func Test_isOnlyCRLF(t *testing.T) { function TestReadTrailer (line 55) | func TestReadTrailer(t *testing.T) { function TestReadTrailerError (line 77) | func TestReadTrailerError(t *testing.T) { function TestReadTrailer1 (line 93) | func TestReadTrailer1(t *testing.T) { function TestReadRawHeaders (line 110) | func TestReadRawHeaders(t *testing.T) { function TestBodyChunked (line 126) | func TestBodyChunked(t *testing.T) { function TestBrokenBodyChunked (line 148) | func TestBrokenBodyChunked(t *testing.T) { function TestBodyFixedSize (line 162) | func TestBodyFixedSize(t *testing.T) { function TestBodyFixedSizeQuickPath (line 178) | func TestBodyFixedSizeQuickPath(t *testing.T) { function TestBodyIdentity (line 184) | func TestBodyIdentity(t *testing.T) { function TestBodySkipTrailer (line 192) | func TestBodySkipTrailer(t *testing.T) { FILE: pkg/protocol/http1/ext/error.go function HeaderError (line 57) | func HeaderError(typ string, err, errParse error, b []byte) error { function headerErrorMsg (line 74) | func headerErrorMsg(typ string, err error, b []byte) error { FILE: pkg/protocol/http1/ext/headerscanner.go type HeaderScanner (line 53) | type HeaderScanner struct method Next (line 80) | func (s *HeaderScanner) Next() bool { type HeaderValueScanner (line 75) | type HeaderValueScanner struct method next (line 189) | func (s *HeaderValueScanner) next() bool { function HasHeaderValue (line 205) | func HasHeaderValue(s, value []byte) bool { FILE: pkg/protocol/http1/ext/headerscanner_test.go function TestHasHeaderValue (line 55) | func TestHasHeaderValue(t *testing.T) { function TestResponseHeaderMultiLineValue (line 61) | func TestResponseHeaderMultiLineValue(t *testing.T) { function TestHeaderScannerError (line 92) | func TestHeaderScannerError(t *testing.T) { function testTestHeaderScannerError (line 106) | func testTestHeaderScannerError(t *testing.T, rawHeaders string, expectE... FILE: pkg/protocol/http1/ext/stream.go type bodyStream (line 70) | type bodyStream struct method Read (line 125) | func (rs *bodyStream) Read(p []byte) (int, error) { method skipRest (line 232) | func (rs *bodyStream) skipRest() error { method reset (line 338) | func (rs *bodyStream) reset() { function ReadBodyWithStreaming (line 81) | func ReadBodyWithStreaming(zr network.Reader, contentLength, maxBodySize... function AcquireBodyStream (line 114) | func AcquireBodyStream(b *bytebufferpool.ByteBuffer, r network.Reader, t... function ReleaseBodyStream (line 329) | func ReleaseBodyStream(requestReader io.Reader) (err error) { FILE: pkg/protocol/http1/ext/stream_test.go function createChunkedBody (line 31) | func createChunkedBody(body, rest []byte, trailer map[string]string, has... function testChunkedSkipRest (line 57) | func testChunkedSkipRest(t *testing.T, data, rest string) { function testChunkedSkipRestWithBodySize (line 70) | func testChunkedSkipRestWithBodySize(t *testing.T, bodySize int) { function TestChunkedSkipRest (line 78) | func TestChunkedSkipRest(t *testing.T) { function TestBodyStream_Reset (line 94) | func TestBodyStream_Reset(t *testing.T) { function TestReadBodyWithStreaming (line 117) | func TestReadBodyWithStreaming(t *testing.T) { function TestBodyStream (line 164) | func TestBodyStream(t *testing.T) { function bodyStreamRead (line 235) | func bodyStreamRead(bs io.Reader, b []byte) (err error) { FILE: pkg/protocol/http1/factory/client.go type clientFactory (line 27) | type clientFactory struct method NewHostClient (line 31) | func (s *clientFactory) NewHostClient() (client client.HostClient, err... function NewClientFactory (line 35) | func NewClientFactory(option *http1.ClientOptions) suite.ClientFactory { FILE: pkg/protocol/http1/factory/server.go type serverFactory (line 27) | type serverFactory struct method New (line 32) | func (s *serverFactory) New(core suite.Core) (server protocol.Server, ... function NewServerFactory (line 39) | func NewServerFactory(option *http1.Option) suite.ServerFactory { FILE: pkg/protocol/http1/proxy/proxy.go function SetupProxy (line 43) | func SetupProxy(conn network.Conn, addr string, proxyURI *protocol.URI, ... function SetProxyAuthHeader (line 126) | func SetProxyAuthHeader(h *protocol.RequestHeader, proxyURI *protocol.UR... FILE: pkg/protocol/http1/req/header.go function WriteHeader (line 63) | func WriteHeader(h *protocol.RequestHeader, w network.Writer) error { function ReadHeader (line 69) | func ReadHeader(h *protocol.RequestHeader, r network.Reader) error { function ReadHeaderWithLimit (line 73) | func ReadHeaderWithLimit(h *protocol.RequestHeader, r network.Reader, ma... function tryReadWithLimit (line 94) | func tryReadWithLimit(h *protocol.RequestHeader, r network.Reader, n, ma... function parse (line 125) | func parse(h *protocol.RequestHeader, buf []byte) (int, error) { constant maxCheckMethodLen (line 143) | maxCheckMethodLen = 10 constant validMethodCharTable (line 149) | validMethodCharTable = bytesconv.ValidHeaderFieldNameTable function parseFirstLine (line 155) | func parseFirstLine(h *protocol.RequestHeader, buf []byte) (int, error) { function validHeaderFieldValue (line 207) | func validHeaderFieldValue(val []byte) bool { function parseHeaders (line 216) | func parseHeaders(h *protocol.RequestHeader, buf []byte) (int, error) { FILE: pkg/protocol/http1/req/header_test.go function TestRequestHeader_Read (line 60) | func TestRequestHeader_Read(t *testing.T) { function TestRequestHeader_Peek (line 84) | func TestRequestHeader_Peek(t *testing.T) { function TestRequestHeaderSetGet (line 97) | func TestRequestHeaderSetGet(t *testing.T) { function TestRequestHeaderCookie (line 168) | func TestRequestHeaderCookie(t *testing.T) { function TestRequestRawHeaders (line 225) | func TestRequestRawHeaders(t *testing.T) { function TestRequestHeaderEmptyValueFromHeader (line 318) | func TestRequestHeaderEmptyValueFromHeader(t *testing.T) { function TestRequestHeaderEmptyValueFromString (line 346) | func TestRequestHeaderEmptyValueFromString(t *testing.T) { function expectRequestHeaderGet (line 372) | func expectRequestHeaderGet(t *testing.T, h *protocol.RequestHeader, key... function TestRequestHeader_PeekIfExists (line 378) | func TestRequestHeader_PeekIfExists(t *testing.T) { function TestRequestHeaderError (line 389) | func TestRequestHeaderError(t *testing.T) { function TestReadHeader (line 396) | func TestReadHeader(t *testing.T) { function TestParseHeaders (line 404) | func TestParseHeaders(t *testing.T) { function TestTryRead (line 410) | func TestTryRead(t *testing.T) { function TestReadHeaderWithLimit (line 418) | func TestReadHeaderWithLimit(t *testing.T) { function TestReadHeaderWithLimitExceeded (line 428) | func TestReadHeaderWithLimitExceeded(t *testing.T) { function TestParseFirstLine (line 438) | func TestParseFirstLine(t *testing.T) { function TestParse (line 505) | func TestParse(t *testing.T) { FILE: pkg/protocol/http1/req/request.go type h1Request (line 68) | type h1Request struct method String (line 77) | func (h1Req *h1Request) String() string { function GetHTTP1Request (line 91) | func GetHTTP1Request(req *protocol.Request) fmt.Stringer { function ReadHeaderAndLimitBody (line 113) | func ReadHeaderAndLimitBody(req *protocol.Request, r network.Reader, max... function Read (line 144) | func Read(req *protocol.Request, r network.Reader, preParse ...bool) err... function Write (line 153) | func Write(req *protocol.Request, w network.Writer) error { function ProxyWrite (line 161) | func ProxyWrite(req *protocol.Request, w network.Writer) error { function write (line 167) | func write(req *protocol.Request, w network.Writer, usingProxy bool) err... function ContinueReadBodyStream (line 255) | func ContinueReadBodyStream(req *protocol.Request, zr network.Reader, ma... function ContinueReadBody (line 309) | func ContinueReadBody(req *protocol.Request, r network.Reader, maxBodySi... function ReadBodyStream (line 374) | func ReadBodyStream(req *protocol.Request, zr network.Reader, maxBodySiz... function ReadLimitBody (line 389) | func ReadLimitBody(req *protocol.Request, r network.Reader, maxBodySize ... function writeBodyStream (line 406) | func writeBodyStream(req *protocol.Request, w network.Writer) error { function handleMultipart (line 443) | func handleMultipart(req *protocol.Request) error { FILE: pkg/protocol/http1/req/request_test.go function TestRequestContinueReadBody (line 72) | func TestRequestContinueReadBody(t *testing.T) { function TestRequestReadNoBody (line 99) | func TestRequestReadNoBody(t *testing.T) { function TestRequestRead (line 117) | func TestRequestRead(t *testing.T) { function TestRequestReadNoBodyStreaming (line 139) | func TestRequestReadNoBodyStreaming(t *testing.T) { function TestRequestReadStreaming (line 159) | func TestRequestReadStreaming(t *testing.T) { function TestMethodAndPathAndQueryString (line 183) | func TestMethodAndPathAndQueryString(t *testing.T) { function TestRequestSuccess (line 206) | func TestRequestSuccess(t *testing.T) { function TestRequestMultipartFormBoundary (line 231) | func TestRequestMultipartFormBoundary(t *testing.T) { function testRequestSuccess (line 259) | func testRequestSuccess(t *testing.T, method, requestURI, host, userAgen... function TestRequestWriteError (line 314) | func TestRequestWriteError(t *testing.T) { function TestRequestPostArgsSuccess (line 321) | func TestRequestPostArgsSuccess(t *testing.T) { function testRequestPostArgsSuccess (line 331) | func testRequestPostArgsSuccess(t *testing.T, req *protocol.Request, s s... function TestRequestPostArgsBodyStream (line 354) | func TestRequestPostArgsBodyStream(t *testing.T) { function testRequestWriteError (line 379) | func testRequestWriteError(t *testing.T, method, requestURI, host, userA... function TestChunkedUnexpectedEOF (line 396) | func TestChunkedUnexpectedEOF(t *testing.T) { function TestReadBodyChunked (line 414) | func TestReadBodyChunked(t *testing.T) { function TestReadBodyFixedSize (line 433) | func TestReadBodyFixedSize(t *testing.T) { function TestRequestWriteRequestURINoHost (line 452) | func TestRequestWriteRequestURINoHost(t *testing.T) { function TestRequestWriteMultipartFile (line 499) | func TestRequestWriteMultipartFile(t *testing.T) { function TestSetRequestBodyStreamChunked (line 531) | func TestSetRequestBodyStreamChunked(t *testing.T) { function TestSetRequestBodyStreamFixedSize (line 543) | func TestSetRequestBodyStreamFixedSize(t *testing.T) { function TestRequestHostFromRequestURI (line 551) | func TestRequestHostFromRequestURI(t *testing.T) { function TestRequestHostFromHeader (line 564) | func TestRequestHostFromHeader(t *testing.T) { function TestRequestContentTypeWithCharset (line 576) | func TestRequestContentTypeWithCharset(t *testing.T) { function TestRequestBodyStreamMultipleBodyCalls (line 608) | func TestRequestBodyStreamMultipleBodyCalls(t *testing.T) { function TestRequestNoContentLength (line 629) | func TestRequestNoContentLength(t *testing.T) { function TestRequestReadGzippedBody (line 650) | func TestRequestReadGzippedBody(t *testing.T) { function TestRequestReadPostNoBody (line 683) | func TestRequestReadPostNoBody(t *testing.T) { function TestRequestContinueReadBodyDisablePrereadMultipartForm (line 716) | func TestRequestContinueReadBodyDisablePrereadMultipartForm(t *testing.T) { function TestRequestReadLimitBody (line 757) | func TestRequestReadLimitBody(t *testing.T) { function testRequestReadLimitBodyReadOnly (line 772) | func testRequestReadLimitBodyReadOnly(t *testing.T, s string) { function TestRequestString (line 782) | func TestRequestString(t *testing.T) { function TestRequestReadChunked (line 794) | func TestRequestReadChunked(t *testing.T) { function verifyTrailer (line 813) | func verifyTrailer(t *testing.T, r network.Reader, exceptedTrailers map[... function TestRequestChunkedWhitespace (line 836) | func TestRequestChunkedWhitespace(t *testing.T) { function testRequestReadLimitBodyError (line 854) | func testRequestReadLimitBodyError(t *testing.T, s string, maxBodySize i... function testRequestReadLimitBodySuccess (line 867) | func testRequestReadLimitBodySuccess(t *testing.T, s string, maxBodySize... function testSetRequestBodyStream (line 875) | func testSetRequestBodyStream(t *testing.T, body string) { function testSetRequestBodyStreamChunked (line 912) | func testSetRequestBodyStreamChunked(t *testing.T, body string, trailer ... function TestRequestMultipartForm (line 957) | func TestRequestMultipartForm(t *testing.T) { function testRequestMultipartForm (line 996) | func testRequestMultipartForm(t *testing.T, boundary string, formData []... function testRequestMultipartFormNotPreParse (line 1039) | func testRequestMultipartFormNotPreParse(t *testing.T, boundary string, ... function testReadBodyChunked (line 1081) | func testReadBodyChunked(t *testing.T, bodySize int) { function testReadBodyFixedSize (line 1099) | func testReadBodyFixedSize(t *testing.T, bodySize int) { function TestRequestFormFile (line 1113) | func TestRequestFormFile(t *testing.T) { function TestRequest_ContinueReadBodyStream (line 1161) | func TestRequest_ContinueReadBodyStream(t *testing.T) { function TestRequest_Chunked (line 1195) | func TestRequest_Chunked(t *testing.T) { function TestRequest_ReadIncompleteStream (line 1204) | func TestRequest_ReadIncompleteStream(t *testing.T) { function testReadIncompleteStream (line 1217) | func testReadIncompleteStream(t *testing.T, header, body string) { function testReadChunked (line 1235) | func testReadChunked(t *testing.T, header, body string, firstRead, leftB... function testContinueReadBodyStream (line 1262) | func testContinueReadBodyStream(t *testing.T, header, body string, maxBo... function verifyRequestHeader (line 1299) | func verifyRequestHeader(t *testing.T, h *protocol.RequestHeader, expect... function TestRequestReadMultipartFormWithFile (line 1319) | func TestRequestReadMultipartFormWithFile(t *testing.T) { function testRequestMultipartFormBoundary (line 1404) | func testRequestMultipartFormBoundary(t *testing.T, s, boundary string) { function TestStreamNotEnoughData (line 1418) | func TestStreamNotEnoughData(t *testing.T) { function TestRequestBodyStreamWithTrailer (line 1431) | func TestRequestBodyStreamWithTrailer(t *testing.T) { function testRequestBodyStreamWithTrailer (line 1439) | func testRequestBodyStreamWithTrailer(t *testing.T, body []byte, disable... FILE: pkg/protocol/http1/resp/header.go function ReadHeader (line 66) | func ReadHeader(h *protocol.ResponseHeader, r network.Reader) error { function WriteHeader (line 89) | func WriteHeader(h *protocol.ResponseHeader, w network.Writer) error { function ConnectionUpgrade (line 102) | func ConnectionUpgrade(h *protocol.ResponseHeader) bool { function tryRead (line 106) | func tryRead(h *protocol.ResponseHeader, r network.Reader, n int) error { function parseHeaders (line 130) | func parseHeaders(h *protocol.ResponseHeader, buf []byte) (int, error) { function parse (line 217) | func parse(h *protocol.ResponseHeader, buf []byte) (int, error) { function parseFirstLine (line 229) | func parseFirstLine(h *protocol.ResponseHeader, buf []byte) (int, error) { FILE: pkg/protocol/http1/resp/header_test.go function TestResponseHeaderCookie (line 55) | func TestResponseHeaderCookie(t *testing.T) { function equalCookie (line 167) | func equalCookie(c1, c2 *protocol.Cookie) bool { function TestResponseHeaderMultiLineValue (line 186) | func TestResponseHeaderMultiLineValue(t *testing.T) { FILE: pkg/protocol/http1/resp/response.go type ErrBodyStreamWritePanic (line 61) | type ErrBodyStreamWritePanic struct type h1Response (line 65) | type h1Response struct method String (line 74) | func (h1Resp *h1Response) String() string { function GetHTTP1Response (line 88) | func GetHTTP1Response(resp *protocol.Response) fmt.Stringer { function ReadHeaders (line 93) | func ReadHeaders(resp *protocol.Response, r network.Reader) error { function ReadHeaderAndLimitBody (line 109) | func ReadHeaderAndLimitBody(resp *protocol.Response, r network.Reader, m... function ReadRespBody (line 122) | func ReadRespBody(resp *protocol.Response, r network.Reader, maxBodySize... type clientRespStream (line 142) | type clientRespStream struct method ForceClose (line 153) | func (c *clientRespStream) ForceClose() (err error) { method Close (line 170) | func (c *clientRespStream) Close() (err error) { method Read (line 189) | func (c *clientRespStream) Read(p []byte) (n int, err error) { function convertClientRespStream (line 199) | func convertClientRespStream(bs io.Reader, fn func(shouldClose bool) err... function ReadHeaderBodyStream (line 208) | func ReadHeaderBodyStream(resp *protocol.Response, r network.Reader, function ReadRespBodyStream (line 220) | func ReadRespBodyStream(resp *protocol.Response, r network.Reader, function Read (line 252) | func Read(resp *protocol.Response, r network.Reader) error { function Write (line 261) | func Write(resp *protocol.Response, w network.Writer) error { function writeBodyStream (line 287) | func writeBodyStream(resp *protocol.Response, w network.Writer, sendBody... FILE: pkg/protocol/http1/resp/response_test.go type ErroneousBodyStream (line 66) | type ErroneousBodyStream struct method Read (line 97) | func (ebs *ErroneousBodyStream) Read(p []byte) (n int, err error) { method Close (line 104) | func (ebs *ErroneousBodyStream) Close() error { type testReader (line 71) | type testReader struct method Read (line 76) | func (r *testReader) Read(b []byte) (int, error) { function TestResponseBodyStreamErrorOnPanicDuringClose (line 111) | func TestResponseBodyStreamErrorOnPanicDuringClose(t *testing.T) { function TestResponseBodyStreamErrorOnPanicDuringRead (line 132) | func TestResponseBodyStreamErrorOnPanicDuringRead(t *testing.T) { function testResponseReadError (line 153) | func testResponseReadError(t *testing.T, resp *protocol.Response, respon... function testResponseReadSuccess (line 164) | func testResponseReadSuccess(t *testing.T, resp *protocol.Response, resp... function TestResponseReadSuccess (line 180) | func TestResponseReadSuccess(t *testing.T) { function TestResponseReadError (line 229) | func TestResponseReadError(t *testing.T) { function TestResponseImmediateHeaderFlushChunked (line 247) | func TestResponseImmediateHeaderFlushChunked(t *testing.T) { function TestResponseImmediateHeaderFlushFixedLength (line 290) | func TestResponseImmediateHeaderFlushFixedLength(t *testing.T) { function TestResponseImmediateHeaderFlushFixedLengthWithFewerData (line 333) | func TestResponseImmediateHeaderFlushFixedLengthWithFewerData(t *testing... function TestResponseSuccess (line 368) | func TestResponseSuccess(t *testing.T) { function TestResponseReadLimitBody (line 392) | func TestResponseReadLimitBody(t *testing.T) { function TestResponseReadWithoutBody (line 414) | func TestResponseReadWithoutBody(t *testing.T) { function verifyResponseHeader (line 437) | func verifyResponseHeader(t *testing.T, h *protocol.ResponseHeader, expe... function testResponseSuccess (line 456) | func testResponseSuccess(t *testing.T, statusCode int, contentType, serv... function testResponseReadWithoutBody (line 500) | func testResponseReadWithoutBody(t *testing.T, resp *protocol.Response, ... function verifyResponseTrailer (line 522) | func verifyResponseTrailer(t *testing.T, h *protocol.ResponseHeader, exp... function testResponseReadLimitBodyError (line 537) | func testResponseReadLimitBodyError(t *testing.T, s string, maxBodySize ... function testResponseReadLimitBodySuccess (line 549) | func testResponseReadLimitBodySuccess(t *testing.T, s string, maxBodySiz... function TestResponseBodyStreamWithTrailer (line 557) | func TestResponseBodyStreamWithTrailer(t *testing.T) { function testResponseBodyStreamWithTrailer (line 567) | func testResponseBodyStreamWithTrailer(t *testing.T, body []byte, disabl... function TestResponseReadBodyStreamBadReader (line 618) | func TestResponseReadBodyStreamBadReader(t *testing.T) { function TestSetResponseBodyStreamFixedSize (line 639) | func TestSetResponseBodyStreamFixedSize(t *testing.T) { function TestSetResponseBodyStreamChunked (line 647) | func TestSetResponseBodyStreamChunked(t *testing.T) { function testSetResponseBodyStream (line 659) | func testSetResponseBodyStream(t *testing.T, body string) { function testSetResponseBodyStreamChunked (line 690) | func testSetResponseBodyStreamChunked(t *testing.T, body string, trailer... function testResponseReadBodyStreamSuccess (line 731) | func testResponseReadBodyStreamSuccess(t *testing.T, resp *protocol.Resp... function testResponseReadBodyStreamBadTrailer (line 752) | func testResponseReadBodyStreamBadTrailer(t *testing.T, resp *protocol.R... function TestResponseReadBodyStream (line 766) | func TestResponseReadBodyStream(t *testing.T) { function TestResponseReadBodyStreamBadTrailer (line 819) | func TestResponseReadBodyStreamBadTrailer(t *testing.T) { FILE: pkg/protocol/http1/resp/writer.go function init (line 31) | func init() { type chunkedBodyWriter (line 39) | type chunkedBodyWriter struct method Write (line 51) | func (c *chunkedBodyWriter) Write(p []byte) (n int, err error) { method WriteHeader (line 74) | func (c *chunkedBodyWriter) WriteHeader() error { method writeChunk (line 86) | func (c *chunkedBodyWriter) writeChunk(b []byte) error { method Flush (line 93) | func (c *chunkedBodyWriter) Flush() error { method Finalize (line 99) | func (c *chunkedBodyWriter) Finalize() error { method release (line 119) | func (c *chunkedBodyWriter) release() { function NewChunkedBodyWriter (line 129) | func NewChunkedBodyWriter(r *protocol.Response, w network.Writer) networ... FILE: pkg/protocol/http1/resp/writer_test.go function TestNewChunkedBodyWriter (line 29) | func TestNewChunkedBodyWriter(t *testing.T) { function TestNewChunkedBodyWriter_Err (line 54) | func TestNewChunkedBodyWriter_Err(t *testing.T) { FILE: pkg/protocol/http1/server.go function init (line 46) | func init() { constant NextProtoTLS (line 55) | NextProtoTLS = suite.HTTP1 type Option (line 66) | type Option struct type Server (line 87) | type Server struct method getRequestContext (line 94) | func (s Server) getRequestContext() *app.RequestContext { method putRequestContext (line 101) | func (s Server) putRequestContext(ctx *app.RequestContext) { method Serve (line 109) | func (s Server) Serve(c context.Context, conn network.Conn) (err error) { function NewServer (line 444) | func NewServer() *Server { function writeErrorResponse (line 454) | func writeErrorResponse(zw network.Writer, ctx *app.RequestContext, serv... function writeResponse (line 471) | func writeResponse(ctx *app.RequestContext, w network.Writer) error { function defaultErrorHandler (line 485) | func defaultErrorHandler(ctx *app.RequestContext, err error) { type eventStack (line 497) | type eventStack method isEmpty (line 499) | func (e *eventStack) isEmpty() bool { method push (line 503) | func (e *eventStack) push(f func(ti traceinfo.TraceInfo, err error)) { method pop (line 507) | func (e *eventStack) pop() func(ti traceinfo.TraceInfo, err error) { function shouldRecordInTraceError (line 516) | func shouldRecordInTraceError(err error) bool { FILE: pkg/protocol/http1/server_test.go function TestTraceEventCompleted (line 47) | func TestTraceEventCompleted(t *testing.T) { function TestTraceEventReadHeaderError (line 77) | func TestTraceEventReadHeaderError(t *testing.T) { function TestTraceEventReadBodyError (line 106) | func TestTraceEventReadBodyError(t *testing.T) { function TestTraceEventWriteError (line 137) | func TestTraceEventWriteError(t *testing.T) { function TestEventStack (line 171) | func TestEventStack(t *testing.T) { function TestDefaultWriter (line 200) | func TestDefaultWriter(t *testing.T) { function TestServerDisableReqCtxPool (line 222) | func TestServerDisableReqCtxPool(t *testing.T) { function TestServer_RaceDetect (line 262) | func TestServer_RaceDetect(t *testing.T) { function TestHijackResponseWriter (line 281) | func TestHijackResponseWriter(t *testing.T) { function TestHijackHandler (line 314) | func TestHijackHandler(t *testing.T) { function TestKeepAlive (line 341) | func TestKeepAlive(t *testing.T) { function TestExpect100Continue (line 369) | func TestExpect100Continue(t *testing.T) { function TestExpect100ContinueHandler (line 394) | func TestExpect100ContinueHandler(t *testing.T) { type mockController (line 423) | type mockController struct method Append (line 427) | func (m *mockController) Append(col tracer.Tracer) {} method DoStart (line 429) | func (m *mockController) DoStart(ctx context.Context, c *app.RequestCo... method DoFinish (line 433) | func (m *mockController) DoFinish(ctx context.Context, c *app.RequestC... method HasTracer (line 437) | func (m *mockController) HasTracer() bool { return true } method reset (line 439) | func (m *mockController) reset() { m.FinishTimes = 0 } function TestTraceDoFinishTimes (line 441) | func TestTraceDoFinishTimes(t *testing.T) { type mockCore (line 469) | type mockCore struct method IsRunning (line 476) | func (m *mockCore) IsRunning() bool { method GetCtxPool (line 480) | func (m *mockCore) GetCtxPool() *sync.Pool { method ServeHTTP (line 484) | func (m *mockCore) ServeHTTP(c context.Context, ctx *app.RequestContex... method GetTracer (line 490) | func (m *mockCore) GetTracer() tracer.Controller { type mockTraceInfo (line 494) | type mockTraceInfo struct method Reset (line 498) | func (m *mockTraceInfo) Reset() {} type mockErrorWriter (line 500) | type mockErrorWriter struct method Flush (line 504) | func (errorWriter *mockErrorWriter) Flush() error { function TestShouldRecordInTraceError (line 508) | func TestShouldRecordInTraceError(t *testing.T) { function TestServerMaxHeaderBytes (line 518) | func TestServerMaxHeaderBytes(t *testing.T) { function TestDefaultErrorHandlerHeaderTooLarge (line 531) | func TestDefaultErrorHandlerHeaderTooLarge(t *testing.T) { FILE: pkg/protocol/http1/server_timing_test.go function BenchmarkServer_Serve (line 31) | func BenchmarkServer_Serve(b *testing.B) { FILE: pkg/protocol/multipart.go function ReadMultipartForm (line 60) | func ReadMultipartForm(r io.Reader, boundary string, size, maxInMemoryFi... function WriteMultipartForm (line 79) | func WriteMultipartForm(w io.Writer, f *multipart.Form, boundary string)... function MarshalMultipartForm (line 128) | func MarshalMultipartForm(f *multipart.Form, boundary string) ([]byte, e... function WriteMultipartFormFile (line 136) | func WriteMultipartFormFile(w *multipart.Writer, fieldName, fileName str... function CreateMultipartHeader (line 157) | func CreateMultipartHeader(param, fileName, contentType string) textprot... function AddFile (line 175) | func AddFile(w *multipart.Writer, fieldName, path string) error { function ParseMultipartForm (line 184) | func ParseMultipartForm(r io.Reader, request *Request, size, maxInMemory... function SetMultipartFormWithBoundary (line 194) | func SetMultipartFormWithBoundary(req *Request, m *multipart.Form, bound... FILE: pkg/protocol/multipart_test.go function TestWriteMultipartForm (line 55) | func TestWriteMultipartForm(t *testing.T) { function TestParseMultipartForm (line 104) | func TestParseMultipartForm(t *testing.T) { function TestWriteMultipartFormFile (line 141) | func TestWriteMultipartFormFile(t *testing.T) { function TestMarshalMultipartForm (line 226) | func TestMarshalMultipartForm(t *testing.T) { function TestAddFile (line 252) | func TestAddFile(t *testing.T) { function TestCreateMultipartHeader (line 261) | func TestCreateMultipartHeader(t *testing.T) { FILE: pkg/protocol/request.go type noBody (line 81) | type noBody struct method Read (line 83) | func (noBody) Read([]byte) (int, error) { return 0, io.EOF } method Close (line 84) | func (noBody) Close() error { return nil } type Request (line 86) | type Request struct method Options (line 140) | func (req *Request) Options() *config.RequestOptions { method AppendBody (line 150) | func (req *Request) AppendBody(p []byte) { method BodyBuffer (line 156) | func (req *Request) BodyBuffer() *bytebufferpool.ByteBuffer { method MayContinue (line 174) | func (req *Request) MayContinue() bool { method Scheme (line 180) | func (req *Request) Scheme() []byte { method resetSkipHeaderAndConn (line 187) | func (req *Request) resetSkipHeaderAndConn() { method ResetSkipHeader (line 195) | func (req *Request) ResetSkipHeader() { method Reset (line 209) | func (req *Request) Reset() { method IsURIParsed (line 217) | func (req *Request) IsURIParsed() bool { method PostArgString (line 221) | func (req *Request) PostArgString() []byte { method MultipartForm (line 232) | func (req *Request) MultipartForm() (*multipart.Form, error) { method AppendBodyString (line 284) | func (req *Request) AppendBodyString(s string) { method SetRequestURI (line 291) | func (req *Request) SetRequestURI(requestURI string) { method SetMaxKeepBodySize (line 296) | func (req *Request) SetMaxKeepBodySize(n int) { method RequestURI (line 301) | func (req *Request) RequestURI() []byte { method FormFile (line 306) | func (req *Request) FormFile(name string) (*multipart.FileHeader, erro... method SetHost (line 322) | func (req *Request) SetHost(host string) { method Host (line 327) | func (req *Request) Host() []byte { method SetIsTLS (line 333) | func (req *Request) SetIsTLS(isTLS bool) { method SwapBody (line 342) | func (req *Request) SwapBody(body []byte) []byte { method CopyTo (line 364) | func (req *Request) CopyTo(dst *Request) { method CopyToSkipBody (line 378) | func (req *Request) CopyToSkipBody(dst *Request) { method BodyBytes (line 398) | func (req *Request) BodyBytes() []byte { method ResetBody (line 409) | func (req *Request) ResetBody() { method SetBodyRaw (line 426) | func (req *Request) SetBodyRaw(body []byte) { method SetMultipartFormBoundary (line 432) | func (req *Request) SetMultipartFormBoundary(b string) { method MultipartFormBoundary (line 436) | func (req *Request) MultipartFormBoundary() string { method SetBody (line 443) | func (req *Request) SetBody(body []byte) { method SetBodyString (line 450) | func (req *Request) SetBodyString(body string) { method SetQueryString (line 457) | func (req *Request) SetQueryString(queryString string) { method SetFormData (line 462) | func (req *Request) SetFormData(data map[string]string) { method SetFormDataFromValues (line 471) | func (req *Request) SetFormDataFromValues(data url.Values) { method SetFile (line 482) | func (req *Request) SetFile(param, filePath string) { method SetFiles (line 490) | func (req *Request) SetFiles(files map[string]string) { method SetFileReader (line 500) | func (req *Request) SetFileReader(param, fileName string, reader io.Re... method SetMultipartFormData (line 509) | func (req *Request) SetMultipartFormData(data map[string]string) { method MultipartFiles (line 515) | func (req *Request) MultipartFiles() []*File { method SetMultipartField (line 520) | func (req *Request) SetMultipartField(param, fileName, contentType str... method SetMultipartFields (line 530) | func (req *Request) SetMultipartFields(fields ...*MultipartField) { method MultipartFields (line 534) | func (req *Request) MultipartFields() []*MultipartField { method SetBasicAuth (line 539) | func (req *Request) SetBasicAuth(username, password string) { method BasicAuth (line 546) | func (req *Request) BasicAuth() (username, password string, ok bool) { method SetAuthToken (line 586) | func (req *Request) SetAuthToken(token string) { method SetAuthSchemeToken (line 593) | func (req *Request) SetAuthSchemeToken(scheme, token string) { method SetHeader (line 598) | func (req *Request) SetHeader(header, value string) { method SetHeaders (line 603) | func (req *Request) SetHeaders(headers map[string]string) { method SetCookie (line 610) | func (req *Request) SetCookie(key, value string) { method SetCookies (line 615) | func (req *Request) SetCookies(hc map[string]string) { method SetMethod (line 622) | func (req *Request) SetMethod(method string) { method OnlyMultipartForm (line 626) | func (req *Request) OnlyMultipartForm() bool { method HasMultipartForm (line 630) | func (req *Request) HasMultipartForm() bool { method IsBodyStream (line 635) | func (req *Request) IsBodyStream() bool { method BodyStream (line 639) | func (req *Request) BodyStream() io.Reader { method SetBodyStream (line 659) | func (req *Request) SetBodyStream(bodyStream io.Reader, bodySize int) { method ConstructBodyStream (line 665) | func (req *Request) ConstructBodyStream(body *bytebufferpool.ByteBuffe... method BodyWriter (line 671) | func (req *Request) BodyWriter() io.Writer { method PostArgs (line 677) | func (req *Request) PostArgs() *Args { method parsePostArgs (line 682) | func (req *Request) parsePostArgs() { method BodyE (line 694) | func (req *Request) BodyE() ([]byte, error) { method Body (line 721) | func (req *Request) Body() []byte { method BodyWriteTo (line 727) | func (req *Request) BodyWriteTo(w io.Writer) error { method CloseBodyStream (line 741) | func (req *Request) CloseBodyStream() error { method URI (line 755) | func (req *Request) URI() *URI { method ParseURI (line 760) | func (req *Request) ParseURI() { method RemoveMultipartFormFiles (line 771) | func (req *Request) RemoveMultipartFormFiles() { method Method (line 794) | func (req *Request) Method() []byte { method Path (line 799) | func (req *Request) Path() []byte { method QueryString (line 804) | func (req *Request) QueryString() []byte { method SetOptions (line 810) | func (req *Request) SetOptions(opts ...config.RequestOption) { method ConnectionClose (line 815) | func (req *Request) ConnectionClose() bool { method SetConnectionClose (line 820) | func (req *Request) SetConnectionClose() { method ResetWithoutConn (line 824) | func (req *Request) ResetWithoutConn() { type requestBodyWriter (line 116) | type requestBodyWriter struct method Write (line 135) | func (w *requestBodyWriter) Write(p []byte) (int, error) { type File (line 121) | type File struct type MultipartField (line 128) | type MultipartField struct function SwapRequestBody (line 200) | func SwapRequestBody(a, b *Request) { function parseBasicAuth (line 560) | func parseBasicAuth(auth []byte) (username, password string, ok bool) { function AddMultipartFormField (line 783) | func AddMultipartFormField(w *multipart.Writer, mf *MultipartField) error { function AcquireRequest (line 837) | func AcquireRequest() *Request { function ReleaseRequest (line 849) | func ReleaseRequest(req *Request) { function NewRequest (line 865) | func NewRequest(method, url string, body io.Reader) *Request { FILE: pkg/protocol/request_test.go type errorReader (line 62) | type errorReader struct method Read (line 64) | func (er errorReader) Read(p []byte) (int, error) { function TestMultiForm (line 68) | func TestMultiForm(t *testing.T) { function TestRequestBodyWriterWrite (line 75) | func TestRequestBodyWriterWrite(t *testing.T) { function TestRequestScheme (line 81) | func TestRequestScheme(t *testing.T) { function TestRequestHost (line 89) | func TestRequestHost(t *testing.T) { function TestRequestSwapBody (line 95) | func TestRequestSwapBody(t *testing.T) { function TestRequestKnownSizeStreamMultipartFormWithFile (line 120) | func TestRequestKnownSizeStreamMultipartFormWithFile(t *testing.T) { function TestRequestUnknownSizeStreamMultipartFormWithFile (line 203) | func TestRequestUnknownSizeStreamMultipartFormWithFile(t *testing.T) { function TestRequestStreamMultipartFormWithFileGzip (line 281) | func TestRequestStreamMultipartFormWithFileGzip(t *testing.T) { function TestRequestMultipartFormBoundary (line 354) | func TestRequestMultipartFormBoundary(t *testing.T) { function TestRequestSetQueryString (line 360) | func TestRequestSetQueryString(t *testing.T) { function TestRequestSetFormData (line 366) | func TestRequestSetFormData(t *testing.T) { function TestRequestSetFile (line 384) | func TestRequestSetFile(t *testing.T) { function TestRequestSetFileReader (line 396) | func TestRequestSetFileReader(t *testing.T) { function TestRequestSetMultipartFormData (line 402) | func TestRequestSetMultipartFormData(t *testing.T) { function TestRequestSetBasicAuth (line 414) | func TestRequestSetBasicAuth(t *testing.T) { function TestRequestSetAuthToken (line 421) | func TestRequestSetAuthToken(t *testing.T) { function TestRequestSetHeaders (line 433) | func TestRequestSetHeaders(t *testing.T) { function TestRequestSetCookie (line 441) | func TestRequestSetCookie(t *testing.T) { function TestRequestPath (line 452) | func TestRequestPath(t *testing.T) { function TestRequestConnectionClose (line 458) | func TestRequestConnectionClose(t *testing.T) { function TestRequestBodyWriteToPlain (line 465) | func TestRequestBodyWriteToPlain(t *testing.T) { function TestRequestBodyWriteToMultipart (line 476) | func TestRequestBodyWriteToMultipart(t *testing.T) { function TestNewRequest (line 487) | func TestNewRequest(t *testing.T) { function TestRequestResetBody (line 548) | func TestRequestResetBody(t *testing.T) { function TestRequestConstructBodyStream (line 560) | func TestRequestConstructBodyStream(t *testing.T) { function TestRequestPostArgs (line 570) | func TestRequestPostArgs(t *testing.T) { function TestRequestMayContinue (line 586) | func TestRequestMayContinue(t *testing.T) { function TestRequestSwapBodySerial (line 605) | func TestRequestSwapBodySerial(t *testing.T) { function testRequestSwapBody (line 611) | func testRequestSwapBody(t *testing.T) { type getBasicAuthTest (line 659) | type getBasicAuthTest struct function TestRequestBasicAuth (line 664) | func TestRequestBasicAuth(t *testing.T) { function TestNewRequestWithConstParam (line 678) | func TestNewRequestWithConstParam(t *testing.T) { function TestRequestCopyToWithOptions (line 686) | func TestRequestCopyToWithOptions(t *testing.T) { function TestRequestSetMaxKeepBodySize (line 700) | func TestRequestSetMaxKeepBodySize(t *testing.T) { function TestRequestBodyReuse (line 706) | func TestRequestBodyReuse(t *testing.T) { function TestRequestGetBodyAfterGetBodyStream (line 727) | func TestRequestGetBodyAfterGetBodyStream(t *testing.T) { function TestRequestSetOptionsNotOverwrite (line 734) | func TestRequestSetOptionsNotOverwrite(t *testing.T) { type bodyWriterTo (line 747) | type bodyWriterTo interface function testBodyWriteTo (line 752) | func testBodyWriteTo(t *testing.T, bw bodyWriterTo, expectedS string, is... function TestReqSafeCopy (line 775) | func TestReqSafeCopy(t *testing.T) { FILE: pkg/protocol/response.go type Response (line 72) | type Response struct method GetHijackWriter (line 106) | func (resp *Response) GetHijackWriter() network.ExtWriter { method HijackWriter (line 110) | func (resp *Response) HijackWriter(writer network.ExtWriter) { method MustSkipBody (line 123) | func (resp *Response) MustSkipBody() bool { method BodyGunzip (line 132) | func (resp *Response) BodyGunzip() ([]byte, error) { method SetConnectionClose (line 137) | func (resp *Response) SetConnectionClose() { method SetBodyString (line 142) | func (resp *Response) SetBodyString(body string) { method ConstructBodyStream (line 147) | func (resp *Response) ConstructBodyStream(body *bytebufferpool.ByteBuf... method BodyWriter (line 157) | func (resp *Response) BodyWriter() io.Writer { method SetStatusCode (line 163) | func (resp *Response) SetStatusCode(statusCode int) { method SetMaxKeepBodySize (line 167) | func (resp *Response) SetMaxKeepBodySize(n int) { method BodyBytes (line 171) | func (resp *Response) BodyBytes() []byte { method HasBodyBytes (line 181) | func (resp *Response) HasBodyBytes() bool { method CopyToSkipBody (line 185) | func (resp *Response) CopyToSkipBody(dst *Response) { method IsBodyStream (line 194) | func (resp *Response) IsBodyStream() bool { method SetBodyStream (line 209) | func (resp *Response) SetBodyStream(bodyStream io.Reader, bodySize int) { method SetBodyStreamNoReset (line 217) | func (resp *Response) SetBodyStreamNoReset(bodyStream io.Reader, bodyS... method BodyE (line 223) | func (resp *Response) BodyE() ([]byte, error) { method Body (line 239) | func (resp *Response) Body() []byte { method BodyWriteTo (line 245) | func (resp *Response) BodyWriteTo(w io.Writer) error { method CopyTo (line 259) | func (resp *Response) CopyTo(dst *Response) { method Reset (line 280) | func (resp *Response) Reset() { method resetSkipHeader (line 290) | func (resp *Response) resetSkipHeader() { method ResetBody (line 295) | func (resp *Response) ResetBody() { method SetBodyRaw (line 311) | func (resp *Response) SetBodyRaw(body []byte) { method StatusCode (line 317) | func (resp *Response) StatusCode() int { method SetBody (line 324) | func (resp *Response) SetBody(body []byte) { method BodyStream (line 343) | func (resp *Response) BodyStream() io.Reader { method Hijack (line 357) | func (resp *Response) Hijack() (network.Conn, error) { method AppendBody (line 372) | func (resp *Response) AppendBody(p []byte) { method AppendBodyString (line 382) | func (resp *Response) AppendBodyString(s string) { method ConnectionClose (line 392) | func (resp *Response) ConnectionClose() bool { method CloseBodyStream (line 400) | func (resp *Response) CloseBodyStream() error { method BodyBuffer (line 412) | func (resp *Response) BodyBuffer() *bytebufferpool.ByteBuffer { method RemoteAddr (line 431) | func (resp *Response) RemoteAddr() net.Addr { method LocalAddr (line 437) | func (resp *Response) LocalAddr() net.Addr { method ParseNetAddr (line 441) | func (resp *Response) ParseNetAddr(conn network.Conn) { type responseBodyWriter (line 114) | type responseBodyWriter struct method Write (line 118) | func (w *responseBodyWriter) Write(p []byte) (int, error) { function SwapResponseBody (line 273) | func SwapResponseBody(a, b *Response) { function gunzipData (line 420) | func gunzipData(p []byte) ([]byte, error) { function AcquireResponse (line 451) | func AcquireResponse() *Response { function ReleaseResponse (line 463) | func ReleaseResponse(resp *Response) { FILE: pkg/protocol/response_test.go function TestResponseCopyTo (line 60) | func TestResponseCopyTo(t *testing.T) { function TestResponseBodyStreamMultipleBodyCalls (line 76) | func TestResponseBodyStreamMultipleBodyCalls(t *testing.T) { function TestResponseBodyWriteToPlain (line 97) | func TestResponseBodyWriteToPlain(t *testing.T) { function TestResponseBodyWriteToStream (line 108) | func TestResponseBodyWriteToStream(t *testing.T) { function TestResponseBodyWriter (line 126) | func TestResponseBodyWriter(t *testing.T) { function TestResponseRawBodySet (line 139) | func TestResponseRawBodySet(t *testing.T) { function TestResponseRawBodyReset (line 151) | func TestResponseRawBodyReset(t *testing.T) { function TestResponseResetBody (line 163) | func TestResponseResetBody(t *testing.T) { function TestResponseBodyReuse (line 175) | func TestResponseBodyReuse(t *testing.T) { function testResponseCopyTo (line 195) | func testResponseCopyTo(t *testing.T, src *Response) { function TestResponseMustSkipBody (line 204) | func TestResponseMustSkipBody(t *testing.T) { function TestResponseBodyGunzip (line 215) | func TestResponseBodyGunzip(t *testing.T) { function TestResponseSwapResponseBody (line 227) | func TestResponseSwapResponseBody(t *testing.T) { function TestResponseAcquireResponse (line 247) | func TestResponseAcquireResponse(t *testing.T) { type closeBuffer (line 262) | type closeBuffer struct method Close (line 266) | func (b *closeBuffer) Close() error { function TestSetBodyStreamNoReset (line 271) | func TestSetBodyStreamNoReset(t *testing.T) { function TestRespSafeCopy (line 289) | func TestRespSafeCopy(t *testing.T) { function TestResponse_HijackWriter (line 306) | func TestResponse_HijackWriter(t *testing.T) { type HijackerFunc (line 329) | type HijackerFunc method Read (line 331) | func (h HijackerFunc) Read(_ []byte) (int, error) { return 0, error... method Hijack (line 332) | func (h HijackerFunc) Hijack() (network.Conn, error) { return h() } function TestResponse_Hijack (line 334) | func TestResponse_Hijack(t *testing.T) { FILE: pkg/protocol/server.go type Server (line 25) | type Server interface type StreamServer (line 29) | type StreamServer interface FILE: pkg/protocol/sse/event.go constant fieldID (line 26) | fieldID = 1 << iota constant fieldType (line 27) | fieldType constant fieldData (line 28) | fieldData constant fieldRetry (line 29) | fieldRetry type Event (line 33) | type Event struct method Release (line 60) | func (e *Event) Release() { method String (line 65) | func (e *Event) String() string { method Reset (line 70) | func (e *Event) Reset() { method Clone (line 81) | func (e *Event) Clone() *Event { method IsSetID (line 94) | func (e *Event) IsSetID() bool { method IsSetType (line 101) | func (e *Event) IsSetType() bool { method IsSetRetry (line 108) | func (e *Event) IsSetRetry() bool { method IsSetData (line 115) | func (e *Event) IsSetData() bool { method SetID (line 120) | func (e *Event) SetID(id string) { method SetEvent (line 126) | func (e *Event) SetEvent(eventType string) { method SetData (line 132) | func (e *Event) SetData(data []byte) { method SetDataString (line 138) | func (e *Event) SetDataString(data string) { method AppendData (line 144) | func (e *Event) AppendData(data []byte) { method AppendDataString (line 150) | func (e *Event) AppendDataString(data string) { method SetRetry (line 156) | func (e *Event) SetRetry(retry time.Duration) { function NewEvent (line 50) | func NewEvent() *Event { FILE: pkg/protocol/sse/event_test.go function TestEvent_SetAndIsSet (line 26) | func TestEvent_SetAndIsSet(t *testing.T) { function TestEvent_AppendData (line 64) | func TestEvent_AppendData(t *testing.T) { function TestEvent_Reset (line 78) | func TestEvent_Reset(t *testing.T) { function TestEvent_Clone (line 106) | func TestEvent_Clone(t *testing.T) { function TestEvent_PoolAndRelease (line 125) | func TestEvent_PoolAndRelease(t *testing.T) { FILE: pkg/protocol/sse/example_test.go function Example (line 33) | func Example() { FILE: pkg/protocol/sse/reader.go type Reader (line 39) | type Reader struct method SetMaxBufferSize (line 72) | func (r *Reader) SetMaxBufferSize(max int) { method ForEach (line 93) | func (r *Reader) ForEach(ctx context.Context, f func(e *Event) error) ... method LastEventID (line 132) | func (r *Reader) LastEventID() string { method onEventRead (line 136) | func (r *Reader) onEventRead(e *Event) { method Read (line 149) | func (r *Reader) Read(e *Event) error { method Close (line 228) | func (r *Reader) Close() error { function NewReader (line 51) | func NewReader(resp *protocol.Response) (*Reader, error) { type forceCloseIf (line 78) | type forceCloseIf interface FILE: pkg/protocol/sse/reader_test.go type mockBodyStream (line 34) | type mockBodyStream struct method Read (line 39) | func (m *mockBodyStream) Read(p []byte) (n int, err error) { method Close (line 43) | func (m *mockBodyStream) Close() error { function TestNewReader (line 48) | func TestNewReader(t *testing.T) { function TestReader_ReadEvent (line 87) | func TestReader_ReadEvent(t *testing.T) { function TestReader_ReadEvent_WithBodyStream (line 246) | func TestReader_ReadEvent_WithBodyStream(t *testing.T) { type mockReadForceClose (line 283) | type mockReadForceClose struct method Read (line 288) | func (m *mockReadForceClose) Read(b []byte) (int, error) { method ForceClose (line 292) | func (m *mockReadForceClose) ForceClose() error { function TestReader_ReadEvent_Error (line 296) | func TestReader_ReadEvent_Error(t *testing.T) { function TestReader_ForEach (line 316) | func TestReader_ForEach(t *testing.T) { function TestReader_SetMaxBufferSize (line 348) | func TestReader_SetMaxBufferSize(t *testing.T) { FILE: pkg/protocol/sse/utils.go constant LastEventIDHeader (line 26) | LastEventIDHeader = "Last-Event-ID" function GetLastEventID (line 29) | func GetLastEventID(req *protocol.Request) string { function SetLastEventID (line 34) | func SetLastEventID(req *protocol.Request, id string) { function AddAcceptMIME (line 42) | func AddAcceptMIME(req *protocol.Request) { function sseEventType (line 56) | func sseEventType(v []byte) string { function hasCRLF (line 64) | func hasCRLF(s string) bool { function scanEOL (line 76) | func scanEOL(data []byte, atEOF bool) (advance int, token []byte, err er... FILE: pkg/protocol/sse/utils_test.go function TestSetGetLastEventID (line 27) | func TestSetGetLastEventID(t *testing.T) { function TestAddAcceptMIME (line 35) | func TestAddAcceptMIME(t *testing.T) { function TestHasCRLF (line 64) | func TestHasCRLF(t *testing.T) { function TestSSEEventType (line 74) | func TestSSEEventType(t *testing.T) { function TestScanEOL (line 79) | func TestScanEOL(t *testing.T) { FILE: pkg/protocol/sse/writer.go type Writer (line 34) | type Writer struct method WriteEvent (line 64) | func (w *Writer) WriteEvent(id, eventType string, data []byte) error { method WriteKeepAlive (line 75) | func (w *Writer) WriteKeepAlive() error { method WriteComment (line 83) | func (w *Writer) WriteComment(s string) error { method Write (line 110) | func (w *Writer) Write(e *Event) error { method Close (line 160) | func (w *Writer) Close() error { function NewWriter (line 41) | func NewWriter(c *app.RequestContext) *Writer { FILE: pkg/protocol/sse/writer_test.go type mw (line 30) | type mw struct method Write (line 38) | func (m *mw) Write(p []byte) (n int, err error) { method Flush (line 45) | func (m *mw) Flush() error { method String (line 50) | func (m *mw) String() string { method Finalize (line 54) | func (m *mw) Finalize() error { function TestWriter_WriteEvent (line 58) | func TestWriter_WriteEvent(t *testing.T) { function TestWriter_Write (line 119) | func TestWriter_Write(t *testing.T) { function TestNewWriter (line 196) | func TestNewWriter(t *testing.T) { function TestWriter_WriteComment (line 204) | func TestWriter_WriteComment(t *testing.T) { function TestWriter_Close (line 229) | func TestWriter_Close(t *testing.T) { FILE: pkg/protocol/suite/client.go type ClientFactory (line 21) | type ClientFactory interface FILE: pkg/protocol/suite/server.go constant HTTP1 (line 33) | HTTP1 = "http/1.1" constant HTTP2 (line 34) | HTTP2 = "h2" constant HTTP3Draft29 (line 36) | HTTP3Draft29 = "h3-29" constant HTTP3 (line 38) | HTTP3 = "h3" type Core (line 42) | type Core interface type ServerFactory (line 55) | type ServerFactory interface type StreamServerFactory (line 59) | type StreamServerFactory interface type Config (line 63) | type Config struct method SetAltHeader (line 90) | func (c *Config) SetAltHeader(target, altHeader string) { method Add (line 99) | func (c *Config) Add(protocol string, factory interface{}) { method Get (line 116) | func (c *Config) Get(name string) ServerFactory { method Delete (line 120) | func (c *Config) Delete(protocol string) { method Load (line 124) | func (c *Config) Load(core Core, protocol string) (server protocol.Ser... method LoadAll (line 134) | func (c *Config) LoadAll(core Core) (serverMap ServerMap, streamServer... type ServerMap (line 69) | type ServerMap type StreamServerMap (line 71) | type StreamServerMap type altServerConfig (line 73) | type altServerConfig struct type coreWrapper (line 78) | type coreWrapper struct method ServeHTTP (line 83) | func (c *coreWrapper) ServeHTTP(ctx context.Context, reqCtx *app.Reque... function New (line 167) | func New() *Config { FILE: pkg/protocol/trailer.go type Trailer (line 28) | type Trailer struct method Get (line 35) | func (t *Trailer) Get(key string) string { method Peek (line 43) | func (t *Trailer) Peek(key string) []byte { method Del (line 50) | func (t *Trailer) Del(key string) { method VisitAll (line 57) | func (t *Trailer) VisitAll(f func(key, value []byte)) { method Set (line 64) | func (t *Trailer) Set(key, value string) error { method Add (line 75) | func (t *Trailer) Add(key, value string) error { method addArgBytes (line 80) | func (t *Trailer) addArgBytes(key, value []byte, noValue bool) error { method setArgBytes (line 88) | func (t *Trailer) setArgBytes(key, value []byte, noValue bool) error { method UpdateArgBytes (line 96) | func (t *Trailer) UpdateArgBytes(key, value []byte) error { method GetTrailers (line 105) | func (t *Trailer) GetTrailers() []argsKV { method Empty (line 109) | func (t *Trailer) Empty() bool { method GetBytes (line 114) | func (t *Trailer) GetBytes() []byte { method ResetSkipNormalize (line 126) | func (t *Trailer) ResetSkipNormalize() { method Reset (line 130) | func (t *Trailer) Reset() { method DisableNormalizing (line 135) | func (t *Trailer) DisableNormalizing() { method IsDisableNormalizing (line 139) | func (t *Trailer) IsDisableNormalizing() bool { method CopyTo (line 144) | func (t *Trailer) CopyTo(dst *Trailer) { method SetTrailers (line 151) | func (t *Trailer) SetTrailers(trailers []byte) (err error) { method Header (line 173) | func (t *Trailer) Header() []byte { method AppendBytes (line 178) | func (t *Trailer) AppendBytes(dst []byte) []byte { function IsBadTrailer (line 188) | func IsBadTrailer(key []byte) bool { FILE: pkg/protocol/trailer_test.go function TestTrailerAdd (line 29) | func TestTrailerAdd(t *testing.T) { function TestHeaderTrailerSet (line 39) | func TestHeaderTrailerSet(t *testing.T) { function TestTrailerAddError (line 75) | func TestTrailerAddError(t *testing.T) { function TestTrailerDel (line 81) | func TestTrailerDel(t *testing.T) { function TestTrailerSet (line 92) | func TestTrailerSet(t *testing.T) { function TestTrailerGet (line 102) | func TestTrailerGet(t *testing.T) { function TestTrailerUpdateArgBytes (line 110) | func TestTrailerUpdateArgBytes(t *testing.T) { function TestTrailerEmpty (line 121) | func TestTrailerEmpty(t *testing.T) { function TestTrailerVisitAll (line 128) | func TestTrailerVisitAll(t *testing.T) { function TestIsBadTrailer (line 142) | func TestIsBadTrailer(t *testing.T) { FILE: pkg/protocol/uri.go function AcquireURI (line 58) | func AcquireURI() *URI { function ReleaseURI (line 66) | func ReleaseURI(u *URI) { type URI (line 77) | type URI struct method CopyTo (line 114) | func (u *URI) CopyTo(dst *URI) { method QueryArgs (line 134) | func (u *URI) QueryArgs() *Args { method parseQueryArgs (line 139) | func (u *URI) parseQueryArgs() { method Hash (line 150) | func (u *URI) Hash() []byte { method SetHash (line 155) | func (u *URI) SetHash(hash string) { method SetHashBytes (line 160) | func (u *URI) SetHashBytes(hash []byte) { method Username (line 165) | func (u *URI) Username() []byte { method SetUsername (line 170) | func (u *URI) SetUsername(username string) { method SetUsernameBytes (line 175) | func (u *URI) SetUsernameBytes(username []byte) { method Password (line 180) | func (u *URI) Password() []byte { method SetPassword (line 185) | func (u *URI) SetPassword(password string) { method SetPasswordBytes (line 190) | func (u *URI) SetPasswordBytes(password []byte) { method QueryString (line 198) | func (u *URI) QueryString() []byte { method SetQueryString (line 203) | func (u *URI) SetQueryString(queryString string) { method SetQueryStringBytes (line 209) | func (u *URI) SetQueryStringBytes(queryString []byte) { method Path (line 220) | func (u *URI) Path() []byte { method SetPath (line 229) | func (u *URI) SetPath(path string) { method String (line 235) | func (u *URI) String() string { method SetPathBytes (line 240) | func (u *URI) SetPathBytes(path []byte) { method PathOriginal (line 248) | func (u *URI) PathOriginal() []byte { method Scheme (line 257) | func (u *URI) Scheme() []byte { method SetScheme (line 266) | func (u *URI) SetScheme(scheme string) { method SetSchemeBytes (line 272) | func (u *URI) SetSchemeBytes(scheme []byte) { method Reset (line 278) | func (u *URI) Reset() { method Host (line 302) | func (u *URI) Host() []byte { method SetHost (line 307) | func (u *URI) SetHost(host string) { method SetHostBytes (line 313) | func (u *URI) SetHostBytes(host []byte) { method LastPathSegment (line 325) | func (u *URI) LastPathSegment() []byte { method Update (line 346) | func (u *URI) Update(newURI string) { method UpdateBytes (line 362) | func (u *URI) UpdateBytes(newURI []byte) { method Parse (line 372) | func (u *URI) Parse(host, uri []byte) { method parse (line 400) | func (u *URI) parse(host, uri []byte, isTLS bool) { method updateBytes (line 595) | func (u *URI) updateBytes(newURI, buf []byte) []byte { method AppendBytes (line 652) | func (u *URI) AppendBytes(dst []byte) []byte { method RequestURI (line 663) | func (u *URI) RequestURI() []byte { method appendSchemeHost (line 681) | func (u *URI) appendSchemeHost(dst []byte) []byte { method FullURI (line 688) | func (u *URI) FullURI() []byte { type argsKV (line 99) | type argsKV struct method GetKey (line 105) | func (kv *argsKV) GetKey() []byte { method GetValue (line 109) | func (kv *argsKV) GetValue() []byte { function getScheme (line 379) | func getScheme(rawURL []byte) (scheme, path []byte) { function stringContainsCTLByte (line 471) | func stringContainsCTLByte(s []byte) bool { function splitHostURI (line 481) | func splitHostURI(host, uri []byte) ([]byte, []byte, []byte) { function normalizePath (line 501) | func normalizePath(dst, src []byte) []byte { function copyArgs (line 573) | func copyArgs(dst, src []argsKV) []argsKV { function ParseURI (line 693) | func ParseURI(uriStr string) *URI { type Proxy (line 700) | type Proxy function ProxyURI (line 702) | func ProxyURI(fixedURI *URI) Proxy { FILE: pkg/protocol/uri_test.go function TestURI_Username (line 54) | func TestURI_Username(t *testing.T) { function TestURI_Password (line 80) | func TestURI_Password(t *testing.T) { function TestURI_Hash (line 100) | func TestURI_Hash(t *testing.T) { function TestURI_QueryString (line 115) | func TestURI_QueryString(t *testing.T) { function TestURI_Path (line 130) | func TestURI_Path(t *testing.T) { function TestURI_Scheme (line 155) | func TestURI_Scheme(t *testing.T) { function TestURI_Host (line 175) | func TestURI_Host(t *testing.T) { function TestURI_PathOriginal (line 195) | func TestURI_PathOriginal(t *testing.T) { function TestArgsKV_Get (line 203) | func TestArgsKV_Get(t *testing.T) { function TestURICopyToQueryArgs (line 215) | func TestURICopyToQueryArgs(t *testing.T) { function TestURICopyTo (line 232) | func TestURICopyTo(t *testing.T) { function TestURILastPathSegment (line 249) | func TestURILastPathSegment(t *testing.T) { function testURILastPathSegment (line 259) | func testURILastPathSegment(t *testing.T, path, expectedSegment string) { function TestURIPathEscape (line 266) | func TestURIPathEscape(t *testing.T) { function TestURIUpdate (line 274) | func TestURIUpdate(t *testing.T) { function testURIUpdate (line 301) | func testURIUpdate(t *testing.T, base, update, result string) { function testURIPathEscape (line 309) | func testURIPathEscape(t *testing.T, path, expectedRequestURI string) { function TestDelArgs (line 316) | func TestDelArgs(t *testing.T) { function TestURIFullURI (line 329) | func TestURIFullURI(t *testing.T) { function testURIFullURI (line 358) | func testURIFullURI(t *testing.T, scheme, host, path, hash string, args ... function TestParsePathWindows (line 371) | func TestParsePathWindows(t *testing.T) { function TestURIPathNormalize (line 379) | func TestURIPathNormalize(t *testing.T) { function testURIPathNormalize (line 433) | func testURIPathNormalize(t *testing.T, u *URI, requestURI, expectedPath... function testParsePathWindows (line 440) | func testParsePathWindows(t *testing.T, path, expectedPath string) { function TestParseHostWithStr (line 449) | func TestParseHostWithStr(t *testing.T) { function testParseHostWithStr (line 460) | func testParseHostWithStr(t *testing.T, host, expectUsername, expectPass... function TestParseURI (line 467) | func TestParseURI(t *testing.T) { function TestSplitHostURI (line 473) | func TestSplitHostURI(t *testing.T) { FILE: pkg/protocol/uri_timing_test.go function BenchmarkURIParsePath (line 48) | func BenchmarkURIParsePath(b *testing.B) { function BenchmarkURIParsePathQueryString (line 52) | func BenchmarkURIParsePathQueryString(b *testing.B) { function BenchmarkURIParsePathQueryStringHash (line 56) | func BenchmarkURIParsePathQueryStringHash(b *testing.B) { function BenchmarkURIParseHostname (line 60) | func BenchmarkURIParseHostname(b *testing.B) { function BenchmarkURIFullURI (line 64) | func BenchmarkURIFullURI(b *testing.B) { function benchmarkURIParse (line 81) | func benchmarkURIParse(b *testing.B, host, uri string) { FILE: pkg/protocol/uri_unix.go function addLeadingSlash (line 48) | func addLeadingSlash(dst, src []byte) []byte { function checkSchemeWhenCharIsColon (line 59) | func checkSchemeWhenCharIsColon(i int, rawURL []byte) (scheme, path []by... FILE: pkg/protocol/uri_unix_test.go function TestGetScheme (line 27) | func TestGetScheme(t *testing.T) { FILE: pkg/protocol/uri_windows.go function addLeadingSlash (line 48) | func addLeadingSlash(dst, src []byte) []byte { function checkSchemeWhenCharIsColon (line 61) | func checkSchemeWhenCharIsColon(i int, rawURL []byte) (scheme, path []by... FILE: pkg/protocol/uri_windows_test.go function TestURIPathNormalizeIssue86 (line 23) | func TestURIPathNormalizeIssue86(t *testing.T) { function TestGetScheme (line 34) | func TestGetScheme(t *testing.T) { FILE: pkg/route/consts/const.go constant AbortIndex (line 21) | AbortIndex int8 = math.MaxInt8 / 2 FILE: pkg/route/engine.go constant unknownTransporterName (line 82) | unknownTransporterName = "unknown" type hijackConn (line 99) | type hijackConn struct method Close (line 420) | func (c *hijackConn) Close() error { type CtxCallback (line 104) | type CtxCallback type CtxErrCallback (line 106) | type CtxErrCallback type RouteInfo (line 109) | type RouteInfo struct type RoutesInfo (line 117) | type RoutesInfo type Engine (line 119) | type Engine struct method IsTraceEnable (line 206) | func (engine *Engine) IsTraceEnable() bool { method GetCtxPool (line 210) | func (engine *Engine) GetCtxPool() *sync.Pool { method GetOptions (line 214) | func (engine *Engine) GetOptions() *config.Options { method GetTransporterName (line 224) | func (engine *Engine) GetTransporterName() (tName string) { method IsStreamRequestBody (line 257) | func (engine *Engine) IsStreamRequestBody() bool { method IsRunning (line 261) | func (engine *Engine) IsRunning() bool { method HijackConnHandle (line 276) | func (engine *Engine) HijackConnHandle(c network.Conn, h app.HijackHan... method GetTracer (line 280) | func (engine *Engine) GetTracer() tracer.Controller { method NewContext (line 295) | func (engine *Engine) NewContext() *app.RequestContext { method Shutdown (line 307) | func (engine *Engine) Shutdown(ctx context.Context) (err error) { method executeOnShutdownHooks (line 354) | func (engine *Engine) executeOnShutdownHooks(ctx context.Context) { method Run (line 366) | func (engine *Engine) Run() (err error) { method Init (line 387) | func (engine *Engine) Init() error { method alpnEnable (line 411) | func (engine *Engine) alpnEnable() bool { method listenAndServe (line 415) | func (engine *Engine) listenAndServe() error { method getNextProto (line 432) | func (engine *Engine) getNextProto(conn network.Conn) (proto string, e... method onData (line 447) | func (engine *Engine) onData(c context.Context, conn interface{}) (err... method Close (line 484) | func (engine *Engine) Close() error { method GetServerName (line 491) | func (engine *Engine) GetServerName() []byte { method Serve (line 506) | func (engine *Engine) Serve(c context.Context, conn network.Conn) (err... method ServeStream (line 552) | func (engine *Engine) ServeStream(ctx context.Context, conn network.St... method initBinderAndValidator (line 569) | func (engine *Engine) initBinderAndValidator(opt *config.Options) { method initValidatorFunc (line 585) | func (engine *Engine) initValidatorFunc(opt *config.Options) binding.V... method initCustomBinder (line 617) | func (engine *Engine) initCustomBinder(customBinder interface{}) { method initDefaultBinder (line 626) | func (engine *Engine) initDefaultBinder(bindConfig interface{}, vf bin... method addRoute (line 705) | func (engine *Engine) addRoute(method, path string, handlers app.Handl... method PrintRoute (line 730) | func (engine *Engine) PrintRoute(method string) { method recv (line 745) | func (engine *Engine) recv(ctx *app.RequestContext) { method ServeHTTP (line 752) | func (engine *Engine) ServeHTTP(c context.Context, ctx *app.RequestCon... method allocateContext (line 835) | func (engine *Engine) allocateContext() *app.RequestContext { method NoRoute (line 903) | func (engine *Engine) NoRoute(handlers ...app.HandlerFunc) { method NoMethod (line 909) | func (engine *Engine) NoMethod(handlers ...app.HandlerFunc) { method rebuild404Handlers (line 914) | func (engine *Engine) rebuild404Handlers() { method rebuild405Handlers (line 918) | func (engine *Engine) rebuild405Handlers() { method Use (line 926) | func (engine *Engine) Use(middleware ...app.HandlerFunc) IRoutes { method LoadHTMLGlob (line 935) | func (engine *Engine) LoadHTMLGlob(pattern string) { method LoadHTMLFiles (line 956) | func (engine *Engine) LoadHTMLFiles(files ...string) { method SetHTMLTemplate (line 971) | func (engine *Engine) SetHTMLTemplate(tmpl *template.Template) { method SetAutoReloadHTMLTemplate (line 976) | func (engine *Engine) SetAutoReloadHTMLTemplate(tmpl *template.Templat... method SetFuncMap (line 987) | func (engine *Engine) SetFuncMap(funcMap template.FuncMap) { method SetClientIPFunc (line 991) | func (engine *Engine) SetClientIPFunc(f app.ClientIP) { method SetFormValueFunc (line 995) | func (engine *Engine) SetFormValueFunc(f app.FormValueFunc) { method Delims (line 1000) | func (engine *Engine) Delims(left, right string) *Engine { method acquireHijackConn (line 1005) | func (engine *Engine) acquireHijackConn(c network.Conn) *hijackConn { method releaseHijackConn (line 1024) | func (engine *Engine) releaseHijackConn(hjc *hijackConn) { method hijackConnHandler (line 1032) | func (engine *Engine) hijackConnHandler(c network.Conn, h app.HijackHa... method Routes (line 1044) | func (engine *Engine) Routes() (routes RoutesInfo) { method AddProtocol (line 1052) | func (engine *Engine) AddProtocol(protocol string, factory interface{}) { method SetAltHeader (line 1057) | func (engine *Engine) SetAltHeader(targetProtocol, altHeaderValue stri... method HasServer (line 1061) | func (engine *Engine) HasServer(name string) bool { method MarkAsRunning (line 1133) | func (engine *Engine) MarkAsRunning() (err error) { function SetTransporter (line 220) | func SetTransporter(transporter func(options *config.Options) network.Tr... function getTransporterName (line 228) | func getTransporterName(transporter network.Transporter) (tName string) { function GetTransporterName (line 242) | func GetTransporterName() (tName string) { constant _ (line 285) | _ uint32 = iota constant statusInitialized (line 286) | statusInitialized constant statusRunning (line 287) | statusRunning constant statusShutdown (line 288) | statusShutdown constant statusClosed (line 289) | statusClosed function logError (line 457) | func logError(conn network.Conn, err error) { function NewEngine (line 638) | func NewEngine(opt *config.Options) *Engine { function initTrace (line 678) | func initTrace(engine *Engine) stats.Level { function debugPrintRoute (line 696) | func debugPrintRoute(httpMethod, absolutePath string, handlers app.Handl... function printNode (line 736) | func printNode(node *node, level int) { function serveError (line 844) | func serveError(c context.Context, ctx *app.RequestContext, code int, de... function trailingSlashURL (line 857) | func trailingSlashURL(ts string) string { function redirectTrailingSlash (line 865) | func redirectTrailingSlash(c *app.RequestContext) { function redirectRequest (line 883) | func redirectRequest(c *app.RequestContext) { function redirectFixedPath (line 892) | func redirectFixedPath(c *app.RequestContext, root *node, trailingSlash ... function iterate (line 1066) | func iterate(method string, routes RoutesInfo, root *node) RoutesInfo { function newHttp1OptionFromEngine (line 1092) | func newHttp1OptionFromEngine(engine *Engine) *http1.Option { function versionToALNP (line 1121) | func versionToALNP(v uint32) string { FILE: pkg/route/engine_test.go function TestNew_Engine (line 73) | func TestNew_Engine(t *testing.T) { function TestNew_Engine_WithTransporter (line 83) | func TestNew_Engine_WithTransporter(t *testing.T) { function TestGetTransporterName (line 96) | func TestGetTransporterName(t *testing.T) { function TestEngineUnescape (line 101) | func TestEngineUnescape(t *testing.T) { function TestEngineUnescapeRaw (line 137) | func TestEngineUnescapeRaw(t *testing.T) { function TestConnectionClose (line 184) | func TestConnectionClose(t *testing.T) { function TestConnectionClose01 (line 196) | func TestConnectionClose01(t *testing.T) { function TestIdleTimeout (line 209) | func TestIdleTimeout(t *testing.T) { function TestIdleTimeout01 (line 239) | func TestIdleTimeout01(t *testing.T) { function TestIdleTimeout03 (line 267) | func TestIdleTimeout03(t *testing.T) { function TestEngine_Routes (line 300) | func TestEngine_Routes(t *testing.T) { function handlerTest1 (line 377) | func handlerTest1(c context.Context, ctx *app.RequestContext) {} function handlerTest2 (line 379) | func handlerTest2(c context.Context, ctx *app.RequestContext) {} function assertRoutePresent (line 381) | func assertRoutePresent(t *testing.T, gets RoutesInfo, want RouteInfo) { function TestGetNextProto (line 391) | func TestGetNextProto(t *testing.T) { function formatAsDate (line 403) | func formatAsDate(t time.Time) string { function TestRenderHtml (line 408) | func TestRenderHtml(t *testing.T) { function TestTransporterName (line 427) | func TestTransporterName(t *testing.T) { function newMockTransporter (line 435) | func newMockTransporter(options *config.Options) network.Transporter { type mockTransporter (line 439) | type mockTransporter struct method ListenAndServe (line 441) | func (m *mockTransporter) ListenAndServe(onData network.OnData) (err e... method Close (line 445) | func (m *mockTransporter) Close() error { method Shutdown (line 449) | func (m *mockTransporter) Shutdown(ctx context.Context) error { function TestRenderHtmlOfGlobWithAutoRender (line 453) | func TestRenderHtmlOfGlobWithAutoRender(t *testing.T) { function TestSetClientIPAndSetFormValue (line 474) | func TestSetClientIPAndSetFormValue(t *testing.T) { function TestRenderHtmlOfFilesWithAutoRender (line 491) | func TestRenderHtmlOfFilesWithAutoRender(t *testing.T) { function TestSetEngineRun (line 512) | func TestSetEngineRun(t *testing.T) { type mockConn (line 520) | type mockConn struct method SetWriteTimeout (line 522) | func (m *mockConn) SetWriteTimeout(t time.Duration) error { method ReadBinary (line 527) | func (m *mockConn) ReadBinary(n int) (p []byte, err error) { method Handshake (line 531) | func (m *mockConn) Handshake() error { method ConnectionState (line 535) | func (m *mockConn) ConnectionState() tls.ConnectionState { method SetReadTimeout (line 541) | func (m *mockConn) SetReadTimeout(t time.Duration) error { method Read (line 545) | func (m *mockConn) Read(b []byte) (n int, err error) { method Write (line 549) | func (m *mockConn) Write(b []byte) (n int, err error) { method Close (line 553) | func (m *mockConn) Close() error { method LocalAddr (line 557) | func (m *mockConn) LocalAddr() net.Addr { method RemoteAddr (line 561) | func (m *mockConn) RemoteAddr() net.Addr { method SetDeadline (line 569) | func (m *mockConn) SetDeadline(t time.Time) error { method SetReadDeadline (line 573) | func (m *mockConn) SetReadDeadline(t time.Time) error { method SetWriteDeadline (line 577) | func (m *mockConn) SetWriteDeadline(t time.Time) error { method Release (line 581) | func (m *mockConn) Release() error { method Peek (line 585) | func (m *mockConn) Peek(i int) ([]byte, error) { method Skip (line 589) | func (m *mockConn) Skip(n int) error { method ReadByte (line 593) | func (m *mockConn) ReadByte() (byte, error) { method Next (line 597) | func (m *mockConn) Next(i int) ([]byte, error) { method Len (line 601) | func (m *mockConn) Len() int { method Malloc (line 605) | func (m *mockConn) Malloc(n int) (buf []byte, err error) { method WriteBinary (line 609) | func (m *mockConn) WriteBinary(b []byte) (n int, err error) { method Flush (line 613) | func (m *mockConn) Flush() error { type fakeTransporter (line 617) | type fakeTransporter struct method Close (line 619) | func (f *fakeTransporter) Close() error { method Shutdown (line 624) | func (f *fakeTransporter) Shutdown(ctx context.Context) error { method ListenAndServe (line 629) | func (f *fakeTransporter) ListenAndServe(onData network.OnData) error { type mockNonValidator (line 634) | type mockNonValidator struct method ValidateStruct (line 636) | func (m *mockNonValidator) ValidateStruct(interface{}) error { function TestInitBinderAndValidator (line 640) | func TestInitBinderAndValidator(t *testing.T) { function TestInitValidatorPanic (line 662) | func TestInitValidatorPanic(t *testing.T) { function TestBindConfig (line 676) | func TestBindConfig(t *testing.T) { type ValidateError (line 709) | type ValidateError struct method Error (line 714) | func (e *ValidateError) Error() string { function TestValidateConfigSetErrorFactory (line 721) | func TestValidateConfigSetErrorFactory(t *testing.T) { function TestValidateConfigSetErrorFactoryWithBindConfig (line 751) | func TestValidateConfigSetErrorFactoryWithBindConfig(t *testing.T) { function TestCustomBinder (line 782) | func TestCustomBinder(t *testing.T) { function TestValidateRegValidateFunc (line 800) | func TestValidateRegValidateFunc(t *testing.T) { function TestCustomValidator (line 819) | func TestCustomValidator(t *testing.T) { function TestCustomValidatorFunc (line 841) | func TestCustomValidatorFunc(t *testing.T) { function TestWithCustomValidatorFunc (line 860) | func TestWithCustomValidatorFunc(t *testing.T) { function TestCustomValidatorInvalidType (line 879) | func TestCustomValidatorInvalidType(t *testing.T) { function TestWithCustomValidatorConversion (line 890) | func TestWithCustomValidatorConversion(t *testing.T) { type mockDeregsitryErr (line 921) | type mockDeregsitryErr struct method Register (line 925) | func (e mockDeregsitryErr) Register(*registry.Info) error { method Deregister (line 929) | func (e mockDeregsitryErr) Deregister(*registry.Info) error { type mockStandardTransporter (line 933) | type mockStandardTransporter struct method Shutdown (line 937) | func (m *mockStandardTransporter) Shutdown(ctx context.Context) error { function newMockStandardTransporter (line 945) | func newMockStandardTransporter(opt *config.Options) network.Transporter { function TestEngineShutdown (line 949) | func TestEngineShutdown(t *testing.T) { type mockStreamer (line 1027) | type mockStreamer struct method Serve (line 1031) | func (s *mockStreamer) Serve(c context.Context, conn network.StreamCon... type mockProtocolServer (line 1029) | type mockProtocolServer struct method Serve (line 1035) | func (s *mockProtocolServer) Serve(c context.Context, conn network.Con... type mockStreamConn (line 1039) | type mockStreamConn struct method GetVersion (line 1046) | func (m *mockStreamConn) GetVersion() uint32 { function TestEngineServeStream (line 1050) | func TestEngineServeStream(t *testing.T) { function TestEngineServe (line 1079) | func TestEngineServe(t *testing.T) { function TestOndata (line 1106) | func TestOndata(t *testing.T) { function TestAcquireHijackConn (line 1123) | func TestAcquireHijackConn(t *testing.T) { function TestHandleParamsReassignInHandleFunc (line 1144) | func TestHandleParamsReassignInHandleFunc(t *testing.T) { FILE: pkg/route/netpoll.go function init (line 27) | func init() { FILE: pkg/route/param/param.go type Param (line 44) | type Param struct type Params (line 52) | type Params method Get (line 56) | func (ps Params) Get(name string) (string, bool) { method ByName (line 67) | func (ps Params) ByName(name string) (va string) { FILE: pkg/route/routergroup.go type IRouter (line 55) | type IRouter interface type IRoutes (line 61) | type IRoutes interface type RouterGroup (line 79) | type RouterGroup struct method Use (line 89) | func (group *RouterGroup) Use(middleware ...app.HandlerFunc) IRoutes { method Group (line 96) | func (group *RouterGroup) Group(relativePath string, handlers ...app.H... method BasePath (line 106) | func (group *RouterGroup) BasePath() string { method handle (line 110) | func (group *RouterGroup) handle(httpMethod, relativePath string, hand... method Handle (line 129) | func (group *RouterGroup) Handle(httpMethod, relativePath string, hand... method POST (line 137) | func (group *RouterGroup) POST(relativePath string, handlers ...app.Ha... method GET (line 142) | func (group *RouterGroup) GET(relativePath string, handlers ...app.Han... method DELETE (line 147) | func (group *RouterGroup) DELETE(relativePath string, handlers ...app.... method PATCH (line 152) | func (group *RouterGroup) PATCH(relativePath string, handlers ...app.H... method PUT (line 157) | func (group *RouterGroup) PUT(relativePath string, handlers ...app.Han... method OPTIONS (line 162) | func (group *RouterGroup) OPTIONS(relativePath string, handlers ...app... method HEAD (line 167) | func (group *RouterGroup) HEAD(relativePath string, handlers ...app.Ha... method Any (line 173) | func (group *RouterGroup) Any(relativePath string, handlers ...app.Han... method StaticFile (line 188) | func (group *RouterGroup) StaticFile(relativePath, filepath string) IR... method Static (line 205) | func (group *RouterGroup) Static(relativePath, root string) IRoutes { method StaticFS (line 210) | func (group *RouterGroup) StaticFS(relativePath string, fs *app.FS) IR... method combineHandlers (line 223) | func (group *RouterGroup) combineHandlers(handlers app.HandlersChain) ... method calculateAbsolutePath (line 234) | func (group *RouterGroup) calculateAbsolutePath(relativePath string) s... method returnObj (line 238) | func (group *RouterGroup) returnObj() IRoutes { method GETEX (line 247) | func (group *RouterGroup) GETEX(relativePath string, handler app.Handl... method POSTEX (line 254) | func (group *RouterGroup) POSTEX(relativePath string, handler app.Hand... method PUTEX (line 261) | func (group *RouterGroup) PUTEX(relativePath string, handler app.Handl... method DELETEEX (line 268) | func (group *RouterGroup) DELETEEX(relativePath string, handler app.Ha... method HEADEX (line 275) | func (group *RouterGroup) HEADEX(relativePath string, handler app.Hand... method AnyEX (line 282) | func (group *RouterGroup) AnyEX(relativePath string, handler app.Handl... method HandleEX (line 289) | func (group *RouterGroup) HandleEX(httpMethod, relativePath string, ha... function joinPaths (line 294) | func joinPaths(absolutePath, relativePath string) string { function lastChar (line 307) | func lastChar(str string) uint8 { FILE: pkg/route/routergroup_test.go function TestRouterGroupBasic (line 55) | func TestRouterGroupBasic(t *testing.T) { function TestRouterGroupBasicHandle (line 73) | func TestRouterGroupBasicHandle(t *testing.T) { function performRequestInGroup (line 83) | func performRequestInGroup(t *testing.T, method string) { function TestRouterGroupStatic (line 130) | func TestRouterGroupStatic(t *testing.T) { function TestRouterGroupStaticFile (line 147) | func TestRouterGroupStaticFile(t *testing.T) { function TestRouterGroupInvalidStatic (line 164) | func TestRouterGroupInvalidStatic(t *testing.T) { function TestRouterGroupInvalidStaticFile (line 179) | func TestRouterGroupInvalidStaticFile(t *testing.T) { function TestRouterGroupTooManyHandlers (line 194) | func TestRouterGroupTooManyHandlers(t *testing.T) { function TestRouterGroupBadMethod (line 208) | func TestRouterGroupBadMethod(t *testing.T) { function TestRouterGroupPipeline (line 237) | func TestRouterGroupPipeline(t *testing.T) { function testRoutesInterface (line 246) | func testRoutesInterface(t *testing.T, r IRoutes) { FILE: pkg/route/routes_test.go type header (line 61) | type header struct function performRequest (line 66) | func performRequest(e *Engine, method, path string, headers ...header) *... function testRouteOK (line 93) | func testRouteOK(method string, t *testing.T) { function testRouteNotOK (line 113) | func testRouteNotOK(method string, t *testing.T) { function testRouteNotOK2 (line 127) | func testRouteNotOK2(method string, t *testing.T) { function testRouteNotOK3 (line 147) | func testRouteNotOK3(method string, t *testing.T) { function TestRouterMethod (line 163) | func TestRouterMethod(t *testing.T) { function TestRouterGroupRouteOK (line 183) | func TestRouterGroupRouteOK(t *testing.T) { function TestRouteNotOK1 (line 195) | func TestRouteNotOK1(t *testing.T) { function TestRouteNotOK2 (line 207) | func TestRouteNotOK2(t *testing.T) { function TestRouteNotOK3 (line 219) | func TestRouteNotOK3(t *testing.T) { function TestRouteRedirectTrailingSlash (line 231) | func TestRouteRedirectTrailingSlash(t *testing.T) { function TestRouteRedirectTrailingSlashWithQuery (line 287) | func TestRouteRedirectTrailingSlashWithQuery(t *testing.T) { function TestRouteRedirectFixedPath (line 303) | func TestRouteRedirectFixedPath(t *testing.T) { function TestRouteParamsByName (line 331) | func TestRouteParamsByName(t *testing.T) { function TestRouteParamsByNameWithExtraSlash (line 364) | func TestRouteParamsByNameWithExtraSlash(t *testing.T) { function TestRouteStaticFile (line 398) | func TestRouteStaticFile(t *testing.T) { function TestRouteStaticListingDir (line 433) | func TestRouteStaticListingDir(t *testing.T) { function TestRouteStaticNoListing (line 445) | func TestRouteStaticNoListing(t *testing.T) { function TestRouterMiddlewareAndStatic (line 455) | func TestRouterMiddlewareAndStatic(t *testing.T) { function TestRouteNotAllowedEnabled (line 477) | func TestRouteNotAllowedEnabled(t *testing.T) { function TestRouteNotAllowedEnabled2 (line 492) | func TestRouteNotAllowedEnabled2(t *testing.T) { function TestRouteNotAllowedDisabled (line 502) | func TestRouteNotAllowedDisabled(t *testing.T) { function TestRouterNotFoundWithRemoveExtraSlash (line 517) | func TestRouterNotFoundWithRemoveExtraSlash(t *testing.T) { function TestRouterNotFound (line 540) | func TestRouterNotFound(t *testing.T) { function TestRouterStaticFSNotFound (line 592) | func TestRouterStaticFSNotFound(t *testing.T) { function TestRouterStaticFSFileNotFound (line 606) | func TestRouterStaticFSFileNotFound(t *testing.T) { function TestMiddlewareCalledOnceByRouterStaticFSNotFound (line 616) | func TestMiddlewareCalledOnceByRouterStaticFSNotFound(t *testing.T) { function TestRouteRawPath (line 636) | func TestRouteRawPath(t *testing.T) { function TestRouteRawPathNoUnescape (line 655) | func TestRouteRawPathNoUnescape(t *testing.T) { function TestRouteServeErrorWithWriteHeader (line 675) | func TestRouteServeErrorWithWriteHeader(t *testing.T) { function TestRouteContextHoldsFullPath (line 687) | func TestRouteContextHoldsFullPath(t *testing.T) { function checkUnusedParamValues (line 730) | func checkUnusedParamValues(t *testing.T, ctx *app.RequestContext, expec... function getHelper (line 753) | func getHelper(c *app.RequestContext, key string) interface{} { function TestRouterStatic (line 758) | func TestRouterStatic(t *testing.T) { function TestRouterParam (line 769) | func TestRouterParam(t *testing.T) { function TestRouterTwoParam (line 805) | func TestRouterTwoParam(t *testing.T) { function TestRouterParamWithSlash (line 817) | func TestRouterParamWithSlash(t *testing.T) { function TestRouteMultiLevelBacktracking (line 831) | func TestRouteMultiLevelBacktracking(t *testing.T) { function TestRouteMultiLevelBacktracking2 (line 894) | func TestRouteMultiLevelBacktracking2(t *testing.T) { function TestRouterBacktrackingFromMultipleParamKinds (line 973) | func TestRouterBacktrackingFromMultipleParamKinds(t *testing.T) { function TestRouterParamStaticConflict (line 1039) | func TestRouterParamStaticConflict(t *testing.T) { function TestRouterMatchAny (line 1079) | func TestRouterMatchAny(t *testing.T) { function TestRouterAnyMatchesLastAddedAnyRoute (line 1130) | func TestRouterAnyMatchesLastAddedAnyRoute(t *testing.T) { function TestRouterMatchAnyPrefixIssue (line 1154) | func TestRouterMatchAnyPrefixIssue(t *testing.T) { function TestRouterMatchAnySlash (line 1211) | func TestRouterMatchAnySlash(t *testing.T) { function TestRouterMatchAnyMultiLevel (line 1289) | func TestRouterMatchAnyMultiLevel(t *testing.T) { function TestRouterMatchAnyMultiLevelWithPost (line 1359) | func TestRouterMatchAnyMultiLevelWithPost(t *testing.T) { function TestRouterMicroParam (line 1416) | func TestRouterMicroParam(t *testing.T) { function TestRouterMixParamMatchAny (line 1428) | func TestRouterMixParamMatchAny(t *testing.T) { function TestRouterMultiRoute (line 1441) | func TestRouterMultiRoute(t *testing.T) { function TestRouterPriority (line 1487) | func TestRouterPriority(t *testing.T) { function TestRouterIssue1348 (line 1590) | func TestRouterIssue1348(t *testing.T) { function TestRouterPriorityNotFound (line 1597) | func TestRouterPriorityNotFound(t *testing.T) { function TestRouterParamNames (line 1640) | func TestRouterParamNames(t *testing.T) { function TestRouterStaticDynamicConflict (line 1689) | func TestRouterStaticDynamicConflict(t *testing.T) { function TestRouterParamBacktraceNotFound (line 1755) | func TestRouterParamBacktraceNotFound(t *testing.T) { FILE: pkg/route/routes_timing_test.go type Route (line 52) | type Route struct function BenchmarkTree_FindStatic (line 56) | func BenchmarkTree_FindStatic(b *testing.B) { function BenchmarkTree_FindGithub (line 232) | func BenchmarkTree_FindGithub(b *testing.B) { function BenchmarkTree_FindStaticTsr (line 510) | func BenchmarkTree_FindStaticTsr(b *testing.B) { function BenchmarkTree_FindParam (line 532) | func BenchmarkTree_FindParam(b *testing.B) { function BenchmarkTree_FindParamTsr (line 554) | func BenchmarkTree_FindParamTsr(b *testing.B) { function BenchmarkTree_FindAny (line 576) | func BenchmarkTree_FindAny(b *testing.B) { function BenchmarkTree_FindAnyFallback (line 598) | func BenchmarkTree_FindAnyFallback(b *testing.B) { function BenchmarkRouteStatic (line 621) | func BenchmarkRouteStatic(b *testing.B) { function BenchmarkRouteParam (line 634) | func BenchmarkRouteParam(b *testing.B) { function BenchmarkRouteAny (line 647) | func BenchmarkRouteAny(b *testing.B) { FILE: pkg/route/tree.go type router (line 57) | type router struct method addRoute (line 151) | func (r *router) addRoute(path string, h app.HandlersChain) { method insert (line 195) | func (r *router) insert(path string, h app.HandlersChain, t kind, ppat... method find (line 313) | func (r *router) find(path string, paramsPointer *param.Params, unesca... type MethodTrees (line 62) | type MethodTrees method get (line 64) | func (trees MethodTrees) get(method string) *router { function countParams (line 73) | func countParams(path string) uint16 { type node (line 82) | type node struct method findChild (line 474) | func (n *node) findChild(l byte) *node { method findChildWithLabel (line 483) | func (n *node) findChildWithLabel(l byte) *node { method findCaseInsensitivePath (line 524) | func (n *node) findCaseInsensitivePath(path string, fixTrailingSlash b... type kind (line 98) | type kind type children (line 99) | type children constant skind (line 104) | skind kind = iota constant pkind (line 106) | pkind constant akind (line 108) | akind constant paramLabel (line 109) | paramLabel = byte(':') constant anyLabel (line 110) | anyLabel = byte('*') constant slash (line 111) | slash = "/" constant nilString (line 112) | nilString = "" function checkPathValid (line 115) | func checkPathValid(path string) { function newNode (line 498) | func newNode(t kind, pre string, p *node, child children, mh app.Handler... type nodeValue (line 515) | type nodeValue struct FILE: pkg/route/tree_test.go function fakeHandler (line 39) | func fakeHandler(val string) app.HandlersChain { type testRequests (line 45) | type testRequests function getParams (line 52) | func getParams() *param.Params { function checkRequests (line 57) | func checkRequests(t *testing.T, tree *router, requests testRequests, un... function TestCountParams (line 87) | func TestCountParams(t *testing.T) { function TestEmptyPath (line 96) | func TestEmptyPath(t *testing.T) { function TestTreeAddAndGet (line 115) | func TestTreeAddAndGet(t *testing.T) { function TestTreeWildcard (line 152) | func TestTreeWildcard(t *testing.T) { function TestUnescapeParameters (line 200) | func TestUnescapeParameters(t *testing.T) { function catchPanic (line 235) | func catchPanic(testFunc func()) (recv interface{}) { type testRoute (line 244) | type testRoute struct function testRoutes (line 249) | func testRoutes(t *testing.T, routes []testRoute) { function TestTreeWildcardConflict (line 271) | func TestTreeWildcardConflict(t *testing.T) { function TestTreeChildConflict (line 292) | func TestTreeChildConflict(t *testing.T) { function TestTreeDuplicatePath (line 308) | func TestTreeDuplicatePath(t *testing.T) { function TestEmptyWildcardName (line 344) | func TestEmptyWildcardName(t *testing.T) { function TestTreeCatchAllConflict (line 363) | func TestTreeCatchAllConflict(t *testing.T) { function TestTreeCatchMaxParams (line 374) | func TestTreeCatchMaxParams(t *testing.T) { function TestTreeDoubleWildcard (line 380) | func TestTreeDoubleWildcard(t *testing.T) { function TestTreeTrailingSlashRedirect2 (line 401) | func TestTreeTrailingSlashRedirect2(t *testing.T) { function TestTreeTrailingSlashRedirect (line 446) | func TestTreeTrailingSlashRedirect(t *testing.T) { function TestTreeRootTrailingSlashRedirect (line 545) | func TestTreeRootTrailingSlashRedirect(t *testing.T) { function TestTreeFindCaseInsensitivePath (line 563) | func TestTreeFindCaseInsensitivePath(t *testing.T) { function TestTreeParamNotOptimize (line 710) | func TestTreeParamNotOptimize(t *testing.T) { FILE: version.go constant Name (line 21) | Name = "Hertz" constant Version (line 22) | Version = "v0.10.4"