domain

package
v0.0.0-...-32e231b Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: BSD-3-Clause Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Domain

type Domain struct {
	QueryIn         ports.IncomingQueryPort
	EventsIn        ports.IncomingEventPort
	Storage         ports.PersistentStoragePort
	CredIDGenerator ports.CredIDGenerator
	// contains filtered or unexported fields
}

Domain is the base struct for the domain service

func (*Domain) CredentialsGet

CredentialsGet implements ports.IncomingQueryHandlers

func (*Domain) CredentialsList

CredentialsList implements ports.IncomingQueryHandlers

func (*Domain) EventCredentialAddRequested

func (d *Domain) EventCredentialAddRequested(ctx context.Context, request service.CredentialCreateRequest, sink ports.OutgoingEvents)

EventCredentialAddRequested implements ports.IncomingEventHandlers.

func (*Domain) EventCredentialDeleteRequested

func (d *Domain) EventCredentialDeleteRequested(ctx context.Context, request service.CredentialDeleteRequest, sink ports.OutgoingEvents)

EventCredentialDeleteRequested implements ports.IncomingEventHandlers.

func (*Domain) EventCredentialUpdateRequested

func (d *Domain) EventCredentialUpdateRequested(ctx context.Context, request service.CredentialUpdateRequest, sink ports.OutgoingEvents)

EventCredentialUpdateRequested implements ports.IncomingEventHandlers.

func (*Domain) EventSystemCredentialGenerationRequested

func (d *Domain) EventSystemCredentialGenerationRequested(ctx context.Context, request service.CredentialCreateRequest, sink ports.OutgoingEvents)

EventSystemCredentialGenerationRequested implements ports.IncomingEventHandlers.

func (*Domain) Init

func (d *Domain) Init(c types.Config) error

Init initializes all the specified adapters

func (*Domain) Start

func (d *Domain) Start(ctx context.Context)

Start will start the domain object, and in turn start all the async adapters

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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