Simple implementation of the DataStore
interface defined in comby with MinIO. comby is a powerful application framework designed with Event Sourcing and Command Query Responsibility Segregation (CQRS) principles, written in Go.
# run minio locally for testings
docker run \
-p 9000:9000 \
-p 9001:9001 \
--name minio \
-v ./data:/data \
-e "MINIO_ROOT_USER=ROOTNAME" \
-e "MINIO_ROOT_PASSWORD=CHANGEME123" \
quay.io/minio/minio server /data --console-address ":9001"
comby-store-minio supports the latest version of comby (v2), requires Go version 1.22+ and is based on MinIO client v7.0.0.
go get github.com/gradientzero/comby-store-minio
import (
"github.com/gradientzero/comby-store-minio"
"github.com/gradientzero/comby/v2"
)
// create redis DataStore
dataStore := store.NewDataStoreMinio("127.0.0.1:9000", false, "ROOTNAME", "CHANGEME123")
if err = dataStore.Init(ctx,
comby.DataStoreOptionWithAttribute("anyKey", "anyValue"),
); err != nil {
panic(err)
}
// create Facade
fc, _ := comby.NewFacade(
comby.FacadeWithDataStore(dataStore),
)
go test -v ./...
Please follow the guidelines in CONTRIBUTING.md.
This project is licensed under the MIT License.