Browse Source

En cours de développement

master
losyme 5 months ago
parent
commit
822acb0976
  1. 14
      client/config.go
  2. 2
      workers/config.go

14
client/config.go

@ -28,10 +28,10 @@ const (
)
type Endpoint struct {
URL string
Username string
Password string
CAFile string
URL string `cfg:"url"`
Username string `cfg:"username"`
Password string `cfg:"password"`
CAFile string `cfg:"ca_file"`
}
type EndpointOption func(*Endpoint)
@ -136,9 +136,9 @@ type Logger interface {
}
type Config struct {
Endpoints []*Endpoint
CertFile string
KeyFile string
Endpoints []*Endpoint `cfg:"endpoints"`
CertFile string `cfg:"cert_file"`
KeyFile string `cfg:"key_file"`
Logger Logger
}

2
workers/config.go

@ -24,7 +24,7 @@ type Logger interface {
}
type Config struct {
PoolSize int
PoolSize int `cfg:"pool_size"`
Model sdk.Model
Runner sdk.Runner
Logger Logger

Loading…
Cancel
Save