Documentation ¶
Index ¶
Constants ¶
View Source
const (
PACKAGE string = "oneMember"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Created string `json:"created"` Claims []Claim `json:"claims"` Email string `json:"email"` HashedPassword string `json:"hashedPassword,omitempty" out:"false"` LinkedAccounts []LinkedAccount `json:"linkedAccount"` Salt string `json:"salt,omitempty" out:"false"` Tenant string `json:"tenant"` Username string `json:"username"` }
func (*Account) RemoveClaim ¶
type AccountService ¶
type AccountService interface { AuthAccount(username string, password string) (*Account, error) AddClaim(in *Account, claim Claim) error Create(username string, password string, email string) (*Account, error) GetByUsername(username string) (*Account, error) RemoveClaim(in *Account, claimType string, provider string) error SetLinkedAccount(in *Account, provider string, claims []Claim) error Update(in *Account) error }
func New ¶
func New(db DataConnector) AccountService
type DataConnector ¶
type LinkedAccount ¶
Click to show internal directories.
Click to hide internal directories.