Remove all json tags, simply not needed

This commit is contained in:
Marc Di Luzio 2020-07-22 19:55:38 +01:00
parent 075a502103
commit c94ac68f44
8 changed files with 37 additions and 37 deletions

View file

@ -21,8 +21,8 @@ type Accountant interface {
// Account represents a registered user
type Account struct {
// Name simply describes the account and must be unique
Name string `json:"name"`
Name string
// Data represents internal account data
Data map[string]string `json:"data"`
Data map[string]string
}

View file

@ -9,7 +9,7 @@ import (
// SimpleAccountant manages a set of accounts
type SimpleAccountant struct {
Accounts map[string]Account `json:"accounts"`
Accounts map[string]Account
}
// NewSimpleAccountant creates a new accountant

View file

@ -45,14 +45,14 @@ const gRPCport = 9090
// Account stores data for an account
type Account struct {
Name string `json:"name"`
Secret string `json:"secret"`
Name string
Secret string
}
// Config is used to store internal data
type Config struct {
Host string `json:"host,omitempty"`
Account Account `json:"account,omitempty"`
Host string
Account Account
}
// ConfigPath returns the configuration path