Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event[T any] interface { UnRegister(service, model string, handler Handler[T]) Register(service, model string, handler Handler[T]) error Emit(service, model string, msg T) error }
func NewSingleService ¶
type MutiEventServ ¶
type MutiEventServ interface {
Emit(service, model string, msg any) error
Register(service, model string, handler trans.Trans) error
UnRegister(service, model string, handler trans.Trans)
Run(context.Context)
}
func NewMultiService ¶
func NewMultiService(cfg *config.Config) MutiEventServ
Click to show internal directories.
Click to hide internal directories.