From 1b74ff73cb919adf80a67dadf44dc6434324782b Mon Sep 17 00:00:00 2001 From: toimtoimtoim Date: Mon, 22 May 2023 16:00:47 +0300 Subject: [PATCH] Add SDPX licence identifier to source files. https://spdx.org/licenses/ --- casbin/casbin.go | 3 +++ casbin/casbin_test.go | 3 +++ echo.go | 3 +++ echoprometheus/prometheus.go | 3 +++ echoprometheus/prometheus_test.go | 3 +++ jaegertracing/jaegertracing.go | 3 +++ jaegertracing/jaegertracing_test.go | 3 +++ jaegertracing/response_dumper.go | 3 +++ pprof/pprof.go | 3 +++ pprof/pprof_test.go | 3 +++ prometheus/prometheus.go | 3 +++ prometheus/prometheus_test.go | 3 +++ session/session.go | 3 +++ session/session_test.go | 3 +++ zipkintracing/response_writer.go | 3 +++ zipkintracing/tracing.go | 7 +++++-- zipkintracing/tracing_test.go | 3 +++ 17 files changed, 53 insertions(+), 2 deletions(-) diff --git a/casbin/casbin.go b/casbin/casbin.go index 5f67b3f..c56fd01 100644 --- a/casbin/casbin.go +++ b/casbin/casbin.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: © 2017 LabStack and Echo contributors + /* Package casbin provides middleware to enable ACL, RBAC, ABAC authorization support. Simple example: diff --git a/casbin/casbin_test.go b/casbin/casbin_test.go index bcaaded..5d4c8fb 100644 --- a/casbin/casbin_test.go +++ b/casbin/casbin_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: © 2017 LabStack and Echo contributors + package casbin import ( diff --git a/echo.go b/echo.go index e1859cb..ac79d19 100644 --- a/echo.go +++ b/echo.go @@ -1 +1,4 @@ +// SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: © 2017 LabStack and Echo contributors + package echo diff --git a/echoprometheus/prometheus.go b/echoprometheus/prometheus.go index 15164bd..9907e8e 100644 --- a/echoprometheus/prometheus.go +++ b/echoprometheus/prometheus.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: © 2017 LabStack and Echo contributors + /* Package echoprometheus provides middleware to add Prometheus metrics. */ diff --git a/echoprometheus/prometheus_test.go b/echoprometheus/prometheus_test.go index c56c08d..e4397b4 100644 --- a/echoprometheus/prometheus_test.go +++ b/echoprometheus/prometheus_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: © 2017 LabStack and Echo contributors + package echoprometheus import ( diff --git a/jaegertracing/jaegertracing.go b/jaegertracing/jaegertracing.go index 529cc3c..d3413d1 100644 --- a/jaegertracing/jaegertracing.go +++ b/jaegertracing/jaegertracing.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: © 2017 LabStack and Echo contributors + /* Package jaegertracing provides middleware to Opentracing using Jaeger. diff --git a/jaegertracing/jaegertracing_test.go b/jaegertracing/jaegertracing_test.go index 893bc48..a06c62b 100644 --- a/jaegertracing/jaegertracing_test.go +++ b/jaegertracing/jaegertracing_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: © 2017 LabStack and Echo contributors + package jaegertracing import ( diff --git a/jaegertracing/response_dumper.go b/jaegertracing/response_dumper.go index 96e34bb..fdc1ac3 100644 --- a/jaegertracing/response_dumper.go +++ b/jaegertracing/response_dumper.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: © 2017 LabStack and Echo contributors + package jaegertracing import ( diff --git a/pprof/pprof.go b/pprof/pprof.go index 0e124f8..cbb2fd7 100644 --- a/pprof/pprof.go +++ b/pprof/pprof.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: © 2017 LabStack and Echo contributors + package pprof import ( diff --git a/pprof/pprof_test.go b/pprof/pprof_test.go index 7fdc24a..5f1626a 100644 --- a/pprof/pprof_test.go +++ b/pprof/pprof_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: © 2017 LabStack and Echo contributors + package pprof import ( diff --git a/prometheus/prometheus.go b/prometheus/prometheus.go index 26ee6b8..27324a7 100644 --- a/prometheus/prometheus.go +++ b/prometheus/prometheus.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: © 2017 LabStack and Echo contributors + /* Package prometheus provides middleware to add Prometheus metrics. diff --git a/prometheus/prometheus_test.go b/prometheus/prometheus_test.go index 0e03a6d..8c4f40a 100644 --- a/prometheus/prometheus_test.go +++ b/prometheus/prometheus_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: © 2017 LabStack and Echo contributors + package prometheus import ( diff --git a/session/session.go b/session/session.go index e161b18..e4386a2 100644 --- a/session/session.go +++ b/session/session.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: © 2017 LabStack and Echo contributors + package session import ( diff --git a/session/session_test.go b/session/session_test.go index cf34d57..552245c 100644 --- a/session/session_test.go +++ b/session/session_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: © 2017 LabStack and Echo contributors + package session import ( diff --git a/zipkintracing/response_writer.go b/zipkintracing/response_writer.go index d194673..407b193 100644 --- a/zipkintracing/response_writer.go +++ b/zipkintracing/response_writer.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: © 2017 LabStack and Echo contributors + package zipkintracing import ( diff --git a/zipkintracing/tracing.go b/zipkintracing/tracing.go index fddc5a0..ae0fca4 100644 --- a/zipkintracing/tracing.go +++ b/zipkintracing/tracing.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: © 2017 LabStack and Echo contributors + package zipkintracing import ( @@ -66,7 +69,7 @@ func TraceFunc(c echo.Context, spanName string, spanTags Tags, tracer *zipkin.Tr return finishSpan } -//TraceProxy middleware that traces reverse proxy +// TraceProxy middleware that traces reverse proxy func TraceProxy(tracer *zipkin.Tracer) echo.MiddlewareFunc { config := DefaultTraceProxyConfig config.Tracer = tracer @@ -111,7 +114,7 @@ func TraceProxyWithConfig(config TraceProxyConfig) echo.MiddlewareFunc { } } -//TraceServer middleware that traces server calls +// TraceServer middleware that traces server calls func TraceServer(tracer *zipkin.Tracer) echo.MiddlewareFunc { config := DefaultTraceServerConfig config.Tracer = tracer diff --git a/zipkintracing/tracing_test.go b/zipkintracing/tracing_test.go index 4a1120b..7f4e2e2 100644 --- a/zipkintracing/tracing_test.go +++ b/zipkintracing/tracing_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: © 2017 LabStack and Echo contributors + package zipkintracing import (