wsnowid

package
v0.0.0-...-2e0c1f2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 6 Imported by: 0

README

wsnowid

Environment Variables

  • SNOWID_URL, url to snowid service

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Installer

func Installer(opts ...Option) wext.Installer

Installer install component

func Next

func Next(ctx context.Context, altKeys ...string) string

Next return a new id

func NextN

func NextN(ctx context.Context, size int, altKeys ...string) []string

NextN return n ids generated from snowid service

Types

type Option

type Option = func(opts *options)

Option option for installation

func WithRestyKey

func WithRestyKey(k ...string) Option

WithRestyKey set wresty.KeyType

func WithURL

func WithURL(u string) Option

WithURL set url of snowid service

Jump to

Keyboard shortcuts

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