natsio/config.go

34 lines
391 B
Go
Raw Permalink Normal View History

2021-10-08 04:23:59 +00:00
package natsio
2022-03-30 12:17:14 +00:00
import "time"
2021-10-08 04:23:59 +00:00
// Config ...
type Config struct {
// Connect url
URL string
// Auth user
User string
// Auth password
Password string
// TLS config
TLS *TLSConfig
2022-03-30 12:17:14 +00:00
// RequestTimeout
RequestTimeout time.Duration
2021-10-08 04:23:59 +00:00
}
// TLSConfig ...
type TLSConfig struct {
// Cert file
CertFilePath string
// Key file
KeyFilePath string
// Root CA
RootCAFilePath string
}