snowflake

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: BSD-3-Clause Imports: 9 Imported by: 1

README

go-uid-snowflake

Go package providing a an implementation of the aaronland/go-uid interface using Snowflake indentifiers.

Documentation

Documentation is incomplete at this time.

See also

Documentation

Overview

Package snowflake provides an implementation of the aaronland/go-uid interface using Snowflake indentifiers

Index

Constants

View Source
const SNOWFLAKE_SCHEME string = "snowflake"

Variables

This section is empty.

Functions

func NewSnowflakeProvider

func NewSnowflakeProvider(ctx context.Context, uri string) (uid.Provider, error)

func NewSnowflakeUID

func NewSnowflakeUID(ctx context.Context, args ...interface{}) (uid.UID, error)

Types

type SnowflakeProvider

type SnowflakeProvider struct {
	uid.Provider
	// contains filtered or unexported fields
}

func (*SnowflakeProvider) SetLogger added in v0.0.3

func (pr *SnowflakeProvider) SetLogger(ctx context.Context, logger *log.Logger) error

func (*SnowflakeProvider) UID

func (pr *SnowflakeProvider) UID(ctx context.Context, args ...interface{}) (uid.UID, error)

type SnowflakeUID

type SnowflakeUID struct {
	uid.UID
	// contains filtered or unexported fields
}

func (*SnowflakeUID) String

func (u *SnowflakeUID) String() string

func (*SnowflakeUID) Value

func (u *SnowflakeUID) Value() any

Directories

Path Synopsis
cmd
uid command

Jump to

Keyboard shortcuts

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