Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWorker ¶
func NewWorker(service factory.ServiceFactory, opts ...OptionFunc) factory.AppServerFactory
NewWorker create new postgres event listener
Types ¶
type EventPayload ¶
type EventPayload struct {
EventID string `json:"event_id"`
Table string `json:"table"`
Action string `json:"action"`
Data EventPayloadData `json:"data"`
}
EventPayload event model
type EventPayloadData ¶ added in v1.9.0
type EventPayloadData struct {
Old interface{} `json:"old"`
New interface{} `json:"new"`
}
EventPayloadData event data
type OptionFunc ¶ added in v1.7.4
type OptionFunc func(*option)
OptionFunc type
func SetConsul ¶ added in v1.7.4
func SetConsul(consul *candiutils.Consul) OptionFunc
SetConsul option func
func SetDebugMode ¶ added in v1.7.4
func SetDebugMode(debugMode bool) OptionFunc
SetDebugMode option func
func SetLocker ¶ added in v1.8.8
func SetLocker(locker candiutils.Locker) OptionFunc
SetLocker option func
func SetMaxGoroutines ¶ added in v1.7.4
func SetMaxGoroutines(maxGoroutines int) OptionFunc
SetMaxGoroutines option func
func SetPostgresDSN ¶ added in v1.7.4
func SetPostgresDSN(dsn string) OptionFunc
SetPostgresDSN option func
Click to show internal directories.
Click to hide internal directories.