From 914aa119db761ac97743cddbb6c5f58ffebd22f1 Mon Sep 17 00:00:00 2001 From: Volker Schukai <volker.schukai@schukai.com> Date: Fri, 1 Dec 2023 19:42:01 +0100 Subject: [PATCH] chore: license comment --- Taskfile.yml | 5 +---- config.go | 3 +++ database.go | 3 +++ database_test.go | 3 +++ devenv.nix | 5 +---- errors.go | 3 +++ event-bus.go | 3 +++ event-bus_test.go | 3 +++ example_test.go | 3 +++ exit-codes.go | 3 +++ go.mod | 6 +++--- go.sum | 6 ++++++ issue-1_test.go | 3 +++ job-generic.go | 3 +++ job-handler.go | 3 +++ job-log.go | 3 +++ job-stat.go | 3 +++ job.go | 3 +++ job_test.go | 3 +++ json-map.go | 3 +++ logger.go | 3 +++ manager.go | 3 +++ manager_test.go | 3 +++ persistence.go | 3 +++ persistence_test.go | 3 +++ queue.go | 3 +++ queue_test.go | 3 +++ runnable-counter.go | 3 +++ runnable-counter_test.go | 3 +++ runnable-dummy.go | 3 +++ runnable-dummy_test.go | 3 +++ runnable-fileoperation.go | 3 +++ runnable-fileoperation_test.go | 3 +++ runnable-gorm.go | 3 +++ runnable-gorm_test.go | 3 +++ runnable-http.go | 3 +++ runnable-http_test.go | 3 +++ runnable-mail.go | 3 +++ runnable-mail_test.go | 3 +++ runnable-sftp.go | 3 +++ runnable-sftp_test.go | 3 +++ runnable-shell.go | 3 +++ runnable-shell_test.go | 3 +++ runnable.go | 3 +++ runnable_test.go | 3 +++ schedule-cron.go | 3 +++ schedule-delay.go | 3 +++ schedule-interval.go | 3 +++ schedule-time.go | 3 +++ scheduler-event.go | 3 +++ scheduler-inotify.go | 3 +++ scheduler-instant.go | 3 +++ scheduler.go | 3 +++ scheduler_test.go | 3 +++ stat.go | 3 +++ stat_test.go | 3 +++ time-formats.go | 3 +++ topological-sort.go | 3 +++ topological-sort_test.go | 3 +++ util.go | 3 +++ worker.go | 3 +++ worker_test.go | 3 +++ 62 files changed, 185 insertions(+), 11 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index 69daba1..deefc9e 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -23,10 +23,7 @@ tasks: - docker pull atmoz/sftp:alpine - docker pull axllent/mailpit - echo "Execute unit tests in Go." - - gosec . - - go test -tags=runOnTask -cover -v ./... - - go test -tags=runOnTask -bench -v ./... - - go test -tags=runOnTask -race -v ./... + - test-lib test-fuzz: desc: Conduct fuzzing tests.# diff --git a/config.go b/config.go index 3d1ca53..c9ce558 100644 --- a/config.go +++ b/config.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue var globalTableNamePrefix = "job_queue_" diff --git a/database.go b/database.go index dd9156b..17a247a 100644 --- a/database.go +++ b/database.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/database_test.go b/database_test.go index b1b2a74..1c969a9 100644 --- a/database_test.go +++ b/database_test.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + //go:build !runOnTask package jobqueue diff --git a/devenv.nix b/devenv.nix index b3621d3..4c8b3ad 100644 --- a/devenv.nix +++ b/devenv.nix @@ -322,10 +322,7 @@ tasks: - docker pull atmoz/sftp:alpine - docker pull axllent/mailpit - echo "Execute unit tests in Go." - - gosec . - - go test -tags=runOnTask -cover -v ./... - - go test -tags=runOnTask -bench -v ./... - - go test -tags=runOnTask -race -v ./... + - test-lib test-fuzz: desc: Conduct fuzzing tests.# diff --git a/errors.go b/errors.go index 55c2367..3e1294e 100644 --- a/errors.go +++ b/errors.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/event-bus.go b/event-bus.go index 9892af5..bf9f491 100644 --- a/event-bus.go +++ b/event-bus.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/event-bus_test.go b/event-bus_test.go index 67c78ed..dfedcf6 100644 --- a/event-bus_test.go +++ b/event-bus_test.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/example_test.go b/example_test.go index d0a9b76..ba5b636 100644 --- a/example_test.go +++ b/example_test.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/exit-codes.go b/exit-codes.go index c0efd01..312dd42 100644 --- a/exit-codes.go +++ b/exit-codes.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue const ( diff --git a/go.mod b/go.mod index 55c99eb..fbe98cd 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/google/uuid v1.4.0 github.com/pkg/sftp v1.13.6 github.com/robfig/cron/v3 v3.0.1 - github.com/shirou/gopsutil/v3 v3.23.10 + github.com/shirou/gopsutil/v3 v3.23.11 github.com/stretchr/testify v1.8.4 go.uber.org/zap v1.26.0 golang.org/x/crypto v0.16.0 @@ -41,8 +41,8 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/power-devops/perfstat v0.0.0-20221212215047-62379fc7944b // indirect github.com/shoenig/go-m1cpu v0.1.6 // indirect - github.com/tklauser/go-sysconf v0.3.12 // indirect - github.com/tklauser/numcpus v0.6.1 // indirect + github.com/tklauser/go-sysconf v0.3.13 // indirect + github.com/tklauser/numcpus v0.7.0 // indirect github.com/yusufpapurcu/wmi v1.2.3 // indirect go.uber.org/multierr v1.11.0 // indirect golang.org/x/mod v0.8.0 // indirect diff --git a/go.sum b/go.sum index 451a031..16a60ca 100644 --- a/go.sum +++ b/go.sum @@ -68,6 +68,8 @@ github.com/shirou/gopsutil/v3 v3.23.9 h1:ZI5bWVeu2ep4/DIxB4U9okeYJ7zp/QLTO4auRb/ github.com/shirou/gopsutil/v3 v3.23.9/go.mod h1:x/NWSb71eMcjFIO0vhyGW5nZ7oSIgVjrCnADckb85GA= github.com/shirou/gopsutil/v3 v3.23.10 h1:/N42opWlYzegYaVkWejXWJpbzKv2JDy3mrgGzKsh9hM= github.com/shirou/gopsutil/v3 v3.23.10/go.mod h1:JIE26kpucQi+innVlAUnIEOSBhBUkirr5b44yr55+WE= +github.com/shirou/gopsutil/v3 v3.23.11 h1:i3jP9NjCPUz7FiZKxlMnODZkdSIp2gnzfrvsu9CuWEQ= +github.com/shirou/gopsutil/v3 v3.23.11/go.mod h1:1FrWgea594Jp7qmjHUUPlJDTPgcsb9mGnXDxavtikzM= github.com/shoenig/go-m1cpu v0.1.6 h1:nxdKQNcEB6vzgA2E2bvzKIYRuNj7XNJ4S/aRSwKzFtM= github.com/shoenig/go-m1cpu v0.1.6/go.mod h1:1JJMcUBvfNwpq05QDQVAnx3gUHr9IYF7GNg9SUEw2VQ= github.com/shoenig/test v0.6.4 h1:kVTaSd7WLz5WZ2IaoM0RSzRsUD+m8wRR+5qvntpn4LU= @@ -81,8 +83,12 @@ github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcU github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/tklauser/go-sysconf v0.3.12 h1:0QaGUFOdQaIVdPgfITYzaTegZvdCjmYO52cSFAEVmqU= github.com/tklauser/go-sysconf v0.3.12/go.mod h1:Ho14jnntGE1fpdOqQEEaiKRpvIavV0hSfmBq8nJbHYI= +github.com/tklauser/go-sysconf v0.3.13 h1:GBUpcahXSpR2xN01jhkNAbTLRk2Yzgggk8IM08lq3r4= +github.com/tklauser/go-sysconf v0.3.13/go.mod h1:zwleP4Q4OehZHGn4CYZDipCgg9usW5IJePewFCGVEa0= github.com/tklauser/numcpus v0.6.1 h1:ng9scYS7az0Bk4OZLvrNXNSAO2Pxr1XXRAPyjhIx+Fk= github.com/tklauser/numcpus v0.6.1/go.mod h1:1XfjsgE2zo8GVw7POkMbHENHzVg3GzmoZ9fESEdAacY= +github.com/tklauser/numcpus v0.7.0 h1:yjuerZP127QG9m5Zh/mSO4wqurYil27tHrqwRoRjpr4= +github.com/tklauser/numcpus v0.7.0/go.mod h1:bb6dMVcj8A42tSE7i32fsIUCbQNllK5iDguyOZRUzAY= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= diff --git a/issue-1_test.go b/issue-1_test.go index a304eb7..1915a4c 100644 --- a/issue-1_test.go +++ b/issue-1_test.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + //go:build !runOnTask package jobqueue diff --git a/job-generic.go b/job-generic.go index 57f24b5..eaaaf87 100644 --- a/job-generic.go +++ b/job-generic.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/job-handler.go b/job-handler.go index 8308aab..9457663 100644 --- a/job-handler.go +++ b/job-handler.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue type CompletedJobHandler interface { diff --git a/job-log.go b/job-log.go index a59ef8f..4b2c2e1 100644 --- a/job-log.go +++ b/job-log.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/job-stat.go b/job-stat.go index 75c643a..4d6976d 100644 --- a/job-stat.go +++ b/job-stat.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/job.go b/job.go index 6db30ec..b0b554e 100644 --- a/job.go +++ b/job.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/job_test.go b/job_test.go index e09377d..55138d9 100644 --- a/job_test.go +++ b/job_test.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/json-map.go b/json-map.go index 69e4b06..3f14db0 100644 --- a/json-map.go +++ b/json-map.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/logger.go b/logger.go index 46e253a..7a74477 100644 --- a/logger.go +++ b/logger.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import "go.uber.org/zap" diff --git a/manager.go b/manager.go index cc9d6bd..8a6fa56 100644 --- a/manager.go +++ b/manager.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/manager_test.go b/manager_test.go index 90cf408..2282484 100644 --- a/manager_test.go +++ b/manager_test.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/persistence.go b/persistence.go index 9b09bed..1c33f8d 100644 --- a/persistence.go +++ b/persistence.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/persistence_test.go b/persistence_test.go index 32094c4..9cc2d89 100644 --- a/persistence_test.go +++ b/persistence_test.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/queue.go b/queue.go index 069af8f..1df0d3e 100644 --- a/queue.go +++ b/queue.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/queue_test.go b/queue_test.go index 7ce5f40..45976c9 100644 --- a/queue_test.go +++ b/queue_test.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/runnable-counter.go b/runnable-counter.go index 5ae846f..e24517d 100644 --- a/runnable-counter.go +++ b/runnable-counter.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/runnable-counter_test.go b/runnable-counter_test.go index 16841ff..6508d04 100644 --- a/runnable-counter_test.go +++ b/runnable-counter_test.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/runnable-dummy.go b/runnable-dummy.go index 14b68ab..86d2c62 100644 --- a/runnable-dummy.go +++ b/runnable-dummy.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import "context" diff --git a/runnable-dummy_test.go b/runnable-dummy_test.go index 7978128..158e412 100644 --- a/runnable-dummy_test.go +++ b/runnable-dummy_test.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/runnable-fileoperation.go b/runnable-fileoperation.go index 97a79ad..a24acb8 100644 --- a/runnable-fileoperation.go +++ b/runnable-fileoperation.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/runnable-fileoperation_test.go b/runnable-fileoperation_test.go index 79ebaec..c8a71f3 100644 --- a/runnable-fileoperation_test.go +++ b/runnable-fileoperation_test.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/runnable-gorm.go b/runnable-gorm.go index f9f7239..b6d81ba 100644 --- a/runnable-gorm.go +++ b/runnable-gorm.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/runnable-gorm_test.go b/runnable-gorm_test.go index d9f8f71..e6e36d8 100644 --- a/runnable-gorm_test.go +++ b/runnable-gorm_test.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/runnable-http.go b/runnable-http.go index b1a56d0..37fd088 100644 --- a/runnable-http.go +++ b/runnable-http.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/runnable-http_test.go b/runnable-http_test.go index 5fad88d..5c554aa 100644 --- a/runnable-http_test.go +++ b/runnable-http_test.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/runnable-mail.go b/runnable-mail.go index a656890..b1b8dc9 100644 --- a/runnable-mail.go +++ b/runnable-mail.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/runnable-mail_test.go b/runnable-mail_test.go index 8492e6e..75621dc 100644 --- a/runnable-mail_test.go +++ b/runnable-mail_test.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/runnable-sftp.go b/runnable-sftp.go index c526e23..94ec1e2 100644 --- a/runnable-sftp.go +++ b/runnable-sftp.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/runnable-sftp_test.go b/runnable-sftp_test.go index 7396734..7feff24 100644 --- a/runnable-sftp_test.go +++ b/runnable-sftp_test.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/runnable-shell.go b/runnable-shell.go index 8d29e24..ed79f3f 100644 --- a/runnable-shell.go +++ b/runnable-shell.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/runnable-shell_test.go b/runnable-shell_test.go index a67e015..f768eb3 100644 --- a/runnable-shell_test.go +++ b/runnable-shell_test.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/runnable.go b/runnable.go index 2143e1e..c0bab85 100644 --- a/runnable.go +++ b/runnable.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/runnable_test.go b/runnable_test.go index 037d546..30f1813 100644 --- a/runnable_test.go +++ b/runnable_test.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/schedule-cron.go b/schedule-cron.go index 4a99d7e..ab48dbd 100644 --- a/schedule-cron.go +++ b/schedule-cron.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/schedule-delay.go b/schedule-delay.go index 3c89425..fbc6bc1 100644 --- a/schedule-delay.go +++ b/schedule-delay.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/schedule-interval.go b/schedule-interval.go index 3029824..4766a0e 100644 --- a/schedule-interval.go +++ b/schedule-interval.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/schedule-time.go b/schedule-time.go index b49efa3..f6aa754 100644 --- a/schedule-time.go +++ b/schedule-time.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/scheduler-event.go b/scheduler-event.go index 80ca022..e5b8343 100644 --- a/scheduler-event.go +++ b/scheduler-event.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import "fmt" diff --git a/scheduler-inotify.go b/scheduler-inotify.go index 417c99e..e605dbf 100644 --- a/scheduler-inotify.go +++ b/scheduler-inotify.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/scheduler-instant.go b/scheduler-instant.go index b209767..7c88c91 100644 --- a/scheduler-instant.go +++ b/scheduler-instant.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue // InstantScheduler is a scheduler that schedules a job instantly diff --git a/scheduler.go b/scheduler.go index 3215424..7944056 100644 --- a/scheduler.go +++ b/scheduler.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/scheduler_test.go b/scheduler_test.go index f5e3791..a37dc3d 100644 --- a/scheduler_test.go +++ b/scheduler_test.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/stat.go b/stat.go index ca0f5fa..2179936 100644 --- a/stat.go +++ b/stat.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/stat_test.go b/stat_test.go index 72c7741..f488897 100644 --- a/stat_test.go +++ b/stat_test.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/time-formats.go b/time-formats.go index cf80a68..52529de 100644 --- a/time-formats.go +++ b/time-formats.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import "time" diff --git a/topological-sort.go b/topological-sort.go index 748b580..ae0d36c 100644 --- a/topological-sort.go +++ b/topological-sort.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import "container/heap" diff --git a/topological-sort_test.go b/topological-sort_test.go index 430d515..15fb56e 100644 --- a/topological-sort_test.go +++ b/topological-sort_test.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/util.go b/util.go index 0fd0e2c..28567b5 100644 --- a/util.go +++ b/util.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue // safeClose closes the given channel and returns an error if the channel is already closed diff --git a/worker.go b/worker.go index 3b9e95f..ba823ee 100644 --- a/worker.go +++ b/worker.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( diff --git a/worker_test.go b/worker_test.go index 464bb6c..b5ab55b 100644 --- a/worker_test.go +++ b/worker_test.go @@ -1,3 +1,6 @@ +// Copyright 2023 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0 + package jobqueue import ( -- GitLab