Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SuperUser ¶
type SuperUser struct { Username string `env:"ADMIN_USERNAME"` Password string `env:"ADMIN_PASSWORD"` }
func NewSuperUserEnvConfig ¶
func NewSuperUserEnvConfig() *SuperUser
type User ¶
type User struct { ID string Token string BareToken string IsPublic bool IsAuthenticated bool UserAttributes *UserAttributes AccessToken string // contains filtered or unexported fields }
func FromContext ¶
func (*User) IncrementAccountBalance ¶
type UserAttributes ¶
type UserAttributes struct { Currency string `json:"custom:currency"` Country string `json:"custom:country"` StoreName string `json:"custom:store_name"` Website string `json:"website"` Logo string `json:"custom:logo"` CoverImage string `json:"custom:cover_image"` ShippingModule int8 `json:"custom:shipping_module,string"` FeeMultiplier float64 `json:"custom:fee_multiplier,string"` AccountBalance int `json:"custom:account_balance,string"` CustomCSS string `json:"custom:custom_css"` }
Click to show internal directories.
Click to hide internal directories.