channel

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel interface {
	NewChannel(config *config.SyncParamConfig)
	GetChannel() interface{}
	Close()
}

type OutputChannel

type OutputChannel struct {
	SyncChan               chan interface{}
	ChannelSize            int
	FLushCHanMaxWaitSecond int
	Done                   chan struct{}
}

func (*OutputChannel) Close

func (oc *OutputChannel) Close()

func (*OutputChannel) GetChannel

func (oc *OutputChannel) GetChannel() interface{}

func (*OutputChannel) NewChannel

func (oc *OutputChannel) NewChannel(config *config.SyncParamConfig)

type SyncChannel

type SyncChannel struct {
	SyncChan               chan interface{}
	FLushCHanMaxWaitSecond int
	Done                   chan struct{}
}

func (*SyncChannel) Close

func (sc *SyncChannel) Close()

func (*SyncChannel) GetChannel

func (sc *SyncChannel) GetChannel() interface{}

func (*SyncChannel) NewChannel

func (sc *SyncChannel) NewChannel(config *config.SyncParamConfig)

Jump to

Keyboard shortcuts

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