Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServicesTest ¶
type ServicesTest struct { DataFS filesystem.FS DB *database.Database ServerURL *url.URL Services *services.Services // contains filtered or unexported fields }
ServicesTest makes it easy to test services
func (*ServicesTest) AddPGPKeyToUser ¶
AddPGPKeyToUser will add a pgp key to the user and return public and private key
func (*ServicesTest) AddTokenToUser ¶
func (servicesTest *ServicesTest) AddTokenToUser(user *models.User) *models.AccessToken
AddTokenToUser will generate an access token for the given user
func (*ServicesTest) GetOrCreateTestUser ¶
func (servicesTest *ServicesTest) GetOrCreateTestUser() *models.User
GetOrCreateTestUser will get or create the test user and return the user, its pgp key and its private key
Click to show internal directories.
Click to hide internal directories.