Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountsApi ¶
type AccountsApi interface { GetUserById(id uuid.UUID) (*Account, error) GetUserByEmail(email string) (*Account, error) CreateAccount(email string) (uuid.UUID, error) CreateUser(input UserCreateInput) (uuid.UUID, error) }
AccountsApi: interfaces for working with accounts and users
func NewAccountsApi ¶
func NewAccountsApi(querier dbc.Querier, ctx *context.Context) AccountsApi
NewAccountsApi: factor for an instance of AccountsApi
type AccountsApiFactory ¶
type AccountsApiFactory func(querier dbc.Querier, ctx *context.Context) AccountsApi
AccountsApiFactory: injected into context so testing can mock the api.
type Person ¶
Person: a person in the system. When an account has a person, then it is a user account
type UserCreateInput ¶
UserCreateInput: input type for creating a user
Click to show internal directories.
Click to hide internal directories.