Skip to content

Commit

Permalink
use spaces instead of commas for multiple tags
Browse files Browse the repository at this point in the history
  • Loading branch information
bnfinet committed Apr 9, 2019
1 parent 41c3c71 commit 718eab7
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions pkg/structs/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ type User struct {
// TODO: set Provider here so that we can pass it to db
// populated by db (via mapstructure) or from provider (via json)
// Provider string `json:"provider",mapstructure:"provider"`
Username string `json:"username",mapstructure:"username"`
Name string `json:"name",mapstructure:"name"`
Email string `json:"email",mapstructure:"email"`
Username string `json:"username" mapstructure:"username"`
Name string `json:"name" mapstructure:"name"`
Email string `json:"email" mapstructure:"email"`
CreatedOn int64 `json:"createdon"`
LastUpdate int64 `json:"lastupdate"`
ID int `json:"id",mapstructure:"id"`
ID int `json:"id" mapstructure:"id"`
// jwt.StandardClaims
}

Expand Down Expand Up @@ -90,18 +90,18 @@ func (u *IndieAuthUser) PrepareUserData() {

// Team has members and provides acess to sites
type Team struct {
Name string `json:"name",mapstructure:"name"`
Members []string `json:"members",mapstructure:"members"` // just the emails
Sites []string `json:"sites",mapstructure:"sites"` // just the domains
CreatedOn int64 `json:"createdon",mapstructure:"createdon"`
LastUpdate int64 `json:"lastupdate",mapstructure:"lastupdate"`
ID int `json:"id",mapstructure:"id"`
Name string `json:"name" mapstructure:"name"`
Members []string `json:"members" mapstructure:"members"` // just the emails
Sites []string `json:"sites" mapstructure:"sites"` // just the domains
CreatedOn int64 `json:"createdon" mapstructure:"createdon"`
LastUpdate int64 `json:"lastupdate" mapstructure:"lastupdate"`
ID int `json:"id" mapstructure:"id"`
}

// Site is the basic unit of auth
type Site struct {
Domain string `json:"domain"`
CreatedOn int64 `json:"createdon"`
LastUpdate int64 `json:"lastupdate"`
ID int `json:"id",mapstructure:"id"`
ID int `json:"id" mapstructure:"id"`
}

0 comments on commit 718eab7

Please sign in to comment.