Compare commits

..

2 Commits

Author SHA1 Message Date
Astra 691d8ae483 Remove junk from struct 2023-02-08 13:07:28 +00:00
Astra 353a9769ad Update logger import path 2023-02-08 13:07:22 +00:00
9 changed files with 19 additions and 12 deletions

View File

@ -60,7 +60,7 @@ import (
"path" "path"
photoprism "git.zio.sh/astra/photoprism-client-go" photoprism "git.zio.sh/astra/photoprism-client-go"
"github.com/astravexton/logger" "git.zio.sh/astra/logger"
) )
func main() func main()

View File

@ -1,9 +1,9 @@
package main package main
import ( import (
"git.zio.sh/astra/logger"
photoprism "git.zio.sh/astra/photoprism-client-go" photoprism "git.zio.sh/astra/photoprism-client-go"
"git.zio.sh/astra/photoprism-client-go/api/v1" "git.zio.sh/astra/photoprism-client-go/api/v1"
"github.com/astravexton/logger"
) )
func main() { func main() {

View File

@ -6,7 +6,7 @@ import (
photoprism "git.zio.sh/astra/photoprism-client-go" photoprism "git.zio.sh/astra/photoprism-client-go"
"github.com/astravexton/logger" "git.zio.sh/astra/logger"
) )
// format string, a ...interface{} // format string, a ...interface{}

View File

@ -3,8 +3,8 @@ package main
import ( import (
"fmt" "fmt"
"git.zio.sh/astra/logger"
photoprism "git.zio.sh/astra/photoprism-client-go" photoprism "git.zio.sh/astra/photoprism-client-go"
"github.com/astravexton/logger"
) )
func main() { func main() {

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"git.zio.sh/astra/logger"
photoprism "git.zio.sh/astra/photoprism-client-go" photoprism "git.zio.sh/astra/photoprism-client-go"
"github.com/astravexton/logger"
) )
func main() { func main() {

View File

@ -5,8 +5,8 @@ import (
"io/ioutil" "io/ioutil"
"path" "path"
"git.zio.sh/astra/logger"
photoprism "git.zio.sh/astra/photoprism-client-go" photoprism "git.zio.sh/astra/photoprism-client-go"
"github.com/astravexton/logger"
) )
func main() { func main() {

7
go.mod
View File

@ -2,4 +2,9 @@ module git.zio.sh/astra/photoprism-client-go
go 1.18 go 1.18
require github.com/astravexton/logger v0.2.2-0.20211216142523-c1e08a465709 // indirect require git.zio.sh/astra/logger v1.0.1
require (
github.com/mattn/go-colorable v0.1.8 // indirect
github.com/mattn/go-isatty v0.0.12 // indirect
)

10
go.sum
View File

@ -1,8 +1,10 @@
github.com/astravexton/logger v0.2.2-0.20211216142523-c1e08a465709 h1:S+dBCax7wdg3ikWx5t6cClPKQIerrmD404qAzWhO2V4= git.zio.sh/astra/logger v1.0.1 h1:vEdHDT5L8n6rHihVblJ9Be1AtGQvKK9tzPHeX4DEBCw=
github.com/astravexton/logger v0.2.2-0.20211216142523-c1e08a465709/go.mod h1:6BlG5E0U3CImXLmDtGpEwdoc8PHiiDv0kbvJBCbfiMY= git.zio.sh/astra/logger v1.0.1/go.mod h1:4FJwzSIWGI8S0HxwSns5r+tuS7GcKAe78AjeEKEjt10=
github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= github.com/fatih/color v1.10.0 h1:s36xzo75JdqLaaWoiEHk767eHiwo0598uUxyfiPkDsg=
github.com/kris-nova/lolgopher v0.0.0-20210112022122-73f0047e8b65/go.mod h1:V0HF/ZBlN86HqewcDC/cVxMmYDiRukWjSrgKLUAn9Js= github.com/mattn/go-colorable v0.1.8 h1:c1ghPdyEDarC70ftn0y+A/Ee++9zz8ljHG1b13eJ0s8=
github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY=
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae h1:/WDfKMnPU+m5M4xB+6x4kaepxRw6jWvR5iDRdvjHgy8=
golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=

View File

@ -68,7 +68,7 @@ type Options struct {
//FFmpegBin string `yaml:"FFmpegBin" json:"-" flag:"ffmpeg-bin"` //FFmpegBin string `yaml:"FFmpegBin" json:"-" flag:"ffmpeg-bin"`
//ExifToolBin string `yaml:"ExifToolBin" json:"-" flag:"exiftool-bin"` //ExifToolBin string `yaml:"ExifToolBin" json:"-" flag:"exiftool-bin"`
//DetachServer bool `yaml:"DetachServer" json:"-" flag:"detach-server"` //DetachServer bool `yaml:"DetachServer" json:"-" flag:"detach-server"`
DownloadToken string `yaml:"DownloadToken" json:"downloadToken" flag:"download-token"` DownloadToken string `json:"downloadToken"`
//PreviewToken string `yaml:"PreviewToken" json:"-" flag:"preview-token"` //PreviewToken string `yaml:"PreviewToken" json:"-" flag:"preview-token"`
//ThumbFilter string `yaml:"ThumbFilter" json:"ThumbFilter" flag:"thumb-filter"` //ThumbFilter string `yaml:"ThumbFilter" json:"ThumbFilter" flag:"thumb-filter"`
//ThumbUncached bool `yaml:"ThumbUncached" json:"ThumbUncached" flag:"thumb-uncached"` //ThumbUncached bool `yaml:"ThumbUncached" json:"ThumbUncached" flag:"thumb-uncached"`