event_handler

package
v0.0.0-...-e64b967 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type CreateOrganizationPlanHandler

type CreateOrganizationPlanHandler interface {
	Handle(ctx context.Context, baseRequest eventstore.BaseRequest, request *orgplanpb.CreateOrganizationPlanGrpcRequest) error
}

type CreateOrganizationPlanMilestoneHandler

type CreateOrganizationPlanMilestoneHandler interface {
	Handle(ctx context.Context, baseRequest eventstore.BaseRequest, request *orgplanpb.CreateOrganizationPlanMilestoneGrpcRequest) error
}

type EventHandlers

type EventHandlers struct {
	CreateOrganizationPlan            CreateOrganizationPlanHandler
	UpdateOrganizationPlan            UpdateOrganizationPlanHandler
	CreateOrganizationPlanMilestone   CreateOrganizationPlanMilestoneHandler
	UpdateOrganizationPlanMilestone   UpdateOrganizationPlanMilestoneCommandHandler
	ReorderOrganizationPlanMilestones ReorderOrganizationPlanMilestonesHandler
}

EventHandlers acts as a container for all command handlers.

func NewEventHandlers

func NewEventHandlers(log logger.Logger, cfg *config.Config, es eventstore.AggregateStore) *EventHandlers

type ReorderOrganizationPlanMilestonesHandler

type ReorderOrganizationPlanMilestonesHandler interface {
	Handle(ctx context.Context, baseRequest eventstore.BaseRequest, request *orgplanpb.ReorderOrganizationPlanMilestonesGrpcRequest) error
}

type UpdateOrganizationPlanHandler

type UpdateOrganizationPlanHandler interface {
	Handle(ctx context.Context, baseRequest eventstore.BaseRequest, request *orgplanpb.UpdateOrganizationPlanGrpcRequest) error
}

type UpdateOrganizationPlanMilestoneCommandHandler

type UpdateOrganizationPlanMilestoneCommandHandler interface {
	Handle(ctx context.Context, baseRequest eventstore.BaseRequest, request *orgplanpb.UpdateOrganizationPlanMilestoneGrpcRequest) error
}

Jump to

Keyboard shortcuts

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