package grpcimp

type Config struct {
	Network          string     `yaml:"network"`
	Address          string     `yaml:"address"`
	EnableReflection bool       `yaml:"enable_reflection"`
	EnableHealth     bool       `yaml:"enable_health"`
	MaxRecvMsgSize   int        `yaml:"max_recv_msg_size"`
	MaxSendMsgSize   int        `yaml:"max_send_msg_size"`
	TLS              *TLSConfig `yaml:"tls"`
}

type TLSConfig struct {
	CertFile          string `yaml:"cert_file"`
	KeyFile           string `yaml:"key_file"`
	CAFile            string `yaml:"ca_file"`
	RequireClientCert bool   `yaml:"require_client_cert"`
}
