mirror of
https://github.com/pikami/cosmium.git
synced 2025-07-29 16:16:57 +01:00
Compare commits
No commits in common. "1cf5ae92f46959af56700c00c564b76cee29a1b4" and "787cdb33cfce7c229a5d6a63083f233d33b09d0a" have entirely different histories.
1cf5ae92f4
...
787cdb33cf
@ -75,7 +75,8 @@ func requestToResourceId(c *gin.Context) string {
|
|||||||
|
|
||||||
isFeed := c.Request.Header.Get("A-Im") == "Incremental Feed"
|
isFeed := c.Request.Header.Get("A-Im") == "Incremental Feed"
|
||||||
if resourceType == "pkranges" && isFeed {
|
if resourceType == "pkranges" && isFeed {
|
||||||
resourceId = collId
|
// CosmosSDK replaces '/' with '-' in resource id requests
|
||||||
|
resourceId = strings.Replace(collId, "-", "/", -1)
|
||||||
}
|
}
|
||||||
|
|
||||||
return resourceId
|
return resourceId
|
||||||
|
@ -6,7 +6,6 @@ import (
|
|||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
repositorymodels "github.com/pikami/cosmium/internal/repository_models"
|
repositorymodels "github.com/pikami/cosmium/internal/repository_models"
|
||||||
"github.com/pikami/cosmium/internal/resourceid"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func (h *Handlers) GetPartitionKeyRanges(c *gin.Context) {
|
func (h *Handlers) GetPartitionKeyRanges(c *gin.Context) {
|
||||||
@ -32,9 +31,8 @@ func (h *Handlers) GetPartitionKeyRanges(c *gin.Context) {
|
|||||||
collectionRid = collection.ResourceID
|
collectionRid = collection.ResourceID
|
||||||
}
|
}
|
||||||
|
|
||||||
rid := resourceid.NewCombined(collectionRid, resourceid.New(resourceid.ResourceTypePartitionKeyRange))
|
|
||||||
c.IndentedJSON(http.StatusOK, gin.H{
|
c.IndentedJSON(http.StatusOK, gin.H{
|
||||||
"_rid": rid,
|
"_rid": collectionRid,
|
||||||
"_count": len(partitionKeyRanges),
|
"_count": len(partitionKeyRanges),
|
||||||
"PartitionKeyRanges": partitionKeyRanges,
|
"PartitionKeyRanges": partitionKeyRanges,
|
||||||
})
|
})
|
||||||
|
@ -50,10 +50,6 @@ func (r *DataRepository) DeleteCollection(databaseId string, collectionId string
|
|||||||
}
|
}
|
||||||
|
|
||||||
delete(r.storeState.Collections[databaseId], collectionId)
|
delete(r.storeState.Collections[databaseId], collectionId)
|
||||||
delete(r.storeState.Documents[databaseId], collectionId)
|
|
||||||
delete(r.storeState.Triggers[databaseId], collectionId)
|
|
||||||
delete(r.storeState.StoredProcedures[databaseId], collectionId)
|
|
||||||
delete(r.storeState.UserDefinedFunctions[databaseId], collectionId)
|
|
||||||
|
|
||||||
return repositorymodels.StatusOk
|
return repositorymodels.StatusOk
|
||||||
}
|
}
|
||||||
@ -75,7 +71,7 @@ func (r *DataRepository) CreateCollection(databaseId string, newCollection repos
|
|||||||
newCollection = structhidrators.Hidrate(newCollection).(repositorymodels.Collection)
|
newCollection = structhidrators.Hidrate(newCollection).(repositorymodels.Collection)
|
||||||
|
|
||||||
newCollection.TimeStamp = time.Now().Unix()
|
newCollection.TimeStamp = time.Now().Unix()
|
||||||
newCollection.ResourceID = resourceid.NewCombined(database.ResourceID, resourceid.New(resourceid.ResourceTypeCollection))
|
newCollection.ResourceID = resourceid.NewCombined(database.ResourceID, resourceid.New())
|
||||||
newCollection.ETag = fmt.Sprintf("\"%s\"", uuid.New())
|
newCollection.ETag = fmt.Sprintf("\"%s\"", uuid.New())
|
||||||
newCollection.Self = fmt.Sprintf("dbs/%s/colls/%s/", database.ResourceID, newCollection.ResourceID)
|
newCollection.Self = fmt.Sprintf("dbs/%s/colls/%s/", database.ResourceID, newCollection.ResourceID)
|
||||||
|
|
||||||
|
@ -37,11 +37,6 @@ func (r *DataRepository) DeleteDatabase(id string) repositorymodels.RepositorySt
|
|||||||
}
|
}
|
||||||
|
|
||||||
delete(r.storeState.Databases, id)
|
delete(r.storeState.Databases, id)
|
||||||
delete(r.storeState.Collections, id)
|
|
||||||
delete(r.storeState.Documents, id)
|
|
||||||
delete(r.storeState.Triggers, id)
|
|
||||||
delete(r.storeState.StoredProcedures, id)
|
|
||||||
delete(r.storeState.UserDefinedFunctions, id)
|
|
||||||
|
|
||||||
return repositorymodels.StatusOk
|
return repositorymodels.StatusOk
|
||||||
}
|
}
|
||||||
@ -55,7 +50,7 @@ func (r *DataRepository) CreateDatabase(newDatabase repositorymodels.Database) (
|
|||||||
}
|
}
|
||||||
|
|
||||||
newDatabase.TimeStamp = time.Now().Unix()
|
newDatabase.TimeStamp = time.Now().Unix()
|
||||||
newDatabase.ResourceID = resourceid.New(resourceid.ResourceTypeDatabase)
|
newDatabase.ResourceID = resourceid.New()
|
||||||
newDatabase.ETag = fmt.Sprintf("\"%s\"", uuid.New())
|
newDatabase.ETag = fmt.Sprintf("\"%s\"", uuid.New())
|
||||||
newDatabase.Self = fmt.Sprintf("dbs/%s/", newDatabase.ResourceID)
|
newDatabase.Self = fmt.Sprintf("dbs/%s/", newDatabase.ResourceID)
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ func (r *DataRepository) CreateDocument(databaseId string, collectionId string,
|
|||||||
}
|
}
|
||||||
|
|
||||||
document["_ts"] = time.Now().Unix()
|
document["_ts"] = time.Now().Unix()
|
||||||
document["_rid"] = resourceid.NewCombined(collection.ResourceID, resourceid.New(resourceid.ResourceTypeDocument))
|
document["_rid"] = resourceid.NewCombined(database.ResourceID, collection.ResourceID, resourceid.New())
|
||||||
document["_etag"] = fmt.Sprintf("\"%s\"", uuid.New())
|
document["_etag"] = fmt.Sprintf("\"%s\"", uuid.New())
|
||||||
document["_self"] = fmt.Sprintf("dbs/%s/colls/%s/docs/%s/", database.ResourceID, collection.ResourceID, document["_rid"])
|
document["_self"] = fmt.Sprintf("dbs/%s/colls/%s/docs/%s/", database.ResourceID, collection.ResourceID, document["_rid"])
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ func (r *DataRepository) GetPartitionKeyRanges(databaseId string, collectionId s
|
|||||||
timestamp = collection.TimeStamp
|
timestamp = collection.TimeStamp
|
||||||
}
|
}
|
||||||
|
|
||||||
pkrResourceId := resourceid.NewCombined(collectionRid, resourceid.New(resourceid.ResourceTypePartitionKeyRange))
|
pkrResourceId := resourceid.NewCombined(databaseRid, collectionRid, resourceid.New())
|
||||||
pkrSelf := fmt.Sprintf("dbs/%s/colls/%s/pkranges/%s/", databaseRid, collectionRid, pkrResourceId)
|
pkrSelf := fmt.Sprintf("dbs/%s/colls/%s/pkranges/%s/", databaseRid, collectionRid, pkrResourceId)
|
||||||
etag := fmt.Sprintf("\"%s\"", uuid.New())
|
etag := fmt.Sprintf("\"%s\"", uuid.New())
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ func (r *DataRepository) CreateStoredProcedure(databaseId string, collectionId s
|
|||||||
}
|
}
|
||||||
|
|
||||||
sp.TimeStamp = time.Now().Unix()
|
sp.TimeStamp = time.Now().Unix()
|
||||||
sp.ResourceID = resourceid.NewCombined(collection.ResourceID, resourceid.New(resourceid.ResourceTypeStoredProcedure))
|
sp.ResourceID = resourceid.NewCombined(database.ResourceID, collection.ResourceID, resourceid.New())
|
||||||
sp.ETag = fmt.Sprintf("\"%s\"", uuid.New())
|
sp.ETag = fmt.Sprintf("\"%s\"", uuid.New())
|
||||||
sp.Self = fmt.Sprintf("dbs/%s/colls/%s/sprocs/%s/", database.ResourceID, collection.ResourceID, sp.ResourceID)
|
sp.Self = fmt.Sprintf("dbs/%s/colls/%s/sprocs/%s/", database.ResourceID, collection.ResourceID, sp.ResourceID)
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ func (r *DataRepository) CreateTrigger(databaseId string, collectionId string, t
|
|||||||
}
|
}
|
||||||
|
|
||||||
trigger.TimeStamp = time.Now().Unix()
|
trigger.TimeStamp = time.Now().Unix()
|
||||||
trigger.ResourceID = resourceid.NewCombined(collection.ResourceID, resourceid.New(resourceid.ResourceTypeTrigger))
|
trigger.ResourceID = resourceid.NewCombined(database.ResourceID, collection.ResourceID, resourceid.New())
|
||||||
trigger.ETag = fmt.Sprintf("\"%s\"", uuid.New())
|
trigger.ETag = fmt.Sprintf("\"%s\"", uuid.New())
|
||||||
trigger.Self = fmt.Sprintf("dbs/%s/colls/%s/triggers/%s/", database.ResourceID, collection.ResourceID, trigger.ResourceID)
|
trigger.Self = fmt.Sprintf("dbs/%s/colls/%s/triggers/%s/", database.ResourceID, collection.ResourceID, trigger.ResourceID)
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ func (r *DataRepository) CreateUserDefinedFunction(databaseId string, collection
|
|||||||
}
|
}
|
||||||
|
|
||||||
udf.TimeStamp = time.Now().Unix()
|
udf.TimeStamp = time.Now().Unix()
|
||||||
udf.ResourceID = resourceid.NewCombined(collection.ResourceID, resourceid.New(resourceid.ResourceTypeUserDefinedFunction))
|
udf.ResourceID = resourceid.NewCombined(database.ResourceID, collection.ResourceID, resourceid.New())
|
||||||
udf.ETag = fmt.Sprintf("\"%s\"", uuid.New())
|
udf.ETag = fmt.Sprintf("\"%s\"", uuid.New())
|
||||||
udf.Self = fmt.Sprintf("dbs/%s/colls/%s/udfs/%s/", database.ResourceID, collection.ResourceID, udf.ResourceID)
|
udf.Self = fmt.Sprintf("dbs/%s/colls/%s/udfs/%s/", database.ResourceID, collection.ResourceID, udf.ResourceID)
|
||||||
|
|
||||||
|
@ -3,76 +3,32 @@ package resourceid
|
|||||||
import (
|
import (
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"strings"
|
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ResourceType int
|
func New() string {
|
||||||
|
id := uuid.New().ID()
|
||||||
|
idBytes := uintToBytes(id)
|
||||||
|
|
||||||
const (
|
// first byte should be bigger than 0x80 for collection ids
|
||||||
ResourceTypeDatabase ResourceType = iota
|
// clients classify this id as "user" otherwise
|
||||||
ResourceTypeCollection
|
if (idBytes[0] & 0x80) <= 0 {
|
||||||
ResourceTypeDocument
|
idBytes[0] = byte(rand.Intn(0x80) + 0x80)
|
||||||
ResourceTypeStoredProcedure
|
|
||||||
ResourceTypeTrigger
|
|
||||||
ResourceTypeUserDefinedFunction
|
|
||||||
ResourceTypeConflict
|
|
||||||
ResourceTypePartitionKeyRange
|
|
||||||
ResourceTypeSchema
|
|
||||||
)
|
|
||||||
|
|
||||||
func New(resourceType ResourceType) string {
|
|
||||||
var idBytes []byte
|
|
||||||
switch resourceType {
|
|
||||||
case ResourceTypeDatabase:
|
|
||||||
idBytes = randomBytes(4)
|
|
||||||
case ResourceTypeCollection:
|
|
||||||
idBytes = randomBytes(4)
|
|
||||||
// first byte should be bigger than 0x80 for collection ids
|
|
||||||
// clients classify this id as "user" otherwise
|
|
||||||
if (idBytes[0] & 0x80) <= 0 {
|
|
||||||
idBytes[0] = byte(rand.Intn(0x80) + 0x80)
|
|
||||||
}
|
|
||||||
case ResourceTypeDocument:
|
|
||||||
idBytes = randomBytes(8)
|
|
||||||
idBytes[7] = byte(rand.Intn(0x10)) // Upper 4 bits = 0
|
|
||||||
case ResourceTypeStoredProcedure:
|
|
||||||
idBytes = randomBytes(8)
|
|
||||||
idBytes[7] = byte(rand.Intn(0x10)) | 0x08 // Upper 4 bits = 0x08
|
|
||||||
case ResourceTypeTrigger:
|
|
||||||
idBytes = randomBytes(8)
|
|
||||||
idBytes[7] = byte(rand.Intn(0x10)) | 0x07 // Upper 4 bits = 0x07
|
|
||||||
case ResourceTypeUserDefinedFunction:
|
|
||||||
idBytes = randomBytes(8)
|
|
||||||
idBytes[7] = byte(rand.Intn(0x10)) | 0x06 // Upper 4 bits = 0x06
|
|
||||||
case ResourceTypeConflict:
|
|
||||||
idBytes = randomBytes(8)
|
|
||||||
idBytes[7] = byte(rand.Intn(0x10)) | 0x04 // Upper 4 bits = 0x04
|
|
||||||
case ResourceTypePartitionKeyRange:
|
|
||||||
// we don't do partitions yet, so just use a fixed id
|
|
||||||
idBytes = []byte{0x69, 0x69, 0x69, 0x69, 0x69, 0x69, 0x69, 0x50}
|
|
||||||
case ResourceTypeSchema:
|
|
||||||
idBytes = randomBytes(8)
|
|
||||||
idBytes[7] = byte(rand.Intn(0x10)) | 0x09 // Upper 4 bits = 0x09
|
|
||||||
default:
|
|
||||||
idBytes = randomBytes(4)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
encoded := base64.StdEncoding.EncodeToString(idBytes)
|
return base64.StdEncoding.EncodeToString(idBytes)
|
||||||
return strings.ReplaceAll(encoded, "/", "-")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewCombined(ids ...string) string {
|
func NewCombined(ids ...string) string {
|
||||||
combinedIdBytes := make([]byte, 0)
|
combinedIdBytes := make([]byte, 0)
|
||||||
|
|
||||||
for _, id := range ids {
|
for _, id := range ids {
|
||||||
idBytes, _ := base64.StdEncoding.DecodeString(strings.ReplaceAll(id, "-", "/"))
|
idBytes, _ := base64.StdEncoding.DecodeString(id)
|
||||||
combinedIdBytes = append(combinedIdBytes, idBytes...)
|
combinedIdBytes = append(combinedIdBytes, idBytes...)
|
||||||
}
|
}
|
||||||
|
|
||||||
encoded := base64.StdEncoding.EncodeToString(combinedIdBytes)
|
return base64.StdEncoding.EncodeToString(combinedIdBytes)
|
||||||
return strings.ReplaceAll(encoded, "/", "-")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func uintToBytes(id uint32) []byte {
|
func uintToBytes(id uint32) []byte {
|
||||||
@ -83,13 +39,3 @@ func uintToBytes(id uint32) []byte {
|
|||||||
|
|
||||||
return buf
|
return buf
|
||||||
}
|
}
|
||||||
|
|
||||||
func randomBytes(count int) []byte {
|
|
||||||
buf := make([]byte, count)
|
|
||||||
for i := 0; i < count; i += 4 {
|
|
||||||
id := uuid.New().ID()
|
|
||||||
idBytes := uintToBytes(id)
|
|
||||||
copy(buf[i:], idBytes)
|
|
||||||
}
|
|
||||||
return buf
|
|
||||||
}
|
|
||||||
|
@ -3,7 +3,6 @@ package main
|
|||||||
import "C"
|
import "C"
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"strings"
|
|
||||||
|
|
||||||
repositorymodels "github.com/pikami/cosmium/internal/repository_models"
|
repositorymodels "github.com/pikami/cosmium/internal/repository_models"
|
||||||
)
|
)
|
||||||
@ -21,7 +20,7 @@ func CreateCollection(serverName *C.char, databaseId *C.char, collectionJson *C.
|
|||||||
}
|
}
|
||||||
|
|
||||||
var collection repositorymodels.Collection
|
var collection repositorymodels.Collection
|
||||||
err := json.NewDecoder(strings.NewReader(collectionStr)).Decode(&collection)
|
err := json.Unmarshal([]byte(collectionStr), &collection)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ResponseFailedToParseRequest
|
return ResponseFailedToParseRequest
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,6 @@ package main
|
|||||||
import "C"
|
import "C"
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"strings"
|
|
||||||
|
|
||||||
repositorymodels "github.com/pikami/cosmium/internal/repository_models"
|
repositorymodels "github.com/pikami/cosmium/internal/repository_models"
|
||||||
)
|
)
|
||||||
@ -20,7 +19,7 @@ func CreateDatabase(serverName *C.char, databaseJson *C.char) int {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var database repositorymodels.Database
|
var database repositorymodels.Database
|
||||||
err := json.NewDecoder(strings.NewReader(databaseStr)).Decode(&database)
|
err := json.Unmarshal([]byte(databaseStr), &database)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ResponseFailedToParseRequest
|
return ResponseFailedToParseRequest
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,6 @@ package main
|
|||||||
import "C"
|
import "C"
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"strings"
|
|
||||||
|
|
||||||
repositorymodels "github.com/pikami/cosmium/internal/repository_models"
|
repositorymodels "github.com/pikami/cosmium/internal/repository_models"
|
||||||
)
|
)
|
||||||
@ -22,7 +21,7 @@ func CreateDocument(serverName *C.char, databaseId *C.char, collectionId *C.char
|
|||||||
}
|
}
|
||||||
|
|
||||||
var document repositorymodels.Document
|
var document repositorymodels.Document
|
||||||
err := json.NewDecoder(strings.NewReader(documentStr)).Decode(&document)
|
err := json.Unmarshal([]byte(documentStr), &document)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ResponseFailedToParseRequest
|
return ResponseFailedToParseRequest
|
||||||
}
|
}
|
||||||
|
@ -13,10 +13,8 @@ type ServerInstance struct {
|
|||||||
repository *repositories.DataRepository
|
repository *repositories.DataRepository
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var serverInstances map[string]*ServerInstance
|
||||||
serverInstances = make(map[string]*ServerInstance)
|
var mutex sync.Mutex
|
||||||
mutex = sync.Mutex{}
|
|
||||||
)
|
|
||||||
|
|
||||||
const (
|
const (
|
||||||
ResponseSuccess = 0
|
ResponseSuccess = 0
|
||||||
@ -38,6 +36,10 @@ func getInstance(serverName string) (*ServerInstance, bool) {
|
|||||||
mutex.Lock()
|
mutex.Lock()
|
||||||
defer mutex.Unlock()
|
defer mutex.Unlock()
|
||||||
|
|
||||||
|
if serverInstances == nil {
|
||||||
|
serverInstances = make(map[string]*ServerInstance)
|
||||||
|
}
|
||||||
|
|
||||||
var ok bool
|
var ok bool
|
||||||
var serverInstance *ServerInstance
|
var serverInstance *ServerInstance
|
||||||
if serverInstance, ok = serverInstances[serverName]; !ok {
|
if serverInstance, ok = serverInstances[serverName]; !ok {
|
||||||
@ -51,6 +53,10 @@ func addInstance(serverName string, serverInstance *ServerInstance) {
|
|||||||
mutex.Lock()
|
mutex.Lock()
|
||||||
defer mutex.Unlock()
|
defer mutex.Unlock()
|
||||||
|
|
||||||
|
if serverInstances == nil {
|
||||||
|
serverInstances = make(map[string]*ServerInstance)
|
||||||
|
}
|
||||||
|
|
||||||
serverInstances[serverName] = serverInstance
|
serverInstances[serverName] = serverInstance
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -58,6 +64,10 @@ func removeInstance(serverName string) {
|
|||||||
mutex.Lock()
|
mutex.Lock()
|
||||||
defer mutex.Unlock()
|
defer mutex.Unlock()
|
||||||
|
|
||||||
|
if serverInstances == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
delete(serverInstances, serverName)
|
delete(serverInstances, serverName)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,7 +6,6 @@ package main
|
|||||||
import "C"
|
import "C"
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"strings"
|
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
"github.com/pikami/cosmium/api"
|
"github.com/pikami/cosmium/api"
|
||||||
@ -16,21 +15,21 @@ import (
|
|||||||
|
|
||||||
//export CreateServerInstance
|
//export CreateServerInstance
|
||||||
func CreateServerInstance(serverName *C.char, configurationJSON *C.char) int {
|
func CreateServerInstance(serverName *C.char, configurationJSON *C.char) int {
|
||||||
serverNameStr := C.GoString(serverName)
|
|
||||||
configStr := C.GoString(configurationJSON)
|
configStr := C.GoString(configurationJSON)
|
||||||
|
serverNameStr := C.GoString(serverName)
|
||||||
|
|
||||||
if _, ok := getInstance(serverNameStr); ok {
|
if _, ok := getInstance(serverNameStr); ok {
|
||||||
return ResponseServerInstanceAlreadyExists
|
return ResponseServerInstanceAlreadyExists
|
||||||
}
|
}
|
||||||
|
|
||||||
var configuration config.ServerConfig
|
var configuration config.ServerConfig
|
||||||
err := json.NewDecoder(strings.NewReader(configStr)).Decode(&configuration)
|
err := json.Unmarshal([]byte(configStr), &configuration)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ResponseFailedToParseConfiguration
|
return ResponseFailedToParseConfiguration
|
||||||
}
|
}
|
||||||
|
|
||||||
configuration.ApplyDefaultsToEmptyFields()
|
|
||||||
configuration.PopulateCalculatedFields()
|
configuration.PopulateCalculatedFields()
|
||||||
|
configuration.ApplyDefaultsToEmptyFields()
|
||||||
|
|
||||||
repository := repositories.NewDataRepository(repositories.RepositoryOptions{
|
repository := repositories.NewDataRepository(repositories.RepositoryOptions{
|
||||||
InitialDataFilePath: configuration.InitialDataFilePath,
|
InitialDataFilePath: configuration.InitialDataFilePath,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user