commandservice

package
v0.0.0-...-fe69749 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

package commandservice implements the Command Service/API as defined in command.proto.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidCommandReference = errors.New("invalid command reference")

Functions

func CommandReferenceToEventID

func CommandReferenceToEventID(commandReference string) (uint64, error)

func EventIDToCommandReference

func EventIDToCommandReference(eventID uint64) string

func New

func New(setupContext context.Context, env string, log *zap.Logger, eventDB, journalDB *sqlx.DB) (*commandService, error)

New prepares a new commandService.

func NewBasicReply

func NewBasicReply(eventID uint64) *command.BasicReply

Types

type CommandHandler

type CommandHandler struct {
	// contains filtered or unexported fields
}

CommandHandler provides a CommandHandler.

func NewCommandHandler

func NewCommandHandler(setupContext context.Context, env string, log *zap.Logger, stmtInsertEvent *sqlx.Stmt, journalDB *sqlx.DB) (*CommandHandler, error)

NewCommandHandler prepares a CommandHandler.

func (*CommandHandler) BSNToegekend

func (h *CommandHandler) BSNToegekend(ctx context.Context, eventData *events.BSNToegekend) (*command.BasicReply, error)

func (*CommandHandler) GeslachtsaanduidingGeregistreerd

func (h *CommandHandler) GeslachtsaanduidingGeregistreerd(ctx context.Context, eventData *events.GeslachtsaanduidingGeregistreerd) (*command.BasicReply, error)

func (*CommandHandler) NamenGeregistreerd

func (h *CommandHandler) NamenGeregistreerd(ctx context.Context, eventData *events.NamenGeregistreerd) (*command.BasicReply, error)

func (*CommandHandler) NamenVastgesteld

func (h *CommandHandler) NamenVastgesteld(ctx context.Context, eventData *events.NamenVastgesteld) (*command.BasicReply, error)

func (*CommandHandler) WoonadresNLGeregistreerd

func (h *CommandHandler) WoonadresNLGeregistreerd(ctx context.Context, eventData *events.WoonadresNLGeregistreerd) (*command.BasicReply, error)

type NewPersonHandler

type NewPersonHandler struct {
	// contains filtered or unexported fields
}

NewPersonHandler provides a NewPerson handler.

func NewNewPersonHandler

func NewNewPersonHandler(setupContext context.Context, env string, log *zap.Logger, stmtInsertEvent *sqlx.Stmt, journalDB *sqlx.DB) (*NewPersonHandler, error)

NewNewPersonHandler prepares a NewPerson handler.

func (*NewPersonHandler) NewPerson

type PersonNoteHandler

type PersonNoteHandler struct {
	// contains filtered or unexported fields
}

PersonNoteHandler provides a PersonNote handler.

func NewPersonNoteHandler

func NewPersonNoteHandler(setupContext context.Context, env string, log *zap.Logger, stmtInsertEvent *sqlx.Stmt) (*PersonNoteHandler, error)

NewPersonNoteHandler prepares a PersonNote handler.

func (*PersonNoteHandler) PersonNote

type StatusHandler

type StatusHandler struct {
	// contains filtered or unexported fields
}

StatusHandler provides a Status handler.

func NewStatusHandler

func NewStatusHandler(setupContext context.Context, env string, log *zap.Logger, db *sqlx.DB) (*StatusHandler, error)

NewStatusHandler prepares a Status handler.

func (*StatusHandler) Status

Jump to

Keyboard shortcuts

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