generator

package
v0.0.0-...-b643d64 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Type string `json:"type,omitempty" koanf:"type"`
}

type Generator

type Generator interface {
	ShortURLKey() string
}

func Provide

func Provide(cfg Config) Generator

type Simple

type Simple struct{}

Simple is an easy to use random key generator.

func (Simple) ShortURLKey

func (Simple) ShortURLKey() string

ShortURLKey generates a random key from the source characters.

Jump to

Keyboard shortcuts

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