eventbus

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: MulanPSL-2.0 Imports: 1 Imported by: 1

README

EventBus

💡 Introduction

Event Bus for Sillot.

🙏 Acknowledgement

Documentation

Index

Constants

View Source
const (
	CtxPushMsg = "pushMsg"

	CtxPushMsgToProgress = iota
	CtxPushMsgToStatusBar
	CtxPushMsgToStatusBarAndProgress
)

消息推送事件。

View Source
const (
	EvtSQLInsertBlocks    = "sql.insert.blocks"
	EvtSQLInsertBlocksFTS = "sql.insert.blocks_fts"
	EvtSQLDeleteBlocks    = "sql.delete.blocks"

	EvtSQLInsertHistory = "sql.insert.history"
)

数据库索引事件。

View Source
const (
	EvtCheckoutBeforeWalkData    = "repo.checkout.beforeWalkData"
	EvtCheckoutWalkData          = "repo.checkout.walkData"
	EvtCheckoutUpsertFiles       = "repo.checkout.upsertFiles"
	EvtCheckoutUpsertFile        = "repo.checkout.upsertFile"
	EvtCheckoutRemoveFiles       = "repo.checkout.removeFiles"
	EvtCheckoutRemoveFile        = "repo.checkout.removeFile"
	EvtIndexBeforeWalkData       = "repo.index.beforeWalkData"
	EvtIndexWalkData             = "repo.index.walkData"
	EvtIndexBeforeGetLatestFiles = "repo.index.beforeGetLatestFiles"
	EvtIndexGetLatestFile        = "repo.index.getLatestFile"
	EvtIndexUpsertFiles          = "repo.index.upsertFiles"
	EvtIndexUpsertFile           = "repo.index.upsertFile"
)

数据仓库本地事件。

View Source
const (
	EvtCloudLock                 = "repo.cloudLock"
	EvtCloudUnlock               = "repo.cloudUnlock"
	EvtCloudBeforeUploadIndex    = "repo.cloudBeforeUploadIndex"
	EvtCloudBeforeUploadFiles    = "repo.cloudBeforeUploadFiles"
	EvtCloudBeforeUploadFile     = "repo.cloudBeforeUploadFile"
	EvtCloudBeforeUploadChunks   = "repo.cloudBeforeUploadChunks"
	EvtCloudBeforeUploadChunk    = "repo.cloudBeforeUploadChunk"
	EvtCloudBeforeDownloadIndex  = "repo.cloudBeforeDownloadIndex"
	EvtCloudBeforeDownloadFiles  = "repo.cloudBeforeDownloadFiles"
	EvtCloudBeforeDownloadFile   = "repo.cloudBeforeDownloadFile"
	EvtCloudBeforeDownloadChunks = "repo.cloudBeforeDownloadChunks"
	EvtCloudBeforeDownloadChunk  = "repo.cloudBeforeDownloadChunk"
	EvtCloudBeforeDownloadRef    = "repo.cloudBeforeDownloadRef"
	EvtCloudBeforeUploadRef      = "repo.cloudBeforeUploadRef"
)

数据仓库云端同步事件。

Variables

This section is empty.

Functions

func Publish

func Publish(topic string, arg ...interface{})

func Subscribe

func Subscribe(topic string, handler interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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