domain

package
v0.0.0-...-e28bd7b Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: BSD-3-Clause Imports: 7 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 {
	Storage ports.PersistentStoragePort
	QueryIn ports.IncomingQueryPort
	EventIn ports.IncomingEventPort
	// contains filtered or unexported fields
}

Domain is the base struct for the domain service

func (*Domain) Init

func (d *Domain) Init(config *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

type EventHandlers

type EventHandlers struct {
	Storage  ports.PersistentStoragePort
	EventOut ports.OutgoingEventPort
	TimeSrc  func() time.Time
}

EventHandlers implements IncomingEventPort

func (*EventHandlers) Create

Create creates a workspace

func (*EventHandlers) Delete

Delete deletes the workspace

func (*EventHandlers) Update

Update updates the workspace

type QueryHandlers

type QueryHandlers struct {
	Storage ports.PersistentStoragePort
}

QueryHandlers implements ports.IncomingQueryHandlers

func (*QueryHandlers) Get

Get retrieves the workspace

func (*QueryHandlers) List

List retrieves all workspaces of the user

Jump to

Keyboard shortcuts

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