4 Commits

4 changed files with 68 additions and 7 deletions

3
.gitignore vendored
View File

@@ -45,3 +45,6 @@ coverage/
*.p12
*.pfx
secrets/
# Build
*.zip

25
LICENSE
View File

@@ -1,8 +1,21 @@
Copyright (c) 2026 Evercatch. All rights reserved.
MIT License
This software and its source code are proprietary and confidential.
Unauthorised copying, distribution, modification, or use of this software,
in whole or in part, via any medium, is strictly prohibited without the
prior written permission of Evercatch.
Copyright (c) 2026 Evercatch
For licensing enquiries, contact: legal@evercatch.io
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

45
Makefile Normal file
View File

@@ -0,0 +1,45 @@
# Makefile for publishing Go modules to Gitea Package Registry
# --- Configuration ---
# Set this to the exact module path from your go.mod file.
MODULE_PATH := git.psmattas.com/evercatch/evercatch-go
GITEA_OWNER := Evercatch
GITEA_REGISTRY_URL := https://git.psmattas.com/api/packages/$(GITEA_OWNER)/go/upload
# --- Variables (do not edit) ---
# Automatically gets the latest git tag (e.g., v0.0.2)
VERSION := $(shell git describe --tags --abbrev=0)
ZIP_FILENAME := $(VERSION).zip
# Reads the Gitea token from your environment.
# Must be run as: GITEA_TOKEN=... make publish
TOKEN := ${GITEA_TOKEN}
# --- Commands ---
# This is a special directive to tell Make that these are command names, not files.
.PHONY: all publish package clean
all: publish
# packages the module into a correctly structured zip file.
package:
@echo "📦 Packaging module $(MODULE_PATH) version $(VERSION)..."
@git archive --format=zip \
--prefix="$(MODULE_PATH)@$(VERSION)/" \
-o "$(ZIP_FILENAME)" \
"$(VERSION)"
@echo "✅ Successfully created $(ZIP_FILENAME)"
# publishes the packaged zip file to the Gitea registry.
publish: package
@echo "⬆️ Uploading $(ZIP_FILENAME) to Gitea..."
@curl --user "$(GITEA_OWNER):$(TOKEN)" \
--upload-file "$(ZIP_FILENAME)" \
"$(GITEA_REGISTRY_URL)"
@echo "\n✅ Successfully published to Gitea."
@make clean
# removes the generated zip file.
clean:
@echo "🧹 Cleaning up..."
@rm -f "$(ZIP_FILENAME)"

View File

@@ -8,7 +8,7 @@
This repository contains the official Go SDK for the Evercatch platform. Its purpose is to provide a simple and convenient interface for developers to interact with the Evercatch API, manage webhooks, and handle events within their Go applications.
**⚠️ This SDK is currently under active development and is not yet ready for production use. The package published on npm is a placeholder to reserve the name.**
**⚠️ This SDK is currently under active development and is not yet ready for production use. The package published on Go is a placeholder to reserve the name.**
---