cmd

package
Version: v0.0.0-...-41ff29f Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppCmd

type AppCmd struct {
	// contains filtered or unexported fields
}

func NewAppCmd

func NewAppCmd(config *conf.Config, segmentImpl *segment.SegmentImpl, snowflakeIdGen *snowflake.Snowflake) (ret *AppCmd, err error)

func (*AppCmd) GetSegmentID

func (a *AppCmd) GetSegmentID(ctx context.Context, key string) (id int64, err error)

func (*AppCmd) GetSnowflakeID

func (a *AppCmd) GetSnowflakeID(key string) (id int64, err error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL