Documentation
¶
Index ¶
- Variables
- func InvokeListenForEvents(eventEmitter *EventEmitter)
- func InvokeSetCronCommand(logger *slog.Logger, crontab *CronTab, command *Command)
- func InvokeSetServerCommand(logger *slog.Logger, server *Server, command *Command)
- func InvokeSetWorkerCommand(logger *slog.Logger, eventEmitter *EventEmitter, command *Command)
- func LoadEnv(envFile string)
- func ValidateEnvironmentVariables[T interface{}]() *T
- type App
- type AppConfig
- type Cleanup
- type Command
- type CronJob
- type CronTab
- type EventEmitter
- func (emitter *EventEmitter) AddCustomOneWayHandler(handlerName string, subscribeTopic string, subscriber message.Subscriber, ...)
- func (emitter *EventEmitter) AddCustomTwoWayHandler(handlerName string, subscribeTopic string, subscriber message.Subscriber, ...)
- func (emitter *EventEmitter) AddMiddleware(m ...message.HandlerMiddleware)
- func (emitter *EventEmitter) AddOneWayHandler(handlerName, topic string, handler message.NoPublishHandlerFunc)
- func (emitter *EventEmitter) AddTwoWayHandler(handlerName, topicSubscription, topicPublisher string, ...)
- func (emitter *EventEmitter) Emit(topic string, payload []byte) error
- func (emitter *EventEmitter) ListenForEvents()
- func (emitter *EventEmitter) Run()
- type Server
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrCronExpressionInvalid = fmt.Errorf("invalid cron expression")
)
Functions ¶
func InvokeListenForEvents ¶
func InvokeListenForEvents( eventEmitter *EventEmitter, )
func InvokeSetCronCommand ¶
func InvokeSetServerCommand ¶
func InvokeSetWorkerCommand ¶
func InvokeSetWorkerCommand( logger *slog.Logger, eventEmitter *EventEmitter, command *Command, )
func ValidateEnvironmentVariables ¶
func ValidateEnvironmentVariables[T interface{}]() *T
Types ¶
type App ¶
func (*App) RegisterInvokers ¶
func (*App) RegisterProviders ¶
func (*App) SetUseDependencyLogger ¶
type Cleanup ¶
type Cleanup struct {
// contains filtered or unexported fields
}
func NewCleanup ¶
func NewCleanup() *Cleanup
func (*Cleanup) RegisterCleanup ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func NewCommand ¶
func NewCommand() *Command
func (*Command) RegisterCommand ¶
type CronTab ¶
type CronTab struct {
// contains filtered or unexported fields
}
func NewCronTab ¶
func (*CronTab) RegisterCronJob ¶
type EventEmitter ¶
type EventEmitter struct {
// contains filtered or unexported fields
}
func NewEventEmitter ¶
func NewEventEmitter( logger *slog.Logger, pubSubContainer pubsub.Container, ) *EventEmitter
func (*EventEmitter) AddCustomOneWayHandler ¶
func (emitter *EventEmitter) AddCustomOneWayHandler( handlerName string, subscribeTopic string, subscriber message.Subscriber, handlerFunc message.NoPublishHandlerFunc, )
func (*EventEmitter) AddCustomTwoWayHandler ¶
func (emitter *EventEmitter) AddCustomTwoWayHandler( handlerName string, subscribeTopic string, subscriber message.Subscriber, publishTopic string, publisher message.Publisher, handlerFunc message.HandlerFunc, )
func (*EventEmitter) AddMiddleware ¶
func (emitter *EventEmitter) AddMiddleware(m ...message.HandlerMiddleware)
func (*EventEmitter) AddOneWayHandler ¶
func (emitter *EventEmitter) AddOneWayHandler(handlerName, topic string, handler message.NoPublishHandlerFunc)
func (*EventEmitter) AddTwoWayHandler ¶
func (emitter *EventEmitter) AddTwoWayHandler(handlerName, topicSubscription, topicPublisher string, handler message.HandlerFunc)
func (*EventEmitter) ListenForEvents ¶
func (emitter *EventEmitter) ListenForEvents()
func (*EventEmitter) Run ¶
func (emitter *EventEmitter) Run()
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) HTTPServer ¶
func (s *Server) HTTPServer() *echo.Echo
func (*Server) PrintAllRoutes ¶
func (s *Server) PrintAllRoutes()
func (*Server) StartHTTPServer ¶
type ServerConfig ¶
type ServerConfig struct {
Addr string
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.