flags

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinPort = 3000
	MaxPort = 65535
)

Variables

View Source
var AllowedDBDrivers = []string{string(Postgres), string(Sqlite)}
View Source
var AllowedGitOptions = []Git{Yes, No}
View Source
var AllowedLogLevels = []string{string(Debug), string(Info), string(Warn), string(Error)}

Functions

This section is empty.

Types

type Database

type Database string
const (
	Postgres Database = "postgres"
	Sqlite   Database = "sqlite"
)

These are all the current databases supported. If you want to add any, just add a line below here and remember include it in the `AllowedDBDrivers` slice.

func (*Database) Set

func (f *Database) Set(value string) error

func (Database) String

func (f Database) String() string

func (*Database) Type

func (f *Database) Type() string

type Git

type Git bool
const (
	Yes Git = true
	No  Git = false
)

func (*Git) IsGitEnabled

func (g *Git) IsGitEnabled() bool

IsGitEnabled checks if the Git feature is enabled. It returns true if Git is enabled, otherwise false.

func (*Git) Set

func (g *Git) Set(value string) error

func (Git) String

func (g Git) String() string

func (*Git) Type

func (g *Git) Type() string

type LogLevel

type LogLevel string
const (
	Debug LogLevel = "debug"
	Info  LogLevel = "info"
	Warn  LogLevel = "warn"
	Error LogLevel = "error"
)

func (*LogLevel) Set

func (f *LogLevel) Set(value string) error

func (*LogLevel) String

func (f *LogLevel) String() string

func (*LogLevel) Type

func (f *LogLevel) Type() string

type Port

type Port string

func (*Port) Set

func (p *Port) Set(value string) error

func (Port) String

func (p Port) String() string

func (*Port) Type

func (p *Port) Type() string

Jump to

Keyboard shortcuts

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