mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-15 05:16:34 +08:00
优化代码
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
package serverconfigs
|
||||
|
||||
import "github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/sslconfigs"
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/sslconfigs"
|
||||
)
|
||||
|
||||
// HTTPS协议配置
|
||||
type HTTPSProtocolConfig struct {
|
||||
@@ -26,3 +29,8 @@ func (this *HTTPSProtocolConfig) Init() error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// 转换为JSON
|
||||
func (this *HTTPSProtocolConfig) AsJSON() ([]byte, error) {
|
||||
return json.Marshal(this)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user