Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("generator not found")
ErrNotFound for generator.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { Name string `yaml:"name"` Kind string `yaml:"kind"` Prefix string `yaml:"prefix"` Suffix string `yaml:"suffix"` Separator string `yaml:"separator"` }
Application fto generate identifiers.
type Config ¶
type Config struct {
Applications []Application `yaml:"applications"`
}
Config for generator.
func (*Config) Application ¶
func (c *Config) Application(name string) *Application
Application by name.
type Generator ¶
type Generator interface { // Generate an identifier. Generate(ctx context.Context) (string, error) }
Generator to generate an identifier.
type PG ¶ added in v1.5.0
type PG struct {
// contains filtered or unexported fields
}
PG generator.
type Redis ¶ added in v1.6.0
type Redis struct {
// contains filtered or unexported fields
}
Redis generator.
Click to show internal directories.
Click to hide internal directories.