listener

package
v0.0.0-...-6e5bb36 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IListener

type IListener interface {
	// Start is used for starting the listener.
	Start()
}

IListener ...

func New

func New(opts ...Option) IListener

New ...

type Listener

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

Listener ...

func (*Listener) Start

func (listener *Listener) Start()

Start is used for starting the listener.

type Option

type Option func(listener *Listener)

Option ...

func WithConfig

func WithConfig(config config.IConfig) Option

WithConfig ...

func WithJob

func WithJob(job job.IJob) Option

WithJob ...

func WithPkg

func WithPkg(pkg pkg.IPkg) Option

WithPkg ...

func WithRedis

func WithRedis(redis *redis.Pool) Option

WithRedis ...

func WithRepo

func WithRepo(repo repo.IRepo) Option

WithRepo ...

func WithUseCase

func WithUseCase(usecase usecase.IUseCase) Option

WithUseCase ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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