diff --git a/benchmarks/benchserver/main.go b/benchmarks/benchserver/main.go index c4e6d7397..55740c41e 100644 --- a/benchmarks/benchserver/main.go +++ b/benchmarks/benchserver/main.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/benchmarks/runner/main.go b/benchmarks/runner/main.go index 807975afb..c45ba72e1 100644 --- a/benchmarks/runner/main.go +++ b/benchmarks/runner/main.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/casing.go b/codegen/casing.go index c8348d840..64cfe349f 100644 --- a/codegen/casing.go +++ b/codegen/casing.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/casing_test.go b/codegen/casing_test.go index 1435c16a8..390b6e848 100644 --- a/codegen/casing_test.go +++ b/codegen/casing_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/client.go b/codegen/client.go index 91ca65d29..a959278e1 100644 --- a/codegen/client.go +++ b/codegen/client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/client_test.go b/codegen/client_test.go index 7ca4814e0..da3402a76 100644 --- a/codegen/client_test.go +++ b/codegen/client_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/gateway.go b/codegen/gateway.go index 0353530da..0e738a727 100644 --- a/codegen/gateway.go +++ b/codegen/gateway.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/gateway_test.go b/codegen/gateway_test.go index 67300f9e5..83996beab 100644 --- a/codegen/gateway_test.go +++ b/codegen/gateway_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/header_propagate.go b/codegen/header_propagate.go index 7573fa67a..eb879b27b 100644 --- a/codegen/header_propagate.go +++ b/codegen/header_propagate.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/header_propagate_test.go b/codegen/header_propagate_test.go index 3076643b3..006f5c7e8 100644 --- a/codegen/header_propagate_test.go +++ b/codegen/header_propagate_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/method.go b/codegen/method.go index 2b6212b28..110e27429 100644 --- a/codegen/method.go +++ b/codegen/method.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/mockgen.go b/codegen/mockgen.go index 51b646a37..6dbebbc31 100644 --- a/codegen/mockgen.go +++ b/codegen/mockgen.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/module.go b/codegen/module.go index 21b6f90a5..65b649770 100644 --- a/codegen/module.go +++ b/codegen/module.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -1736,11 +1736,12 @@ func (info *PackageInfo) ModulePackageAlias() string { // ModuleInstance is a configured module inside a module class directory. // For example, this could be -// ClassName: "Endpoint, -// ClassType: "http", -// BaseDirectory "/path/to/service/base/" -// Directory: "clients/health/" -// InstanceName: "health", +// +// ClassName: "Endpoint, +// ClassType: "http", +// BaseDirectory "/path/to/service/base/" +// Directory: "clients/health/" +// InstanceName: "health", type ModuleInstance struct { // genSpec is used to share generated specs across dependencies. Generators // should not mutate this directly, and should return the spec as a result. diff --git a/codegen/module_system.go b/codegen/module_system.go index 1b3a57ad4..a9ed09e28 100644 --- a/codegen/module_system.go +++ b/codegen/module_system.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/module_test.go b/codegen/module_test.go index c099a69b0..084e355e9 100644 --- a/codegen/module_test.go +++ b/codegen/module_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/package.go b/codegen/package.go index 48b26feb8..93e9011a3 100644 --- a/codegen/package.go +++ b/codegen/package.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/package_test.go b/codegen/package_test.go index c248e182a..6d300c013 100644 --- a/codegen/package_test.go +++ b/codegen/package_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/post_gen_hooks.go b/codegen/post_gen_hooks.go index 3928bf0d6..58d69da5d 100644 --- a/codegen/post_gen_hooks.go +++ b/codegen/post_gen_hooks.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/proto.go b/codegen/proto.go index 22feb233b..28e5cbb0a 100644 --- a/codegen/proto.go +++ b/codegen/proto.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/proto_test.go b/codegen/proto_test.go index 89646383c..ce5d1751c 100644 --- a/codegen/proto_test.go +++ b/codegen/proto_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -32,10 +32,10 @@ const ( singleServiceSpec = ` syntax = "proto3"; package echo; - + message Request { string message = 1; } message Response { string message = 1; } - + service EchoService { rpc EchoMethod(Request) returns (Response); } @@ -43,12 +43,12 @@ const ( multiServiceSpec = ` syntax = "proto3"; package echo; - + message Request1 { string message = 1; } message Response1 { string message = 1; } message Request2 { string message = 1; } message Response2 { string message = 1; } - + service EchoService { rpc EchoMethod1(Request1) returns (Response1); rpc EchoMethod2(Request2) returns (Response2); @@ -57,11 +57,11 @@ const ( mixedServiceSpec = ` syntax = "proto3"; package echo; - + message Request1 { string message = 1; } message Response1 { string message = 1; } message Response2 { string message = 1; } - + service EchoService { rpc EchoMethod1(Request1) returns (Response1); rpc EchoMethod2(Request1) returns (Response2); @@ -70,17 +70,17 @@ const ( noServiceSpec = ` syntax = "proto3"; package echo; - + message Request { string message = 1; } message Response { string message = 1; } ` emptyServiceSpec = ` syntax = "proto3"; package echo; - + message Request { string message = 1; } message Response { string message = 1; } - + service EchoService {} ` ) diff --git a/codegen/reflect_interface.go b/codegen/reflect_interface.go index abc73214a..f22893296 100644 --- a/codegen/reflect_interface.go +++ b/codegen/reflect_interface.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/runner/runner.go b/codegen/runner/runner.go index 1e6b91fb6..56beb6d65 100644 --- a/codegen/runner/runner.go +++ b/codegen/runner/runner.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/service.go b/codegen/service.go index 2a0cdbc4b..8b6ae6014 100644 --- a/codegen/service.go +++ b/codegen/service.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/service_test.go b/codegen/service_test.go index 891d947ff..69503ab44 100644 --- a/codegen/service_test.go +++ b/codegen/service_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/template.go b/codegen/template.go index 0f5a357df..876821a89 100644 --- a/codegen/template.go +++ b/codegen/template.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/template_bundle/template_files.go b/codegen/template_bundle/template_files.go index 5143eb38c..28b2f2ec1 100644 --- a/codegen/template_bundle/template_files.go +++ b/codegen/template_bundle/template_files.go @@ -4159,7 +4159,7 @@ import ( {{- $clientID := .ClientID }} {{with .Method -}} -// New{{$handlerName}} creates a handler to be registered with a thrift server. +// New{{$handlerName}} creates a simple handler to be registered with a thrift server. func New{{$handlerName}}(deps *module.Dependencies) *{{$handlerName}} { handler := &{{$handlerName}}{ Deps: deps, @@ -4408,7 +4408,7 @@ func tchannel_endpointTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "tchannel_endpoint.tmpl", size: 9383, mode: os.FileMode(420), modTime: time.Unix(1, 0)} + info := bindataFileInfo{name: "tchannel_endpoint.tmpl", size: 9390, mode: os.FileMode(420), modTime: time.Unix(1, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/codegen/template_test.go b/codegen/template_test.go index 0afbddea0..7c3f0bddb 100644 --- a/codegen/template_test.go +++ b/codegen/template_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/templates/tchannel_endpoint.tmpl b/codegen/templates/tchannel_endpoint.tmpl index d94aa69a3..f0091f5de 100644 --- a/codegen/templates/tchannel_endpoint.tmpl +++ b/codegen/templates/tchannel_endpoint.tmpl @@ -39,7 +39,7 @@ import ( {{- $clientID := .ClientID }} {{with .Method -}} -// New{{$handlerName}} creates a handler to be registered with a thrift server. +// New{{$handlerName}} creates a simple handler to be registered with a thrift server. func New{{$handlerName}}(deps *module.Dependencies) *{{$handlerName}} { handler := &{{$handlerName}}{ Deps: deps, diff --git a/codegen/thrift.go b/codegen/thrift.go index 2f102dda7..5eda356e1 100644 --- a/codegen/thrift.go +++ b/codegen/thrift.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/thrift_test.go b/codegen/thrift_test.go index aa1fb595d..436224450 100644 --- a/codegen/thrift_test.go +++ b/codegen/thrift_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/type_converter.go b/codegen/type_converter.go index f84afc8a4..76a05f469 100644 --- a/codegen/type_converter.go +++ b/codegen/type_converter.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -120,7 +120,7 @@ func (c *TypeConverter) getGoTypeName(valueType compile.TypeSpec) (string, error return GoType(c.Helper, valueType) } -// input of "A.B.C.D" returns ["A","A.B", "A.B.C", "A.B.C.D"] +// input of "A.B.C.D" returns ["A","A.B", "A.B.C", "A.B.C.D"] func getMiddleIdentifiers(identifier string) []string { subIds := strings.Split(identifier, ".") @@ -134,7 +134,7 @@ func getMiddleIdentifiers(identifier string) []string { return middleIds } -// converts a list of identifier paths into boolean nil check expressions on those paths +// converts a list of identifier paths into boolean nil check expressions on those paths func convertIdentifiersToNilChecks(identifiers []string) []string { checks := make([]string, 0, len(identifiers)-1) @@ -641,13 +641,14 @@ func (c *TypeConverter) genConverterForMap( } // recursive function to walk a DFS on toFields and try to assign fromFields or fieldMap tranforms -// generated code is appended as we traverse the toFields thrift type structure -// keyPrefix - the identifier (path) of the current position in the "to" struct -// fromPrefix - the identifier (path) of the corresponding position in the "from" struct -// indent - a string of tabs for current block scope -// fromFields - fields in the current from struct, can be nil if only fieldMap transforms are applicable in the path -// toFields - fields in the current to struct -// fieldMap - a data structure specifying configured transforms Map[toIdentifier ] -> fromField FieldMapperEntry +// +// generated code is appended as we traverse the toFields thrift type structure +// keyPrefix - the identifier (path) of the current position in the "to" struct +// fromPrefix - the identifier (path) of the corresponding position in the "from" struct +// indent - a string of tabs for current block scope +// fromFields - fields in the current from struct, can be nil if only fieldMap transforms are applicable in the path +// toFields - fields in the current to struct +// fieldMap - a data structure specifying configured transforms Map[toIdentifier ] -> fromField FieldMapperEntry func (c *TypeConverter) genStructConverter( keyPrefix string, fromPrefix string, @@ -1291,8 +1292,9 @@ func isRecursiveStruct(spec compile.TypeSpec, seenSoFar map[string]bool) bool { // Returns true if any of the fields of a struct form a cycle anywhere down the line // e.g. struct A has optional field of type A -> cycle of length 0 -// struct A has optional field of type B; struct B has optional field of type A -> cycle of length 2 -// struct A has optional field of type B; struct B has optional field of type B -> cycle of length 0 downstream +// +// struct A has optional field of type B; struct B has optional field of type A -> cycle of length 2 +// struct A has optional field of type B; struct B has optional field of type B -> cycle of length 0 downstream func (c *TypeConverter) isRecursiveStruct(fields []*compile.FieldSpec) bool { for _, field := range fields { if isRecursiveStruct(field.Type, make(map[string]bool)) { diff --git a/codegen/type_converter_test.go b/codegen/type_converter_test.go index 1ebbffa56..a3a9a56be 100644 --- a/codegen/type_converter_test.go +++ b/codegen/type_converter_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -667,7 +667,7 @@ func TestConvertWithBadImportTypedef(t *testing.T) { "Foo", "Bar", ` include "../../bar.thrift" - + struct Foo { 1: optional bar.MyString one 2: required string two @@ -698,7 +698,7 @@ func TestConvertWithBadImportEnum(t *testing.T) { "Foo", "Bar", ` include "../../bar.thrift" - + struct Foo { 1: optional bar.MyEnum one 2: required string two @@ -732,7 +732,7 @@ func TestConvertWithBadImportStruct(t *testing.T) { "Foo", "Bar", ` include "../../bar.thrift" - + struct Foo { 1: optional bar.MyStruct one 2: required string two @@ -825,7 +825,7 @@ func TestConvertListOfStruct(t *testing.T) { struct Inner { 1: optional string field } - + struct Foo { 1: optional list one 2: required list two @@ -867,7 +867,7 @@ func TestConvertWithBadImportListOfStruct(t *testing.T) { "Foo", "Bar", ` include "../../bar.thrift" - + struct Foo { 1: optional list one 2: required string two @@ -902,7 +902,7 @@ func TestConvertWithMisMatchListTypes(t *testing.T) { struct Inner { 1: optional string field } - + struct Foo { 1: optional list one 2: required string two @@ -933,7 +933,7 @@ func TestConvertWithBadImportListOfBadStruct(t *testing.T) { struct Inner { 1: optional bar.MyStruct field } - + struct Foo { 1: optional list one 2: required string two @@ -998,7 +998,7 @@ func TestConvertMapStringToStruct(t *testing.T) { 1: required string one 2: optional string two } - + struct Foo { 1: required map uuidMap } @@ -1037,7 +1037,7 @@ func TestConvertMapTypeDefToStruct(t *testing.T) { 1: required string one 2: optional string two } - + struct Foo { 1: required map uuidMap } @@ -1071,7 +1071,7 @@ func TestConvertMapOfStruct(t *testing.T) { struct Inner { 1: optional string field } - + struct Foo { 1: optional map one 2: required map two @@ -1113,7 +1113,7 @@ func TestConvertWithBadImportMapOfStruct(t *testing.T) { "Foo", "Bar", ` include "../../bar.thrift" - + struct Foo { 1: optional map one 2: required string two @@ -1148,7 +1148,7 @@ func TestConvertWithMisMatchMapTypes(t *testing.T) { struct Inner { 1: optional string field } - + struct Foo { 1: optional map one 2: required string two @@ -1179,7 +1179,7 @@ func TestConvertWithBadImportMapOfBadStruct(t *testing.T) { struct Inner { 1: optional bar.MyStruct field } - + struct Foo { 1: optional map one 2: required string two @@ -1559,7 +1559,7 @@ func TestConverterMapOverrideReqToOpt(t *testing.T) { if in.Two != nil { out.One = (*bool)(in.Two) } - out.Two = (*bool)(in.Two) + out.Two = (*bool)(in.Two) `), lines) } @@ -2312,7 +2312,7 @@ func TestConverterMapMapType(t *testing.T) { struct Inner { 1: optional string field } - + struct Foo { 1: optional map one 2: optional map two @@ -2379,7 +2379,7 @@ func TestConverterMapMapType(t *testing.T) { out.Two[key7] = nil } } - } + } `), lines) } @@ -2395,7 +2395,7 @@ func TestConvertWithMisMatchListTypesForOverride(t *testing.T) { struct Inner { 1: optional string field } - + struct Foo { 1: optional list one 2: optional string two @@ -2430,7 +2430,7 @@ func TestConverterMapListTypeIncompatabile(t *testing.T) { struct Inner { 1: optional string field } - + struct Foo { 1: optional list one 2: optional list two @@ -2465,7 +2465,7 @@ func TestConvertWithMisMatchMapTypesForOverride(t *testing.T) { struct Inner { 1: optional string field } - + struct Foo { 1: optional map one 2: optional string two @@ -2500,7 +2500,7 @@ func TestConverterMapMapTypeIncompatabile(t *testing.T) { struct Inner { 1: optional string field } - + struct Foo { 1: optional map one 2: optional map two @@ -2535,7 +2535,7 @@ func TestConverterInvalidMapping(t *testing.T) { struct Inner { 1: optional string field } - + struct Foo { 1: optional map one 2: optional map two @@ -2650,7 +2650,7 @@ func TestConverterRecursiveNested(t *testing.T) { ` struct StringFoo { 1: required string one - 2: optional StringFoo recur + 2: optional StringFoo recur } struct Foo { @@ -2698,13 +2698,13 @@ func TestConverterRecursiveMixedDeep(t *testing.T) { struct StringFooA { 1: required string one - 2: optional StringFooA recur + 2: optional StringFooA recur 3: required DeepFoo deep } struct StringFooB { 1: required string one - 2: optional StringFooB recur + 2: optional StringFooB recur 3: required DeepFoo deep } @@ -2886,7 +2886,7 @@ func TestConverterMapTypeDef(t *testing.T) { struct RecurFoo2 { 1: required UUIDFoo field1 } - + struct RecurBar2 { 1: required UUIDBar field1 } @@ -2894,7 +2894,7 @@ func TestConverterMapTypeDef(t *testing.T) { struct RecurFoo1 { 1: required map field1 } - + struct RecurBar1 { 1: required map field1 } diff --git a/config/config.go b/config/config.go index 98199f154..f0b93a432 100644 --- a/config/config.go +++ b/config/config.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/config/production.gen.go b/config/production.gen.go index eab9bb889..bd3538538 100644 --- a/config/production.gen.go +++ b/config/production.gen.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -250,4 +250,3 @@ func _filePath(dir, name string) string { cannonicalName := strings.Replace(name, "\\", "/", -1) return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...) } - diff --git a/examples/example-gateway/build/app/demo/endpoints/abc/abc_appdemoservice_method_call_tchannel.go b/examples/example-gateway/build/app/demo/endpoints/abc/abc_appdemoservice_method_call_tchannel.go index 07f29c12d..f6a16d69c 100644 --- a/examples/example-gateway/build/app/demo/endpoints/abc/abc_appdemoservice_method_call_tchannel.go +++ b/examples/example-gateway/build/app/demo/endpoints/abc/abc_appdemoservice_method_call_tchannel.go @@ -41,7 +41,7 @@ import ( module "github.com/uber/zanzibar/examples/example-gateway/build/app/demo/endpoints/abc/module" ) -// NewAppDemoServiceCallHandler creates a handler to be registered with a thrift server. +// NewAppDemoServiceCallHandler creates a simple handler to be registered with a thrift server. func NewAppDemoServiceCallHandler(deps *module.Dependencies) *AppDemoServiceCallHandler { handler := &AppDemoServiceCallHandler{ Deps: deps, diff --git a/examples/example-gateway/build/endpoints/bounce/bounce_bounce_method_bounce_tchannel.go b/examples/example-gateway/build/endpoints/bounce/bounce_bounce_method_bounce_tchannel.go index 315cf8516..b2f3e01c1 100644 --- a/examples/example-gateway/build/endpoints/bounce/bounce_bounce_method_bounce_tchannel.go +++ b/examples/example-gateway/build/endpoints/bounce/bounce_bounce_method_bounce_tchannel.go @@ -43,7 +43,7 @@ import ( module "github.com/uber/zanzibar/examples/example-gateway/build/endpoints/bounce/module" ) -// NewBounceBounceHandler creates a handler to be registered with a thrift server. +// NewBounceBounceHandler creates a simple handler to be registered with a thrift server. func NewBounceBounceHandler(deps *module.Dependencies) *BounceBounceHandler { handler := &BounceBounceHandler{ Deps: deps, diff --git a/examples/example-gateway/build/endpoints/tchannel/baz/baz_simpleservice_method_call_tchannel.go b/examples/example-gateway/build/endpoints/tchannel/baz/baz_simpleservice_method_call_tchannel.go index 1f4091e9d..dd4b271ad 100644 --- a/examples/example-gateway/build/endpoints/tchannel/baz/baz_simpleservice_method_call_tchannel.go +++ b/examples/example-gateway/build/endpoints/tchannel/baz/baz_simpleservice_method_call_tchannel.go @@ -45,7 +45,7 @@ import ( module "github.com/uber/zanzibar/examples/example-gateway/build/endpoints/tchannel/baz/module" ) -// NewSimpleServiceCallHandler creates a handler to be registered with a thrift server. +// NewSimpleServiceCallHandler creates a simple handler to be registered with a thrift server. func NewSimpleServiceCallHandler(deps *module.Dependencies) *SimpleServiceCallHandler { handler := &SimpleServiceCallHandler{ Deps: deps, diff --git a/examples/example-gateway/build/endpoints/tchannel/baz/baz_simpleservice_method_echo_tchannel.go b/examples/example-gateway/build/endpoints/tchannel/baz/baz_simpleservice_method_echo_tchannel.go index 44fe0258d..3fbc5ecba 100644 --- a/examples/example-gateway/build/endpoints/tchannel/baz/baz_simpleservice_method_echo_tchannel.go +++ b/examples/example-gateway/build/endpoints/tchannel/baz/baz_simpleservice_method_echo_tchannel.go @@ -43,7 +43,7 @@ import ( module "github.com/uber/zanzibar/examples/example-gateway/build/endpoints/tchannel/baz/module" ) -// NewSimpleServiceEchoHandler creates a handler to be registered with a thrift server. +// NewSimpleServiceEchoHandler creates a simple handler to be registered with a thrift server. func NewSimpleServiceEchoHandler(deps *module.Dependencies) *SimpleServiceEchoHandler { handler := &SimpleServiceEchoHandler{ Deps: deps, diff --git a/examples/example-gateway/build/endpoints/tchannel/echo/echo_echo_method_echo_tchannel.go b/examples/example-gateway/build/endpoints/tchannel/echo/echo_echo_method_echo_tchannel.go index 01f762d44..20bdb7d8c 100644 --- a/examples/example-gateway/build/endpoints/tchannel/echo/echo_echo_method_echo_tchannel.go +++ b/examples/example-gateway/build/endpoints/tchannel/echo/echo_echo_method_echo_tchannel.go @@ -43,7 +43,7 @@ import ( module "github.com/uber/zanzibar/examples/example-gateway/build/endpoints/tchannel/echo/module" ) -// NewEchoEchoHandler creates a handler to be registered with a thrift server. +// NewEchoEchoHandler creates a simple handler to be registered with a thrift server. func NewEchoEchoHandler(deps *module.Dependencies) *EchoEchoHandler { handler := &EchoEchoHandler{ Deps: deps, diff --git a/examples/example-gateway/build/endpoints/tchannel/panic/panic_simpleservice_method_anothercall_tchannel.go b/examples/example-gateway/build/endpoints/tchannel/panic/panic_simpleservice_method_anothercall_tchannel.go index 57c75894e..15405cdcb 100644 --- a/examples/example-gateway/build/endpoints/tchannel/panic/panic_simpleservice_method_anothercall_tchannel.go +++ b/examples/example-gateway/build/endpoints/tchannel/panic/panic_simpleservice_method_anothercall_tchannel.go @@ -44,7 +44,7 @@ import ( module "github.com/uber/zanzibar/examples/example-gateway/build/endpoints/tchannel/panic/module" ) -// NewSimpleServiceAnotherCallHandler creates a handler to be registered with a thrift server. +// NewSimpleServiceAnotherCallHandler creates a simple handler to be registered with a thrift server. func NewSimpleServiceAnotherCallHandler(deps *module.Dependencies) *SimpleServiceAnotherCallHandler { handler := &SimpleServiceAnotherCallHandler{ Deps: deps, diff --git a/examples/example-gateway/build/endpoints/tchannel/quux/quux_simpleservice_method_echostring_tchannel.go b/examples/example-gateway/build/endpoints/tchannel/quux/quux_simpleservice_method_echostring_tchannel.go index 30003adf2..82f2aec8b 100644 --- a/examples/example-gateway/build/endpoints/tchannel/quux/quux_simpleservice_method_echostring_tchannel.go +++ b/examples/example-gateway/build/endpoints/tchannel/quux/quux_simpleservice_method_echostring_tchannel.go @@ -43,7 +43,7 @@ import ( module "github.com/uber/zanzibar/examples/example-gateway/build/endpoints/tchannel/quux/module" ) -// NewSimpleServiceEchoStringHandler creates a handler to be registered with a thrift server. +// NewSimpleServiceEchoStringHandler creates a simple handler to be registered with a thrift server. func NewSimpleServiceEchoStringHandler(deps *module.Dependencies) *SimpleServiceEchoStringHandler { handler := &SimpleServiceEchoStringHandler{ Deps: deps, diff --git a/examples/selective-gateway/build/endpoints/bounce/bounce_bounce_method_bounce_tchannel.go b/examples/selective-gateway/build/endpoints/bounce/bounce_bounce_method_bounce_tchannel.go index 6fb031e24..985ce3804 100644 --- a/examples/selective-gateway/build/endpoints/bounce/bounce_bounce_method_bounce_tchannel.go +++ b/examples/selective-gateway/build/endpoints/bounce/bounce_bounce_method_bounce_tchannel.go @@ -41,7 +41,7 @@ import ( module "github.com/uber/zanzibar/examples/selective-gateway/build/endpoints/bounce/module" ) -// NewBounceBounceHandler creates a handler to be registered with a thrift server. +// NewBounceBounceHandler creates a simple handler to be registered with a thrift server. func NewBounceBounceHandler(deps *module.Dependencies) *BounceBounceHandler { handler := &BounceBounceHandler{ Deps: deps, diff --git a/fix_glide.go b/fix_glide.go index ff4a4a764..bc3ec7230 100644 --- a/fix_glide.go +++ b/fix_glide.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/parallelize/parallelize.go b/parallelize/parallelize.go index 694966049..d4c6e02fe 100644 --- a/parallelize/parallelize.go +++ b/parallelize/parallelize.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/parallelize/parallelize_test.go b/parallelize/parallelize_test.go index 2d5f61a7c..e55a48968 100644 --- a/parallelize/parallelize_test.go +++ b/parallelize/parallelize_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/client_http_request.go b/runtime/client_http_request.go index a3321b01b..51e8f188e 100644 --- a/runtime/client_http_request.go +++ b/runtime/client_http_request.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/client_http_request_test.go b/runtime/client_http_request_test.go index 48796977a..78ef6ba78 100644 --- a/runtime/client_http_request_test.go +++ b/runtime/client_http_request_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/client_http_request_write_json_test.go b/runtime/client_http_request_write_json_test.go index 0799e4823..5ad0d0700 100644 --- a/runtime/client_http_request_write_json_test.go +++ b/runtime/client_http_request_write_json_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/client_http_response.go b/runtime/client_http_response.go index 8b85cb9d1..88e9bbd39 100644 --- a/runtime/client_http_response.go +++ b/runtime/client_http_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/client_http_response_test.go b/runtime/client_http_response_test.go index f3a4e9b5e..ac32e8d96 100644 --- a/runtime/client_http_response_test.go +++ b/runtime/client_http_response_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/constants.go b/runtime/constants.go index 50ac50fa5..5a7d05e2a 100644 --- a/runtime/constants.go +++ b/runtime/constants.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/context.go b/runtime/context.go index dd987b390..f00aa3471 100644 --- a/runtime/context.go +++ b/runtime/context.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/context_test.go b/runtime/context_test.go index 95de46ede..badcb59d5 100644 --- a/runtime/context_test.go +++ b/runtime/context_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/gateway.go b/runtime/gateway.go index 6891c6e8b..d8af230f6 100644 --- a/runtime/gateway.go +++ b/runtime/gateway.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/gateway_test.go b/runtime/gateway_test.go index db44b7a69..4219241c5 100644 --- a/runtime/gateway_test.go +++ b/runtime/gateway_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/grpc_client.go b/runtime/grpc_client.go index 57f9244bb..4b0b2eb7a 100644 --- a/runtime/grpc_client.go +++ b/runtime/grpc_client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/grpc_client_test.go b/runtime/grpc_client_test.go index 6e2985551..b6022847f 100644 --- a/runtime/grpc_client_test.go +++ b/runtime/grpc_client_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/http_client.go b/runtime/http_client.go index 86065672f..1cbf4dc35 100644 --- a/runtime/http_client.go +++ b/runtime/http_client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/http_server.go b/runtime/http_server.go index 821559e9f..2b2343834 100644 --- a/runtime/http_server.go +++ b/runtime/http_server.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/jsonwrapper/jsonwrapper.go b/runtime/jsonwrapper/jsonwrapper.go index bcdacacef..c5d315ceb 100644 --- a/runtime/jsonwrapper/jsonwrapper.go +++ b/runtime/jsonwrapper/jsonwrapper.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/middlewares.go b/runtime/middlewares.go index 1823824bb..509f0efed 100644 --- a/runtime/middlewares.go +++ b/runtime/middlewares.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/middlewares_tchannel.go b/runtime/middlewares_tchannel.go index 6ed6a48cc..33c9a5e37 100644 --- a/runtime/middlewares_tchannel.go +++ b/runtime/middlewares_tchannel.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/middlewares_tchannel_test.go b/runtime/middlewares_tchannel_test.go index 30b24daa2..8f619c2ea 100644 --- a/runtime/middlewares_tchannel_test.go +++ b/runtime/middlewares_tchannel_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/middlewares_test.go b/runtime/middlewares_test.go index b90aafcff..8ce7e84dc 100644 --- a/runtime/middlewares_test.go +++ b/runtime/middlewares_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/options.go b/runtime/options.go index 0c885d968..b0c1e3f25 100644 --- a/runtime/options.go +++ b/runtime/options.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/plugins/m3_aggregator.go b/runtime/plugins/m3_aggregator.go index 767591bd5..d0f36904c 100644 --- a/runtime/plugins/m3_aggregator.go +++ b/runtime/plugins/m3_aggregator.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/router.go b/runtime/router.go index 2fcbfef90..d025129bb 100644 --- a/runtime/router.go +++ b/runtime/router.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/router/router.go b/runtime/router/router.go index be1799fcf..7eccbef8a 100644 --- a/runtime/router/router.go +++ b/runtime/router/router.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/router/router_test.go b/runtime/router/router_test.go index 1bf77ad60..d0cb438fc 100644 --- a/runtime/router/router_test.go +++ b/runtime/router/router_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/router/trie.go b/runtime/router/trie.go index 28d1e946d..d3a6e3bfe 100644 --- a/runtime/router/trie.go +++ b/runtime/router/trie.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/router/trie_test.go b/runtime/router/trie_test.go index 085de10ac..9458dc194 100644 --- a/runtime/router/trie_test.go +++ b/runtime/router/trie_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/router_test.go b/runtime/router_test.go index 1840ae2df..bbc8ca7a3 100644 --- a/runtime/router_test.go +++ b/runtime/router_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/ruleengine/rule_engine.go b/runtime/ruleengine/rule_engine.go index 72dd3ce3b..a1806a3ea 100644 --- a/runtime/ruleengine/rule_engine.go +++ b/runtime/ruleengine/rule_engine.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/ruleengine/rule_engine_test.go b/runtime/ruleengine/rule_engine_test.go index 3cda56c72..9e36a49a9 100644 --- a/runtime/ruleengine/rule_engine_test.go +++ b/runtime/ruleengine/rule_engine_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/runtime_metrics.go b/runtime/runtime_metrics.go index 531859b2e..8bd143bda 100644 --- a/runtime/runtime_metrics.go +++ b/runtime/runtime_metrics.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -82,9 +82,10 @@ type runtimeCollector struct { // StartRuntimeMetricsCollector starts collecting runtime metrics periodically. // Recommended usage: -// rm := StartRuntimeMetricsCollector(rootScope.Scope("runtime"), opts) -// ... -// rm.Stop() +// +// rm := StartRuntimeMetricsCollector(rootScope.Scope("runtime"), opts) +// ... +// rm.Stop() func StartRuntimeMetricsCollector( config RuntimeMetricsOptions, scope tally.Scope, diff --git a/runtime/runtime_metrics_test.go b/runtime/runtime_metrics_test.go index 56dd94b4d..f188e6483 100644 --- a/runtime/runtime_metrics_test.go +++ b/runtime/runtime_metrics_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/server_header.go b/runtime/server_header.go index 23f0c06fb..c4d3a7d38 100644 --- a/runtime/server_header.go +++ b/runtime/server_header.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/server_header_test.go b/runtime/server_header_test.go index ac1d46175..ac45fb9cb 100644 --- a/runtime/server_header_test.go +++ b/runtime/server_header_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/server_http_request.go b/runtime/server_http_request.go index 53fca540e..d5a2ba428 100644 --- a/runtime/server_http_request.go +++ b/runtime/server_http_request.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/server_http_request_test.go b/runtime/server_http_request_test.go index cb5446010..0a32babbe 100644 --- a/runtime/server_http_request_test.go +++ b/runtime/server_http_request_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/server_http_response.go b/runtime/server_http_response.go index 3a52ce0de..18de37fc9 100644 --- a/runtime/server_http_response.go +++ b/runtime/server_http_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/server_http_response_easyjson_test.go b/runtime/server_http_response_easyjson_test.go index e5259bbfd..90e1ef937 100644 --- a/runtime/server_http_response_easyjson_test.go +++ b/runtime/server_http_response_easyjson_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/server_http_response_test.go b/runtime/server_http_response_test.go index 03143f4e8..2026dce14 100644 --- a/runtime/server_http_response_test.go +++ b/runtime/server_http_response_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/static_config.go b/runtime/static_config.go index 0009dac6e..82d1ae9a5 100644 --- a/runtime/static_config.go +++ b/runtime/static_config.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -87,13 +87,13 @@ func ConfigFileContents(fileBytes []byte) *ConfigOption { // The files must be a list of YAML files. Each file must be a flat object of // key, value pairs. It's recommended that you use keys like: // -// { -// "name": "my-name", -// "clients.thingy": { -// "some client": "config" -// }, -// "server.my-port": 9999 -// } +// { +// "name": "my-name", +// "clients.thingy": { +// "some client": "config" +// }, +// "server.my-port": 9999 +// } // // To organize your configuration file. func NewStaticConfigOrDie( diff --git a/runtime/static_config_test.go b/runtime/static_config_test.go index dac81892a..d0375279c 100644 --- a/runtime/static_config_test.go +++ b/runtime/static_config_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_client.go b/runtime/tchannel_client.go index d4aae6d63..906d8a774 100644 --- a/runtime/tchannel_client.go +++ b/runtime/tchannel_client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_client_raw.go b/runtime/tchannel_client_raw.go index 3e18b2426..7391fc6ed 100644 --- a/runtime/tchannel_client_raw.go +++ b/runtime/tchannel_client_raw.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_client_test.go b/runtime/tchannel_client_test.go index 75610d8f2..f5c304030 100644 --- a/runtime/tchannel_client_test.go +++ b/runtime/tchannel_client_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_headers.go b/runtime/tchannel_headers.go index bc33f3fab..cfb3a8724 100644 --- a/runtime/tchannel_headers.go +++ b/runtime/tchannel_headers.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_headers_test.go b/runtime/tchannel_headers_test.go index 0dc3e5f9a..fa16fa700 100644 --- a/runtime/tchannel_headers_test.go +++ b/runtime/tchannel_headers_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_helpers.go b/runtime/tchannel_helpers.go index b36adea96..6c653e82d 100644 --- a/runtime/tchannel_helpers.go +++ b/runtime/tchannel_helpers.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_helpers_test.go b/runtime/tchannel_helpers_test.go index 67fce1d94..77cfca352 100644 --- a/runtime/tchannel_helpers_test.go +++ b/runtime/tchannel_helpers_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_inbound_call.go b/runtime/tchannel_inbound_call.go index a113d47d7..e6177f0f9 100644 --- a/runtime/tchannel_inbound_call.go +++ b/runtime/tchannel_inbound_call.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_interfaces.go b/runtime/tchannel_interfaces.go index 0ca9e222c..780b78ec5 100644 --- a/runtime/tchannel_interfaces.go +++ b/runtime/tchannel_interfaces.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_logger.go b/runtime/tchannel_logger.go index 4e86a876d..cf4a1a2f0 100644 --- a/runtime/tchannel_logger.go +++ b/runtime/tchannel_logger.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_logger_test.go b/runtime/tchannel_logger_test.go index 5970f8cc3..2a371b2d0 100644 --- a/runtime/tchannel_logger_test.go +++ b/runtime/tchannel_logger_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_metrics.go b/runtime/tchannel_metrics.go index 2b209d4c2..77df942ee 100644 --- a/runtime/tchannel_metrics.go +++ b/runtime/tchannel_metrics.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_metrics_test.go b/runtime/tchannel_metrics_test.go index 5b5f08c93..2a642dba7 100644 --- a/runtime/tchannel_metrics_test.go +++ b/runtime/tchannel_metrics_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_outbound_call.go b/runtime/tchannel_outbound_call.go index 85186028e..7d1689a5e 100644 --- a/runtime/tchannel_outbound_call.go +++ b/runtime/tchannel_outbound_call.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_server.go b/runtime/tchannel_server.go index 9c4fbb81e..3a2b5f541 100644 --- a/runtime/tchannel_server.go +++ b/runtime/tchannel_server.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_server_test.go b/runtime/tchannel_server_test.go index 00d9efcd6..15d363cce 100644 --- a/runtime/tchannel_server_test.go +++ b/runtime/tchannel_server_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/utils.go b/runtime/utils.go index 7b52806a1..3f3351e53 100644 --- a/runtime/utils.go +++ b/runtime/utils.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/utils_test.go b/runtime/utils_test.go index 3c8a26c8e..f1ad9a10d 100644 --- a/runtime/utils_test.go +++ b/runtime/utils_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/scripts/easy_json/easy_json.go b/scripts/easy_json/easy_json.go index adf6fabab..f2e362d5c 100644 --- a/scripts/easy_json/easy_json.go +++ b/scripts/easy_json/easy_json.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/scripts/resolve_i64/main.go b/scripts/resolve_i64/main.go index f996d2aea..bcea46f29 100644 --- a/scripts/resolve_i64/main.go +++ b/scripts/resolve_i64/main.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/scripts/resolve_thrift/main.go b/scripts/resolve_thrift/main.go index ffd7ae0f6..be1d840a2 100644 --- a/scripts/resolve_thrift/main.go +++ b/scripts/resolve_thrift/main.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/bootstrap_test.go b/test/bootstrap_test.go index c7960637b..3f8af6a30 100644 --- a/test/bootstrap_test.go +++ b/test/bootstrap_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/clients/bar/bar_test.go b/test/clients/bar/bar_test.go index b90c7ca94..f666efba5 100644 --- a/test/clients/bar/bar_test.go +++ b/test/clients/bar/bar_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/clients/baz/baz_test.go b/test/clients/baz/baz_test.go index 4177035ca..53bb61ce7 100644 --- a/test/clients/baz/baz_test.go +++ b/test/clients/baz/baz_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/clients/echo/echo_test.go b/test/clients/echo/echo_test.go index 810ca30ef..bcb1459f6 100644 --- a/test/clients/echo/echo_test.go +++ b/test/clients/echo/echo_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/config/config_test.go b/test/config/config_test.go index 28392a8e2..757d5e5da 100644 --- a/test/config/config_test.go +++ b/test/config/config_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/bar/bar_arg_with_headers_test.go b/test/endpoints/bar/bar_arg_with_headers_test.go index f3613dc44..532e913a2 100644 --- a/test/endpoints/bar/bar_arg_with_headers_test.go +++ b/test/endpoints/bar/bar_arg_with_headers_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/bar/bar_arg_with_params_test.go b/test/endpoints/bar/bar_arg_with_params_test.go index 61da314ae..20ca63129 100644 --- a/test/endpoints/bar/bar_arg_with_params_test.go +++ b/test/endpoints/bar/bar_arg_with_params_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/bar/bar_arg_with_query_params_test.go b/test/endpoints/bar/bar_arg_with_query_params_test.go index 7e5559bcf..2334caa5b 100644 --- a/test/endpoints/bar/bar_arg_with_query_params_test.go +++ b/test/endpoints/bar/bar_arg_with_query_params_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/bar/bar_hello_test.go b/test/endpoints/bar/bar_hello_test.go index 76673fee9..b04dec79f 100644 --- a/test/endpoints/bar/bar_hello_test.go +++ b/test/endpoints/bar/bar_hello_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/bar/bar_metrics_test.go b/test/endpoints/bar/bar_metrics_test.go index 3b75ed7d1..75339fabc 100644 --- a/test/endpoints/bar/bar_metrics_test.go +++ b/test/endpoints/bar/bar_metrics_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/bar/bar_normal_test.go b/test/endpoints/bar/bar_normal_test.go index 8e570faff..db5c18ace 100644 --- a/test/endpoints/bar/bar_normal_test.go +++ b/test/endpoints/bar/bar_normal_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/baz/baz_metrics_test.go b/test/endpoints/baz/baz_metrics_test.go index 6b91f6716..0965275b7 100644 --- a/test/endpoints/baz/baz_metrics_test.go +++ b/test/endpoints/baz/baz_metrics_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/baz/baz_simpleservice_method_call_test.go b/test/endpoints/baz/baz_simpleservice_method_call_test.go index 4a10c9560..33da9bf8f 100644 --- a/test/endpoints/baz/baz_simpleservice_method_call_test.go +++ b/test/endpoints/baz/baz_simpleservice_method_call_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/baz/baz_simpleservice_method_compare_test.go b/test/endpoints/baz/baz_simpleservice_method_compare_test.go index b55340de9..e7f452184 100644 --- a/test/endpoints/baz/baz_simpleservice_method_compare_test.go +++ b/test/endpoints/baz/baz_simpleservice_method_compare_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/baz/baz_simpleservice_method_ping_test.go b/test/endpoints/baz/baz_simpleservice_method_ping_test.go index 2d25c4bc2..347d04646 100644 --- a/test/endpoints/baz/baz_simpleservice_method_ping_test.go +++ b/test/endpoints/baz/baz_simpleservice_method_ping_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/baz/baz_simpleservice_method_silly_noop_test.go b/test/endpoints/baz/baz_simpleservice_method_silly_noop_test.go index ae8037bac..df1174973 100644 --- a/test/endpoints/baz/baz_simpleservice_method_silly_noop_test.go +++ b/test/endpoints/baz/baz_simpleservice_method_silly_noop_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/clientless/clientless_test.go b/test/endpoints/clientless/clientless_test.go index d67132bde..0cdb2d12f 100644 --- a/test/endpoints/clientless/clientless_test.go +++ b/test/endpoints/clientless/clientless_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/contacts/save_contacts_test.go b/test/endpoints/contacts/save_contacts_test.go index 8add7579b..796bc489d 100644 --- a/test/endpoints/contacts/save_contacts_test.go +++ b/test/endpoints/contacts/save_contacts_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/googlenow/googlenow_test.go b/test/endpoints/googlenow/googlenow_test.go index 05b395d1e..1cb6aea5c 100644 --- a/test/endpoints/googlenow/googlenow_test.go +++ b/test/endpoints/googlenow/googlenow_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/multi/multi_helloA_test.go b/test/endpoints/multi/multi_helloA_test.go index 72aaf3340..b6eafc151 100644 --- a/test/endpoints/multi/multi_helloA_test.go +++ b/test/endpoints/multi/multi_helloA_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/multi/multi_helloB_test.go b/test/endpoints/multi/multi_helloB_test.go index 2f0603a16..82092c24d 100644 --- a/test/endpoints/multi/multi_helloB_test.go +++ b/test/endpoints/multi/multi_helloB_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/tchannel/baz/baz_metrics_test.go b/test/endpoints/tchannel/baz/baz_metrics_test.go index cad87eeb5..1d7605ccc 100644 --- a/test/endpoints/tchannel/baz/baz_metrics_test.go +++ b/test/endpoints/tchannel/baz/baz_metrics_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/tchannel/baz/baz_simpleservice_method_call_test.go b/test/endpoints/tchannel/baz/baz_simpleservice_method_call_test.go index 3e92b2f7c..0a0ca236a 100644 --- a/test/endpoints/tchannel/baz/baz_simpleservice_method_call_test.go +++ b/test/endpoints/tchannel/baz/baz_simpleservice_method_call_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/health_test.go b/test/health_test.go index f45277340..2af6eb0ff 100644 --- a/test/health_test.go +++ b/test/health_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/jaeger_test.go b/test/jaeger_test.go index 645949c44..0dbb6a744 100644 --- a/test/jaeger_test.go +++ b/test/jaeger_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/bench_gateway/bench_gateway.go b/test/lib/bench_gateway/bench_gateway.go index 39966bf58..4316d2678 100644 --- a/test/lib/bench_gateway/bench_gateway.go +++ b/test/lib/bench_gateway/bench_gateway.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/sort_metrics.go b/test/lib/sort_metrics.go index ad8e84777..e1bd1825a 100644 --- a/test/lib/sort_metrics.go +++ b/test/lib/sort_metrics.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/test_backend/test_http_backend.go b/test/lib/test_backend/test_http_backend.go index 94996d5b5..8e49e5aea 100644 --- a/test/lib/test_backend/test_http_backend.go +++ b/test/lib/test_backend/test_http_backend.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/test_backend/test_tchannel_backend.go b/test/lib/test_backend/test_tchannel_backend.go index cfe1e6058..fe74f8808 100644 --- a/test/lib/test_backend/test_tchannel_backend.go +++ b/test/lib/test_backend/test_tchannel_backend.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/test_gateway/test_gateway.go b/test/lib/test_gateway/test_gateway.go index 97796abc3..38b3f4890 100644 --- a/test/lib/test_gateway/test_gateway.go +++ b/test/lib/test_gateway/test_gateway.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/test_gateway/test_gateway_cover.go b/test/lib/test_gateway/test_gateway_cover.go index e738be6ac..b2ff2a41f 100644 --- a/test/lib/test_gateway/test_gateway_cover.go +++ b/test/lib/test_gateway/test_gateway_cover.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/test_gateway/test_gateway_process.go b/test/lib/test_gateway/test_gateway_process.go index 422ddb6e3..030dbe28b 100644 --- a/test/lib/test_gateway/test_gateway_process.go +++ b/test/lib/test_gateway/test_gateway_process.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/test_m3_server/test_m3_server.go b/test/lib/test_m3_server/test_m3_server.go index 5f952bb71..6c39e5530 100644 --- a/test/lib/test_m3_server/test_m3_server.go +++ b/test/lib/test_m3_server/test_m3_server.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/util/util.go b/test/lib/util/util.go index ba53605da..8041f902b 100644 --- a/test/lib/util/util.go +++ b/test/lib/util/util.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/wait_at_least.go b/test/lib/wait_at_least.go index 6a20e31bb..c0f5ecd8a 100644 --- a/test/lib/wait_at_least.go +++ b/test/lib/wait_at_least.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -28,13 +28,13 @@ import ( // count are done. This avoids sync.WaitGroup panic when count is negative. // // Usage: -// wg := WaitAtLeast{} -// wg.Add(1) -// wg.Wait() -// go func() { -// wg.Done() -// }() // +// wg := WaitAtLeast{} +// wg.Add(1) +// wg.Wait() +// go func() { +// wg.Done() +// }() type WaitAtLeast struct { mutex sync.Mutex wg sync.WaitGroup diff --git a/test/test_circuit_breaker/circuitbreaker_test.go b/test/test_circuit_breaker/circuitbreaker_test.go index feec075a3..e59748878 100644 --- a/test/test_circuit_breaker/circuitbreaker_test.go +++ b/test/test_circuit_breaker/circuitbreaker_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal