Skip to content

Commit

Permalink
authn config: add json tag to unexported fields
Browse files Browse the repository at this point in the history
* fields previously added in this commit: 73682b8

Signed-off-by: Alex Aizman <[email protected]>
  • Loading branch information
alex-aizman committed Aug 2, 2024
1 parent 2bf96fb commit e24c869
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/authn/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type (
Server ServerConf `json:"auth"`
Timeout TimeoutConf `json:"timeout"`
// private
mu sync.RWMutex
mu sync.RWMutex `json:"-"`
}
LogConf struct {
Dir string `json:"dir"`
Expand All @@ -42,8 +42,8 @@ type (
Secret string `json:"secret"`
Expire cos.Duration `json:"expiration_time"`
// private
psecret *string
pexpire *cos.Duration
psecret *string `json:"-"`
pexpire *cos.Duration `json:"-"`
}
TimeoutConf struct {
Default cos.Duration `json:"default_timeout"`
Expand Down

0 comments on commit e24c869

Please sign in to comment.