package
Version:
v0.0.0-...-6ae1f19
Opens a new window with list of versions in this module.
Published: Jan 29, 2019
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
PORT string `yaml:"port"`
STEP uint64 `yaml:"step"`
MySQL MySQL `yaml:"mysql"`
}
type MySQL struct {
User string `yaml:"user"`
PassWord string `yaml:"password"`
Host string `yaml:"host"`
Database string `yaml:"database"`
}
Service is the basic information for a unique ID generator
New returns a new service that can be used to generate
IDs
NextID creates and returns a unique ID
Source Files
¶
Click to show internal directories.
Click to hide internal directories.