store

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetClient

func SetClient(factory Factory)

SetClient sets the consumer store client.

Types

type EtcdModifyEventFunc

type EtcdModifyEventFunc func(ctx context.Context, key, oldvalue, value []byte)

EtcdModifyEventFunc defines etcd update event function handler.

type Factory

type Factory interface {
	Nsqs() NsqStore
	GetKey(string) string
	Watch(context.Context, string, EtcdModifyEventFunc) error
	Close() error
}

Factory defines the consumer storage interface.

func Client

func Client() Factory

Client returns the store client instance.

type NsqStore

type NsqStore interface {
	Get(ctx context.Context, key string) (*genericoptions.NsqOptions, error)
	GetKey(key string) string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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