event

package
v0.0.0-...-cb472e6 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BizKey = Key{
	// contains filtered or unexported fields
}
View Source
var HostKey = Key{
	// contains filtered or unexported fields
}
View Source
var ModuleHostRelationKey = Key{
	// contains filtered or unexported fields
}
View Source
var ModuleKey = Key{
	// contains filtered or unexported fields
}
View Source
var ObjectBaseKey = Key{
	// contains filtered or unexported fields
}
View Source
var ProcessInstanceRelationKey = Key{
	// contains filtered or unexported fields
}
View Source
var ProcessKey = Key{
	// contains filtered or unexported fields
}
View Source
var SetKey = Key{
	// contains filtered or unexported fields
}
View Source
var SetTemplateKey = Key{
	// contains filtered or unexported fields
}

Functions

func NewEvent

func NewEvent(db dal.DB, rds *redis.Client, watch stream.Interface, isMaster discovery.ServiceManageInterface) error

Types

type Event

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

type Flow

type Flow struct {
	FlowOptions
	// contains filtered or unexported fields
}

func (*Flow) RunFlow

func (f *Flow) RunFlow(ctx context.Context) error

type FlowOptions

type FlowOptions struct {
	Collection string
	// contains filtered or unexported fields
}

type Key

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

func GetResourceKeyWithCursorType

func GetResourceKeyWithCursorType(res watch.CursorType) (Key, error)

get resource key

func (Key) DetailKey

func (k Key) DetailKey(cursor string) string

Note: do not change the format, it will affect the way in event server to get the details with lua scripts.

func (Key) HeadKey

func (k Key) HeadKey() string

func (Key) LockKey

func (k Key) LockKey() string

func (Key) MainHashKey

func (k Key) MainHashKey() string

MainKey is the hashmap key

func (Key) Name

func (k Key) Name(doc []byte) string

func (Key) Namespace

func (k Key) Namespace() string

func (Key) TTLSeconds

func (k Key) TTLSeconds() int64

func (Key) TailKey

func (k Key) TailKey() string

func (Key) Validate

func (k Key) Validate(doc []byte) error

Jump to

Keyboard shortcuts

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