Help us shape the future of Go! Take the 2026 Go Developer Survey

seed

package
v1.21.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package seed provides database seeding for required initial data. This replaces SQL INSERT statements from migrations to enable consistent seeding across all supported databases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWebhookDenyListCount

func GetWebhookDenyListCount() int

GetWebhookDenyListCount returns the expected number of deny list entries. Useful for testing and validation. SEM@acf29174839ed9f1cb1950265092e2bdacdcb5bd: return the expected number of seeded webhook deny-list entries (pure)

func SeedDatabase

func SeedDatabase(db *gorm.DB) error

SeedDatabase ensures all required seed data exists. This function is idempotent - safe to call multiple times. SEM@13c4215bf8e204da342579717f97f7393bb5fe2f: idempotently seed all required built-in groups and deny list entries into the DB (reads DB)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL