MCPcopy Create free account
hub / github.com/gogs/gogs / NewSettingsStore

Function NewSettingsStore

internal/route/user/setting.go:713–715  ·  view source on GitHub ↗

NewSettingsStore returns a new SettingsStore using the global database handle.

()

Source from the content-addressed store, hash-verified

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

Callers 1

runWebFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected