NewSettingsStore returns a new SettingsStore using the global database handle.
()
| 711 | // NewSettingsStore returns a new SettingsStore using the global database |
| 712 | // handle. |
| 713 | func NewSettingsStore() SettingsStore { |
| 714 | return &settingsStore{} |
| 715 | } |
| 716 | |
| 717 | func (*settingsStore) CreateAccessToken(ctx gocontext.Context, userID int64, name string) (*database.AccessToken, error) { |
| 718 | return database.Handle.AccessTokens().Create(ctx, userID, name) |