driver

package
v0.0.0-...-ecb1187 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratorInit

func GeneratorInit(node int64)

func GeneratorInstance

func GeneratorInstance() *snowflake.Node

func LoggerInit

func LoggerInit(config *LoggerOptions)

func LoggerInstance

func LoggerInstance() *logrus.Logger

Types

type GeneratorOptions

type GeneratorOptions struct {
	Node int64 `yaml:"node"`
}

type LoggerOptions

type LoggerOptions struct {
	LogName string `yaml:"log_name"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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