producer

package
v0.0.0-...-4d53ac5 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEnableAsync

func IsEnableAsync() bool

IsEnableAsync 是否开启异步

Types

type AsyncProducer

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

AsyncProducer DB异步操作生产者

var (
	AsyncProducerInstance *AsyncProducer
)

func NewDbAsyncProducer

func NewDbAsyncProducer(workerChan chan<- interface{}) *AsyncProducer

func (*AsyncProducer) IsStart

func (p *AsyncProducer) IsStart() bool

IsStart 是否启动

func (*AsyncProducer) Produce

func (p *AsyncProducer) Produce(asyncFunc interface{})

Produce 生产

func (*AsyncProducer) Start

func (p *AsyncProducer) Start()

Start 启动

func (*AsyncProducer) Stop

func (p *AsyncProducer) Stop()

Stop 关闭

Jump to

Keyboard shortcuts

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