From 32f1b7107354feeef2c86bd139a741ae81f5a5d1 Mon Sep 17 00:00:00 2001 From: Lykin <137850705+tiny-craft@users.noreply.github.com> Date: Sun, 18 Feb 2024 14:53:00 +0800 Subject: [PATCH] refactor: standardize key names in YAML config file --- backend/types/connection.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/types/connection.go b/backend/types/connection.go index c581633..7125fb2 100644 --- a/backend/types/connection.go +++ b/backend/types/connection.go @@ -21,7 +21,7 @@ type ConnectionConfig struct { KeyView int `json:"keyView,omitempty" yaml:"key_view,omitempty"` LoadSize int `json:"loadSize,omitempty" yaml:"load_size,omitempty"` MarkColor string `json:"markColor,omitempty" yaml:"mark_color,omitempty"` - RefreshInterval int `json:"refreshInterval,omitempty" yaml:"refreshInterval,omitempty"` + RefreshInterval int `json:"refreshInterval,omitempty" yaml:"refresh_interval,omitempty"` Alias map[int]string `json:"alias,omitempty" yaml:"alias,omitempty"` SSL ConnectionSSL `json:"ssl,omitempty" yaml:"ssl,omitempty"` SSH ConnectionSSH `json:"ssh,omitempty" yaml:"ssh,omitempty"` @@ -48,10 +48,10 @@ type ConnectionDB struct { type ConnectionSSL struct { Enable bool `json:"enable,omitempty" yaml:"enable,omitempty"` - KeyFile string `json:"keyFile,omitempty" yaml:"keyFile,omitempty"` - CertFile string `json:"certFile,omitempty" yaml:"certFile,omitempty"` - CAFile string `json:"caFile,omitempty" yaml:"caFile,omitempty"` - AllowInsecure bool `json:"allowInsecure,omitempty" yaml:"allowInsecure,omitempty"` + KeyFile string `json:"keyFile,omitempty" yaml:"keyfile,omitempty"` + CertFile string `json:"certFile,omitempty" yaml:"certfile,omitempty"` + CAFile string `json:"caFile,omitempty" yaml:"cafile,omitempty"` + AllowInsecure bool `json:"allowInsecure,omitempty" yaml:"allow_insecure,omitempty"` SNI string `json:"sni,omitempty" yaml:"sni,omitempty"` }