seeddb

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cli.Command{
	Name:   "seed",
	Usage:  "Seed the database with test data",
	Action: run,
}

Functions

This section is empty.

Types

type Seed added in v0.6.3

type Seed struct {
	Users []SeedUser `yaml:"users"`
}

type SeedMember added in v0.6.3

type SeedMember struct {
	Name        string            `yaml:"name"`
	DisplayName *string           `yaml:"displayName"`
	Bio         string            `yaml:"bio"`
	Links       []string          `yaml:"links"`
	Names       []db.FieldEntry   `yaml:"names"`
	Pronouns    []db.PronounEntry `yaml:"pronouns"`
	Fields      []db.Field        `yaml:"fields"`
	Members     []SeedMember      `yaml:"members"`
}

type SeedUser added in v0.6.3

type SeedUser struct {
	Username    string            `yaml:"username"`
	DisplayName *string           `yaml:"displayName"`
	Bio         *string           `yaml:"bio"`
	Links       []string          `yaml:"links"`
	Names       []db.FieldEntry   `yaml:"names"`
	Pronouns    []db.PronounEntry `yaml:"pronouns"`
	Fields      []db.Field        `yaml:"fields"`
	Members     []SeedMember      `yaml:"members"`
}

Jump to

Keyboard shortcuts

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