board

package
v0.0.0-...-3f93e99 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregate

type Aggregate interface {
	Root() Entity
	Name(string) error
	Description(string) error
	Layout(string) error
	State(string) error
	Shared(bool) error
	AppendChild(kernel.ID) error
	RemoveChild(kernel.ID) error
}

Aggregate interface

type ChildAppendedEvent

type ChildAppendedEvent struct {
	ID kernel.MemberID
}

ChildAppendedEvent type

type ChildRemovedEvent

type ChildRemovedEvent struct {
	ID kernel.MemberID
}

ChildRemovedEvent type

type CreatedEvent

type CreatedEvent struct {
	Entity
}

CreatedEvent type

type DeletedEvent

type DeletedEvent struct {
	Entity
}

DeletedEvent type

type DescriptionChangedEvent

type DescriptionChangedEvent struct {
	ID       kernel.ID
	OldValue string
	NewValue string
}

DescriptionChangedEvent type

type Entity

type Entity struct {
	ID          kernel.ID
	Owner       string
	Name        string
	Description string
	Layout      string
	State       string
	Shared      bool
	Children    []kernel.ID
}

Entity type

type LayoutChangedEvent

type LayoutChangedEvent struct {
	ID       kernel.ID
	OldValue string
	NewValue string
}

LayoutChangedEvent type

type NameChangedEvent

type NameChangedEvent struct {
	ID       kernel.ID
	OldValue string
	NewValue string
}

NameChangedEvent type

type Service

type Service struct {
	event.Bus
}

Service - board domain service

func CreateService

func CreateService(bus event.Bus) *Service

CreateService - creates board domain service

func (*Service) Create

func (s *Service) Create(id kernel.ID, owner string) (*Entity, error)

Create board

func (*Service) Delete

func (s *Service) Delete(entity Entity) error

Delete board

func (*Service) Get

func (s *Service) Get(entity Entity) (Aggregate, error)

Get aggregate

type SharedChangedEvent

type SharedChangedEvent struct {
	ID       kernel.ID
	OldValue bool
	NewValue bool
}

SharedChangedEvent type

type StateChangedEvent

type StateChangedEvent struct {
	ID       kernel.ID
	OldValue string
	NewValue string
}

StateChangedEvent type

Jump to

Keyboard shortcuts

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