-
Notifications
You must be signed in to change notification settings - Fork 19
/
config.go
23 lines (20 loc) · 876 Bytes
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package context
import (
"github.com/baetyl/baetyl-go/v2/http"
"github.com/baetyl/baetyl-go/v2/log"
"github.com/baetyl/baetyl-go/v2/mqtt"
"github.com/baetyl/baetyl-go/v2/utils"
)
const (
SystemCertCA = "ca.pem"
SystemCertCrt = "crt.pem"
SystemCertKey = "key.pem"
SystemCertPath = "/var/lib/baetyl/system/certs"
)
// SystemConfig config of baetyl system
type SystemConfig struct {
Certificate utils.Certificate `yaml:"cert,omitempty" json:"cert,omitempty" default:"{\"ca\":\"var/lib/baetyl/system/certs/ca.pem\",\"key\":\"var/lib/baetyl/system/certs/key.pem\",\"cert\":\"var/lib/baetyl/system/certs/crt.pem\"}"`
Function http.ClientConfig `yaml:"function,omitempty" json:"function,omitempty"`
Broker mqtt.ClientConfig `yaml:"broker,omitempty" json:"broker,omitempty"`
Logger log.Config `yaml:"logger,omitempty" json:"logger,omitempty"`
}