Go to file
昨夜雨疏风骤 4bc42d2c1d
Optimize uniq function for better performance (#852)
Improve the performance of the unique function by:
1. Pre-allocating map capacity with len(s) to avoid frequent map resizing
2. Pre-allocating result slice capacity with len(s) to reduce append overhead
3. Reducing the number of traversals performs well under the condition of a large number of elements

These changes maintain the original behavior (preserving element order) 
while reducing memory allocation operations, especially effective for 
large slices (100k+ elements) with benchmark showing ~25% speedup.

No breaking changes, the function signature and output order remain unchanged.
2025-10-03 01:17:47 +00:00
.github fix: update go 1.25.x 2025-09-13 09:37:23 +02:00
api Optimize uniq function for better performance (#852) 2025-10-03 01:17:47 +00:00
auth perf: avoid allocations with `(*regexp.Regexp).MatchString` (#604) 2023-10-23 15:57:15 +00:00
config feat: refine AutoCert logic (#843) 2025-09-19 04:43:09 -05:00
database fix: consistent app ordering (#802) 2025-05-29 19:17:08 +00:00
docker Docker multiarch image (#703) 2024-10-22 16:14:59 -05:00
docs fix: update go-swagger 2023-09-16 21:06:54 +02:00
error chore(deps): update bump go dependencies (#751) 2025-01-17 05:51:08 +00:00
mode Use golangci-lint 2020-11-01 10:47:02 +01:00
model fix: update go-swagger 2023-09-16 21:06:54 +02:00
plugin fix: skip dotfiles and directories in plugin loading (#811) (#812) 2025-07-09 19:05:40 +00:00
router fix: panic when setting bool via envvar 2024-11-15 22:53:41 +01:00
runner feat: refine AutoCert logic (#843) 2025-09-19 04:43:09 -05:00
test chore(deps): update bump go dependencies (#751) 2025-01-17 05:51:08 +00:00
ui fix: message overflow state preservation from previous messages 2025-09-20 13:29:58 +02:00
.dockerignore Docker multiarch image (#703) 2024-10-22 16:14:59 -05:00
.editorconfig Add .editorconfig file. 2020-02-11 17:27:22 +01:00
.gitignore Change default folder & db path to data/* 2018-05-10 12:34:35 +02:00
.golangci.yml chore(deps): update golangci/golangci-lint-action action to v7 (#787) 2025-03-31 22:26:40 +00:00
CODEOWNERS Add code owners 2019-03-16 14:28:09 +01:00
CODE_OF_CONDUCT.md Add code of conduct 2018-03-02 21:04:51 +01:00
CONTRIBUTING.md improve CONTRIBUTING.md (#181) 2019-04-04 23:03:21 +08:00
GO_VERSION chore(deps): update docker.io/gotify/build docker tag to v1.25.1 2025-09-12 19:20:22 +00:00
LICENSE Use logo from gotify/logo. 2019-03-08 16:03:34 +01:00
Makefile ci: don't use GOTOOLCHAIN for getting gotify/build image 2025-09-13 10:29:04 +02:00
README.md docs: smaller logo 2025-08-09 14:18:40 +02:00
SECURITY.md Create SECURITY.md 2021-09-26 20:46:58 +00:00
app.go chore(deps): update bump go dependencies (#751) 2025-01-17 05:51:08 +00:00
config.example.yml feat: refine AutoCert logic (#843) 2025-09-19 04:43:09 -05:00
go.mod chore(deps): update module github.com/gin-gonic/gin to v1.11.0 (#849) 2025-09-20 09:36:05 -05:00
go.sum chore(deps): update module github.com/gin-gonic/gin to v1.11.0 (#849) 2025-09-20 09:36:05 -05:00
renovate.json Cleaner chain of authority for golang update (gotify/build -> go.mod -> GO_VERSION) (#780) 2025-03-12 23:37:23 +00:00
ui.png [ImgBot] Optimize images 2019-01-20 12:00:36 +01:00

README.md

gotify/server

Build Status codecov Go Report Card Matrix Docker Pulls latest release

Intro

We wanted a simple server for sending and receiving messages (in real time per WebSocket). For this, not many open source projects existed and most of the existing ones were abandoned. Also, a requirement was that it can be self-hosted. We know there are many free and commercial push services out there.

Features

Gotify UI screenshot
  • send messages via REST-API
  • receive messages via WebSocket
  • manage users, clients and applications
  • Plugins
  • Web-UI -> ./ui
  • CLI for sending messages -> gotify/cli
  • Android-App -> gotify/android

Get it on Google Play Get it on F-Droid

(Google Play and the Google Play logo are trademarks of Google LLC.)


Documentation

InstallConfigurationREST-APISetup Dev Environment

Contributing

We welcome all kinds of contribution, including bug reports, feature requests, documentation improvements, UI refinements, etc. Check out CONTRIBUTING.md for guidelines.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

License

This project is licensed under the MIT License - see the LICENSE file for details