This directory provides an example demonstrating the use of the gorm-multitenancy package with various configurations:
To run this example on your local machine, follow these steps:
git clone https://github.com/bartventer/gorm-multitenancy.git
cd gorm-multitenancyThis example supports various configurations through command-line options.
go run -C _examples . [options]-
-serverstring -
-driverstring
-
Run with default options:
go run -C _examples . -
Run with the
NetHTTPserver andMySQLdriver:go run -C _examples . -server=nethttp -driver=mysql
Note
To enable debug logging, set the GMT_DEBUG environment variable to true. This can be helpful for troubleshooting or understanding the internal workings of the application.
Please see API Usage for more examples on how to interact with the server.
All contributions are welcome! See the Contributing Guide for more details.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.