crud implemented
This commit is contained in:
parent
78cb709bd7
commit
8bc961e1be
8 changed files with 149 additions and 13 deletions
10
cmd/main.go
10
cmd/main.go
|
|
@ -2,6 +2,7 @@ package main
|
|||
|
||||
import (
|
||||
"context"
|
||||
"github.com/davidbyttow/govips/v2/vips"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"imageStorage/config"
|
||||
"imageStorage/internal/app"
|
||||
|
|
@ -13,11 +14,16 @@ import (
|
|||
)
|
||||
|
||||
func main() {
|
||||
c := config.NewConfig()
|
||||
//c := config.DevConfig()
|
||||
//c := config.NewConfig()
|
||||
c := config.DevConfig()
|
||||
config.LogSetup(c.App.LogLevel)
|
||||
log.Infof("Log level: %s", c.App.LogLevel)
|
||||
|
||||
vips.Startup(&vips.Config{
|
||||
MaxCacheMem: 100 << 20,
|
||||
})
|
||||
defer vips.Shutdown()
|
||||
|
||||
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
|
||||
defer cancel()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue