Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
abaldeweg authored Jan 15, 2025
1 parent 997e16d commit b51d0ec
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,19 @@ r.Use(cors.SetDefaultCorsHeaders())
|MYSQL_URL|Databse config string for MySQL|`adm:pass@tcp(localhost:3306)/warehouse?charset=utf8mb4&parseTime=True&loc=Local`
|SQLITE_NAME|Database name for SQLite (without file extension)|`warehouse`

## Storage

```go
package main

import "github.com/abaldeweg/warehouse-server/framework/storage"

s := storage.NewStorage("filesystem", "data/auth", "api_keys.json")
k, _ := s.Save()
k, _ := s.Load()
k, _ := s.Remove()
```

## Blog

Mount auth volume to `/usr/src/app/data/auth/` and data volume to `/usr/src/app/data/content/`.
Expand Down

0 comments on commit b51d0ec

Please sign in to comment.