initialize

package
v0.67.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllBillings = []Billing{
	BillingNone,
	BillingStripe,
}
View Source
var AllQueues = []Queue{
	QueueNone,
	QueueBasic,
	QueueSQS,
}

Functions

func IsDirectoryEmpty added in v0.48.0

func IsDirectoryEmpty(name string) (bool, error)

func RemoveEmptyDirs added in v0.48.0

func RemoveEmptyDirs(paths map[string]bool) error

func Run added in v0.35.0

func Run(cfg *Config) error

Types

type Billing added in v0.67.0

type Billing string
const (
	BillingNone   Billing = "none"
	BillingStripe Billing = "stripe"
)

func (Billing) IsValid added in v0.67.0

func (b Billing) IsValid() bool

func (Billing) String added in v0.67.0

func (b Billing) String() string

type Command

type Command struct {
	Message string
	Name    string
	Args    []string
}

type Config

type Config struct {
	Quiet     bool
	OutputDir string
	Git       bool

	Name     string
	Database Database
	Queue    Queue
	Billing  Billing

	SMTP      bool
	Storage   bool
	Redis     bool
	ServeHTML bool

	OAuthGoogle    bool
	OAuthDiscord   bool
	OAuthGitHub    bool
	OAuthInstagram bool
	OAuthMicrosoft bool
	OAuthReddit    bool
	OAuthSpotify   bool
	OAuthTwitch    bool
	OAuthFacebook  bool
	OAuthLinkedIn  bool
	OAuthSlack     bool
	OAuthStripe    bool
	OAuthX         bool

	OIDCFacebook  bool
	OIDCGoogle    bool
	OIDCLinkedIn  bool
	OIDCMicrosoft bool
	OIDCTwitch    bool
	OIDCDiscord   bool
}

type Database

type Database string
const (
	DatabaseSQLite3  Database = "sqlite3"
	DatabasePostgres Database = "postgres"
	DatabaseMySQL    Database = "mysql"
	DatabaseMariaDB  Database = "mariadb"
	DatabaseNone     Database = "none"
)

func (Database) ConnString

func (d Database) ConnString(projectName string) string

func (Database) Driver

func (d Database) Driver() string

func (Database) Import

func (d Database) Import() string

func (Database) IsValid

func (d Database) IsValid() bool

func (Database) SQLCEngine

func (d Database) SQLCEngine() string

func (Database) String

func (d Database) String() string

type FileExclusion added in v0.56.0

type FileExclusion struct {
	FilePaths []string
	Check     func(*Project) bool
}

type FileRename added in v0.56.0

type FileRename struct {
	OldPath string
	NewPath string
	Check   func(*Project) bool
}

type Project

type Project struct {
	Name     string
	Database Database
	Queue    Queue

	SMTP      bool
	Storage   bool
	Redis     bool
	ServeHTML bool

	OAuthGoogle    bool
	OAuthDiscord   bool
	OAuthGitHub    bool
	OAuthInstagram bool
	OAuthMicrosoft bool
	OAuthReddit    bool
	OAuthSpotify   bool
	OAuthTwitch    bool
	OAuthFacebook  bool
	OAuthLinkedIn  bool
	OAuthSlack     bool
	OAuthStripe    bool
	OAuthX         bool

	OIDCFacebook  bool
	OIDCGoogle    bool
	OIDCLinkedIn  bool
	OIDCMicrosoft bool
	OIDCTwitch    bool
	OIDCDiscord   bool

	Billing Billing
	// contains filtered or unexported fields
}

func NewProject added in v0.48.0

func NewProject(cfg *Config) *Project

func (*Project) ExcludeFile added in v0.56.0

func (p *Project) ExcludeFile(templateFileName string) bool

func (*Project) HasOAuth added in v0.59.0

func (p *Project) HasOAuth() bool

func (*Project) HasOIDC added in v0.59.0

func (p *Project) HasOIDC() bool

func (*Project) RenameFiles added in v0.56.0

func (p *Project) RenameFiles(outputPath string) error

func (*Project) UsesDockerOnDev added in v0.54.0

func (p *Project) UsesDockerOnDev() bool

type Queue added in v0.59.0

type Queue string
const (
	QueueNone  Queue = "none"
	QueueBasic Queue = "basic"
	QueueSQS   Queue = "sqs"
)

func (Queue) IsValid added in v0.59.0

func (t Queue) IsValid() bool

func (Queue) String added in v0.59.0

func (t Queue) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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