depend_mgr

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DependMgr

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

func New

func New(cli *rds.Pool, key string) *DependMgr

func (*DependMgr) Add added in v0.2.8

func (this *DependMgr) Add(topic string, frontTopic string, opts ...Option) *DependMgr

func (*DependMgr) GetFrontTopicOffset

func (this *DependMgr) GetFrontTopicOffset(topic string) (r int64)

func (*DependMgr) GetTopicOffset added in v0.2.11

func (this *DependMgr) GetTopicOffset(topic string) (r int64)

func (*DependMgr) MarkTopicOffset

func (this *DependMgr) MarkTopicOffset(topic string, partition int32, offset int64)

func (*DependMgr) MarkTopicOffsetForAllPartition added in v0.2.11

func (this *DependMgr) MarkTopicOffsetForAllPartition(topic string, offset int64)

func (*DependMgr) Start

func (this *DependMgr) Start()

func (*DependMgr) Stop

func (this *DependMgr) Stop()

func (*DependMgr) Wait

func (this *DependMgr) Wait(topic string, offset int64) (isTimeout bool)

type Option added in v0.2.8

type Option func(o *Options)

func WithCheckInterval added in v0.2.8

func WithCheckInterval(inp time.Duration) Option

func WithDelayOffset added in v0.2.8

func WithDelayOffset(inp int64) Option

func WithTimeout added in v0.2.8

func WithTimeout(inp time.Duration) Option

type Options added in v0.2.8

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

Jump to

Keyboard shortcuts

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