golangid / candi Goto Github PK
View Code? Open in Web Editor NEWA backend project library & utilities
Home Page: https://pkg.go.dev/github.com/golangid/candi
License: Apache License 2.0
A backend project library & utilities
Home Page: https://pkg.go.dev/github.com/golangid/candi
License: Apache License 2.0
@agungdwiprasetyo gung, kayaknya perlu update untuk modul trace nya ya, since Opentracing bakal deprecated,
opentracing/specification#163
Perlu update ke protokol yang ultimate, yaitu OpenTelemetry.
Gw belum lihat sampai detail changesnya seperti apa, yang jelas perlu update library dan sdk nya.
Ketika menggunakan TaskQueueWorker dan memilih MariaDB sebagai databasenya, secara default tidak bisa jalan. Begini errornya,
Sepertinya ini terkait dengan query yg di run ketika menggunakan persistent,
Penggunaan nama field interval dan key sepertinya jadi issue di MariaDB,
Di MariaDB, jika kita mau pakai nama reserved word field, harus di dalam backtick (`).
Ada masukan @agungdwiprasetyo & @golangid/candi-reviewer ?
Lord @agungdwiprasetyo mintul docs nya ๐
Candi sudah memiliki perkembangan yang sangat complex, dan sangat membutuhkan documentation agar dapat lebih dikenal di kalangan programmer. Agar dapat mempermudah pengembangan candi saya memiliki sebuah template website menggunakan GOHUGO yang sangat mudah untuk di deploy dan menata documentation.
Untuk melihat detailnya dapat merujuk ke link berikut.
Need improvement in cron expression like in https://crontab.guru, because in Candi cron worker created with 100% pure internal Go library (using reflect select channel), not using external library.
Current cron expression is non-standard crontab (using string pattern and parse it to time duration):
// MountHandlers mount handler group
func (h *CronHandler) MountHandlers(group *types.WorkerHandlerGroup) {
group.Add(cronworker.CreateCronJobKey("cron task name", "", "00:00:00@daily"), h.cronHandler)
}
Need improve to:
// MountHandlers mount handler group
func (h *CronHandler) MountHandlers(group *types.WorkerHandlerGroup) {
group.Add(cronworker.CreateCronJobKey("cron task name", "", "0 0 * * *"), h.cronHandler)
}
Pada docker compose
services:
redis:
image: redis:5.0.5-alpine
container_name: redis
environment:
- REDIS_PASSWORD=pass
- REDIS_PORT=6379
- REDIS_DB=0
volumes:
- redis:/data
networks:
- backend
ports:
- "6379:6379"
restart: always
expose:
- 6379
Untuk environment masih sama seperti yang di buat cli
REDIS_READ_DSN=redis://:pass@localhost:6379/0
REDIS_WRITE_DSN=redis://:pass@localhost:6379/0
reproduce error:
candi init
- buat service di monorepocandi -run
maka akan keluar error seperti berikut ini (candi v1.10.3)
Fixed 7103aff
Ada beberapa test file yang di buat sama cli tapi mock tidak dibuat oleh cli
mockrepo "monorepo/services/auth/pkg/mocks/modules/token/repository"
mocksharedrepo "monorepo/services/auth/pkg/mocks/shared/repository"
file yang di atas sudah coba cari di dalam folder juga tidak ada
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.