How sur-lysvara/golang-vouchergo works
VoucherGo is a self-hosted web application for managing and selling MikroTik WiFi vouchers. The main customer journey is to browse a router’s voucher packages, place an order, pay through QRIS, and receive automatic voucher activation; administrators manage routers, packages, transactions, users, and billing. The map also includes WhatsApp notifications, reseller support, and client management. Relationships come from the documented capabilities and the sampled route registrations; many handler internals were not sampled, so uncertain implementation links are omitted.
Main entry points: routes.go HTTP routes · payment_order.go Order and checkout · payment_gateway.go Payment webhook · payment_invoice.go Invoices and QRIS
Components 24
Voucher sales
- Public pages
template_public_router.go - Order and checkout
payment_order.go - Voucher check
voucher_check.go
Payments and billing
- Payment gateway
payment_gateway.go - Invoices and QRIS
payment_invoice.go - QRIS payments
payment_qris.go - Payment webhook
payment_gateway.go - Billing controls
billing_owner.go
Router and voucher operations
- MikroTik operations
mikrotik.go - Classic API
mikrotik_classic.go - Router management
admin.go
Administration
- User management
admin_users.go - Package management
admin_packages.go - Transaction management
admin_transactions.go - Reseller management
reseller.go - Client management
client_manager.go - Admin interface
template_admin.go
Notifications
- WhatsApp gateway
whatsapp.go - WhatsApp administration
whatsapp_admin.go - Email notifications
email.go
Other components
- Customer
- Administrator
- HTTP routes
routes.go - Application database
db.go
Connections 24
- Customer → HTTP routes: uses
- HTTP routes → Public pages: serves
routes.go - HTTP routes → Order and checkout: routes orders
routes.go - HTTP routes → Voucher check: routes checks
- Order and checkout → Payment gateway: initiates payment
- Order and checkout → Invoices and QRIS: creates invoice
- Invoices and QRIS → QRIS payments: provides QRIS
- HTTP routes → Payment webhook: routes webhook
routes.go - Payment webhook → MikroTik operations: activates voucher
- MikroTik operations → Classic API: supports classic API
- Administrator → HTTP routes: uses
- HTTP routes → Admin interface: serves admin
routes.go - HTTP routes → Billing controls: routes billing
routes.go - HTTP routes → Transaction management: routes transactions
routes.go - HTTP routes → User management: routes admin
- HTTP routes → Package management: routes admin
- HTTP routes → Router management: routes routers
- Administrator → Reseller management: manages resellers
- Administrator → Client management: manages clients
- Payment webhook → WhatsApp gateway: notifies customer
- HTTP routes → WhatsApp administration: routes WhatsApp
routes.go - Transaction management → Email notifications: sends email
- Order and checkout → Application database: records orders
- Package management → Application database: stores packages