Documentation
¶
Index ¶
- func AsHandler(handler interface{}, handlerGroupName string) interface{}
- func IsCommand(obj interface{}) bool
- func IsInternalCommand(obj interface{}) bool
- func IsNotification(obj interface{}) bool
- func IsQuery(obj interface{}) bool
- func IsRequest(obj interface{}) bool
- type Command
- type CommandHandler
- type CommandHandlerVoid
- type HandlerRegisterer
- type InternalCommand
- type Notification
- type Query
- type QueryHandler
- type Request
- type RequestHandlerWithRegisterer
- type TxRequest
- type TypeInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsHandler ¶
func AsHandler(handler interface{}, handlerGroupName string) interface{}
AsHandler annotates the given constructor to state that it provides a handler to the "handlers" group.
func IsInternalCommand ¶
func IsInternalCommand(obj interface{}) bool
func IsNotification ¶
func IsNotification(obj interface{}) bool
Types ¶
type Command ¶
func NewCommandByT ¶
type CommandHandler ¶
type CommandHandlerVoid ¶
type HandlerRegisterer ¶
type HandlerRegisterer interface {
RegisterHandler() error
}
HandlerRegisterer for registering `RequestHandler` to mediatr registry, if handler implements this interface it will be registered automatically
type InternalCommand ¶
type InternalCommand interface { Command // contains filtered or unexported methods }
func NewInternalCommandByT ¶
func NewInternalCommandByT[T any]() InternalCommand
type Notification ¶
type Notification interface { TypeInfo // contains filtered or unexported methods }
func NewNotificationByT ¶
func NewNotificationByT[T any]() Notification
type Query ¶
func NewQueryByT ¶
type QueryHandler ¶
type Request ¶
type Request interface {
// contains filtered or unexported methods
}
func NewRequest ¶
func NewRequest() Request
type RequestHandlerWithRegisterer ¶
type RequestHandlerWithRegisterer[TRequest any, TResponse any] interface { HandlerRegisterer mediatr.RequestHandler[TRequest, TResponse] }
RequestHandlerWithRegisterer for registering `RequestHandler` to mediatr registry and handling `RequestHandler`
type TxRequest ¶
type TxRequest interface { Request // contains filtered or unexported methods }
https://www.mohitkhare.com/blog/go-naming-conventions/ https://github.com/EventStore/EventStore-Client-Go/blob/master/esdb/position.go
Click to show internal directories.
Click to hide internal directories.