Skip to content

Commit

Permalink
feat: add comment
Browse files Browse the repository at this point in the history
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
  • Loading branch information
hlts2 committed Jul 9, 2020
1 parent 2a60db3 commit b9be95a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/config/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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()
Expand Down

0 comments on commit b9be95a

Please sign in to comment.