From b9be95af38bad41ed52a78e4f012d410b33eee34 Mon Sep 17 00:00:00 2001 From: hlts2 Date: Thu, 9 Jul 2020 15:33:42 +0900 Subject: [PATCH] feat: add comment Signed-off-by: hlts2 --- internal/config/mysql.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/config/mysql.go b/internal/config/mysql.go index 824fcb007b5..8906649cddc 100644 --- a/internal/config/mysql.go +++ b/internal/config/mysql.go @@ -17,6 +17,7 @@ // Package config providers configuration type and load configuration logic package config +// MySQL represent the mysql configuration. type MySQL struct { DB string `json:"db" yaml:"db"` Host string `json:"host" yaml:"host"` @@ -35,6 +36,7 @@ type MySQL struct { TCP *TCP `json:"tcp" yaml:"tcp"` } +// Bind returns MySQL object whose some string value is filed value or environment value. func (m *MySQL) Bind() *MySQL { if m.TLS != nil { m.TLS.Bind()