Skip to content

Commit 5cdca41

Browse files
Added a Copyright check in the Makefile (#420)
* removed previous copyright header Signed-off-by: Yash Sharma <[email protected]> added a copyright header check in the lint target of Makefile Signed-off-by: Yash Sharma <[email protected]> modified copyright headers Signed-off-by: Yash Sharma <[email protected]> added efficientgo/copyright to bingo Signed-off-by: Yash Sharma <[email protected]> used bingo makefile commands for running copyright target Signed-off-by: Yash Sharma <[email protected]> reverted copyright headers Signed-off-by: Yash Sharma <[email protected]> renamed copyright naming Signed-off-by: Yash Sharma <[email protected]> renamed copyright headers Signed-off-by: Yash Sharma <[email protected]> added efficientgo/copyright in go mod Signed-off-by: Yash Sharma <[email protected]> Signed-off-by: Yash Sharma <[email protected]> ran go mod for openn metrics Signed-off-by: Yash Sharma <[email protected]> * rearranged some commands Signed-off-by: Yash Sharma <[email protected]> * fix extra line at end Signed-off-by: Yash Sharma <[email protected]>
1 parent 028d350 commit 5cdca41

File tree

108 files changed

+303
-105
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+303
-105
lines changed

.bingo/Variables.mk

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.3.0. DO NOT EDIT.
1+
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.4.0. DO NOT EDIT.
22
# All tools are designed to be build inside $GOBIN.
33
BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
44
GOPATH ?= $(shell go env GOPATH)
55
GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin
66
GO ?= $(shell which go)
77

8-
# Bellow generated variables ensure that every time a tool under each variable is invoked, the correct version
8+
# Below generated variables ensure that every time a tool under each variable is invoked, the correct version
99
# will be used; reinstalling only if needed.
1010
# For example for bingo variable:
1111
#
@@ -29,6 +29,12 @@ $(BUF): $(BINGO_DIR)/buf.mod
2929
@echo "(re)installing $(GOBIN)/buf-v0.35.1"
3030
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buf.mod -o=$(GOBIN)/buf-v0.35.1 "github.com/bufbuild/buf/cmd/buf"
3131

32+
COPYRIGHT := $(GOBIN)/copyright-v0.0.0-20210326193628-425a09c04e05
33+
$(COPYRIGHT): $(BINGO_DIR)/copyright.mod
34+
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
35+
@echo "(re)installing $(GOBIN)/copyright-v0.0.0-20210326193628-425a09c04e05"
36+
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=copyright.mod -o=$(GOBIN)/copyright-v0.0.0-20210326193628-425a09c04e05 "github.com/efficientgo/tools/copyright"
37+
3238
FAILLINT := $(GOBIN)/faillint-v1.5.0
3339
$(FAILLINT): $(BINGO_DIR)/faillint.mod
3440
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.

.bingo/copyright.mod

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
2+
3+
go 1.16
4+
5+
require github.com/efficientgo/tools/copyright v0.0.0-20210326193628-425a09c04e05

.bingo/variables.env

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.3.0. DO NOT EDIT.
1+
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.4.0. DO NOT EDIT.
22
# All tools are designed to be build inside $GOBIN.
33
# Those variables will work only until 'bingo get' was invoked, or if tools were installed via Makefile's Variables.mk.
44
GOBIN=${GOBIN:=$(go env GOBIN)}
@@ -12,6 +12,8 @@ BINGO="${GOBIN}/bingo-v0.3.0"
1212

1313
BUF="${GOBIN}/buf-v0.35.1"
1414

15+
COPYRIGHT="${GOBIN}/copyright-v0.0.0-20210326193628-425a09c04e05"
16+
1517
FAILLINT="${GOBIN}/faillint-v1.5.0"
1618

1719
GOIMPORTS="${GOBIN}/goimports-v0.0.0-20200529172331-a64b76657301"

COPYRIGHT

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Copyright (c) The go-grpc-middleware Authors.
2+
Licensed under the Apache License 2.0.

Makefile

+12-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ test:
4646
for dir in $(MODULES) ; do \
4747
$(MAKE) test_module DIR=$${dir} ; \
4848
done
49-
./scripts/test_all.sh
49+
@./scripts/test_all.sh
5050

5151
.PHONY: test_module
5252
test_module:
@@ -68,14 +68,21 @@ deps:
6868
# --mem-profile-path string Path to memory profile output file
6969
# to debug big allocations during linting.
7070
lint: ## Runs various static analysis tools against our code.
71-
lint: $(BUF) fmt
71+
lint: $(BUF) $(COPYRIGHT) fmt
7272
@echo ">> lint proto files"
7373
@$(BUF) lint
74+
7475
@echo "Running lint for all modules: $(MODULES)"
75-
./scripts/git-tree.sh
76+
@./scripts/git-tree.sh
7677
for dir in $(MODULES) ; do \
7778
$(MAKE) lint_module DIR=$${dir} ; \
7879
done
80+
@$(call require_clean_work_tree,"lint and format files")
81+
82+
@echo ">> ensuring copyright headers"
83+
@$(COPYRIGHT) $(shell go list -f "{{.Dir}}" ./... | xargs -i find "{}" -name "*.go")
84+
@$(call require_clean_work_tree,"set copyright headers")
85+
@echo ">> ensured all .go files have copyright headers"
7986

8087
.PHONY: lint_module
8188
# PROTIP:
@@ -87,8 +94,10 @@ lint_module: ## Runs various static analysis against our code.
8794
lint_module: $(FAILLINT) $(GOLANGCI_LINT) $(MISSPELL)
8895
@echo ">> verifying modules being imported"
8996
@cd $(DIR) && $(FAILLINT) -paths "errors=github.com/pkg/errors,fmt.{Print,Printf,Println}" ./...
97+
9098
@echo ">> examining all of the Go files"
9199
@cd $(DIR) && go vet -stdmethods=false ./...
100+
92101
@echo ">> linting all of the Go files GOGC=${GOGC}"
93102
@cd $(DIR) && $(GOLANGCI_LINT) run
94103
@./scripts/git-tree.sh

chain.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Copyright 2016 Michal Witkowski. All Rights Reserved.
2-
// See LICENSE for licensing terms.
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
33

44
// gRPC Server Interceptor chaining middleware.
55

doc.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Copyright 2016 Michal Witkowski. All Rights Reserved.
2-
// See LICENSE for licensing terms.
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
33

44
/*
55
`middleware` is a collection of gRPC middleware packages: interceptors, helpers and tools.

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/opentracing/opentracing-go v1.1.0
88
github.com/pkg/errors v0.9.1
99
github.com/stretchr/testify v1.7.0
10-
golang.org/x/net v0.0.0-20190620200207-3b0461eec859
10+
golang.org/x/net v0.0.0-20200822124328-c89045814202
1111
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be
1212
google.golang.org/grpc v1.30.1
1313
google.golang.org/grpc/examples v0.0.0-20200723182653-9106c3fff523

go.sum

+7-3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+
4141
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
4242
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
4343
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
44+
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
4445
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
4546
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
4647
golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
@@ -49,16 +50,19 @@ golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73r
4950
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
5051
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
5152
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
52-
golang.org/x/net v0.0.0-20190620200207-3b0461eec859 h1:R/3boaszxrf1GEUWTVDzSKVwLmSJpwZ1yqXm8j0v2QI=
53-
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
53+
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
54+
golang.org/x/net v0.0.0-20200822124328-c89045814202 h1:VvcQYSHwXgi7W+TpUR6A9g6Up98WAHf3f/ulnJ62IyA=
55+
golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
5456
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be h1:vEDujvNQGv4jgYKudGeI/+DAX4Jffq6hpD55MmoEvKs=
5557
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
5658
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
5759
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
5860
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
5961
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
60-
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a h1:1BGLXjeY4akVXGgbC9HugT3Jv3hCI0z56oJR5vAMgBU=
6162
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
63+
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
64+
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd h1:xhmwyvizuTgC2qz7ZlMluP20uW+C3Rm0FD/WLDX8884=
65+
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
6266
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
6367
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
6468
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=

interceptors/auth/auth.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Copyright 2016 Michal Witkowski. All Rights Reserved.
2-
// See LICENSE for licensing terms.
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
33

44
package auth
55

interceptors/auth/auth_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Copyright 2016 Michal Witkowski. All Rights Reserved.
2-
// See LICENSE for licensing terms.
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
33

44
package auth_test
55

interceptors/auth/doc.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Copyright 2016 Michal Witkowski. All Rights Reserved.
2-
// See LICENSE for licensing terms.
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
33

44
/*
55
`auth` a generic server-side auth middleware for gRPC.

interceptors/auth/examples_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
3+
14
package auth_test
25

36
import (

interceptors/auth/metadata.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Copyright 2016 Michal Witkowski. All Rights Reserved.
2-
// See LICENSE for licensing terms.
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
33

44
package auth
55

interceptors/auth/metadata_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Copyright 2016 Michal Witkowski. All Rights Reserved.
2-
// See LICENSE for licensing terms.
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
33

44
package auth
55

interceptors/client.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Copyright 2016 Michal Witkowski. All Rights Reserved.
2-
// See LICENSE for licensing terms.
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
33

44
// Go gRPC Middleware monitoring interceptors for client-side gRPC.
55

interceptors/client_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Copyright 2016 Michal Witkowski. All Rights Reserved.
2-
// See LICENSE for licensing terms.
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
33

44
package interceptors
55

interceptors/doc.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Copyright 2017 Michal Witkowski. All Rights Reserved.
2-
// See LICENSE for licensing terms.
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
33

44
//
55
/*

interceptors/logging/doc.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
// Copyright 2017 Michal Witkowski. All Rights Reserved.
2-
// See LICENSE for licensing terms.
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
33

4-
//
54
/*
65
logging is a "parent" package for gRPC logging middlewares.
76

interceptors/logging/interceptors.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
3+
14
package logging
25

36
import (

interceptors/logging/interceptors_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
3+
14
package logging_test
25

36
import (

interceptors/logging/logging.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Copyright 2017 Michal Witkowski. All Rights Reserved.
2-
// See LICENSE for licensing terms.
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
33

44
package logging
55

interceptors/logging/options.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
3+
14
package logging
25

36
import (

interceptors/logging/payload.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
3+
14
package logging
25

36
import (

interceptors/logging/payload_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
3+
14
package logging_test
25

36
import (

interceptors/ratelimit/doc.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
3+
14
/*
25
`ratelimit` a generic server-side ratelimit middleware for gRPC.
36

interceptors/ratelimit/examples_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
3+
14
package ratelimit_test
25

36
import (

interceptors/ratelimit/ratelimit.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
3+
14
package ratelimit
25

36
import (

interceptors/ratelimit/ratelimit_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
3+
14
package ratelimit
25

36
import (

interceptors/recovery/doc.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
3+
14
// Copyright 2017 David Ackroyd. All Rights Reserved.
25
// See LICENSE for licensing terms.
36

interceptors/recovery/examples_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
3+
14
// Copyright 2017 David Ackroyd. All Rights Reserved.
25
// See LICENSE for licensing terms.
36

interceptors/recovery/interceptors.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
3+
14
// Copyright 2017 David Ackroyd. All Rights Reserved.
25
// See LICENSE for licensing terms.
36

interceptors/recovery/interceptors_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
3+
14
// Copyright 2017 David Ackroyd. All Rights Reserved.
25
// See LICENSE for licensing terms.
36

interceptors/recovery/options.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
3+
14
// Copyright 2017 David Ackroyd. All Rights Reserved.
25
// See LICENSE for licensing terms.
36

interceptors/reporter.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Copyright 2016 Michal Witkowski. All Rights Reserved.
2-
// See LICENSE for licensing terms.
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
33

44
package interceptors
55

interceptors/retry/backoff.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Copyright 2016 Michal Witkowski. All Rights Reserved.
2-
// See LICENSE for licensing terms.
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
33

44
package retry
55

interceptors/retry/doc.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Copyright 2016 Michal Witkowski. All Rights Reserved.
2-
// See LICENSE for licensing terms.
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
33

44
/*
55
`retry` provides client-side request retry logic for gRPC.

interceptors/retry/examples_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Copyright 2016 Michal Witkowski. All Rights Reserved.
2-
// See LICENSE for licensing terms.
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
33

44
package retry_test
55

interceptors/retry/options.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Copyright 2016 Michal Witkowski. All Rights Reserved.
2-
// See LICENSE for licensing terms.
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
33

44
package retry
55

interceptors/retry/retry.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Copyright 2016 Michal Witkowski. All Rights Reserved.
2-
// See LICENSE for licensing terms.
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
33

44
package retry
55

interceptors/retry/retry_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Copyright 2016 Michal Witkowski. All Rights Reserved.
2-
// See LICENSE for licensing terms.
1+
// Copyright (c) The go-grpc-middleware Authors.
2+
// Licensed under the Apache License 2.0.
33

44
package retry_test
55

0 commit comments

Comments
 (0)