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

Function newNoticesStore

internal/database/notices.go:19–21  ·  view source on GitHub ↗
(db *gorm.DB)

Source from the content-addressed store, hash-verified

17}
18
19func newNoticesStore(db *gorm.DB) *NoticesStore {
20 return &NoticesStore{db: db}
21}
22
23// Create creates a system notice with the given type and description.
24func (s *NoticesStore) Create(ctx context.Context, typ NoticeType, desc string) error {

Callers 1

NoticesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected