wkevent

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-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 Data

type Data struct {
	Event string      // 事件标示
	Type  Type        // 事件类型
	Data  interface{} // 事件数据
}

type Event

type Event interface {
	// 开启事件
	Begin(data *Data, tx *dbr.Tx) (int64, error)
	// 提交事件
	Commit(eventId int64)
}

type Status

type Status int

func (Status) Int

func (s Status) Int() int

type Type

type Type int
const (
	// None 无
	None Type = iota
	// Message 发送消息事件
	Message
	// CMD CMD
	CMD
)
const (
	Wait    Type = iota // 等待发布
	Success             // 发布重构
	Fail
)

func (Type) Int

func (t Type) Int() int

Jump to

Keyboard shortcuts

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