client

package
v0.0.0-...-12f838c Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EkkoClient

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

func NewEkkoClient

func NewEkkoClient(addrs []string, opts ...OpOption) (*EkkoClient, error)

func (*EkkoClient) Close

func (e *EkkoClient) Close()

func (*EkkoClient) IDGen

func (c *EkkoClient) IDGen(ctx context.Context, product int32) (uint64, error)

func (*EkkoClient) MultiIDGen

func (c *EkkoClient) MultiIDGen(ctx context.Context, product int32, count uint32) (uids []uint64, err error)

type OpOption

type OpOption func(opt *option)

func WithFallback

func WithFallback() OpOption

Jump to

Keyboard shortcuts

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