idgenerator

package
v0.0.0-...-9275613 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConfigFailed = errors.New("id-generator config failed")
View Source
var WireSet = wire.NewSet(
	wire.Struct(new(Server), "*"),
	mq.WireSet,
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Host     string
	Port     int
	IdPrefix string
}

func ConfigFromEnviron

func ConfigFromEnviron(environ common.Environ) (*Config, error)

type Server

type Server struct {
	Context ServerContext
	Log     common.Logger
	MQ      mq.MQ
}

func (Server) Run

func (s Server) Run() error

type ServerContext

type ServerContext context.Context

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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