repository

package
v0.0.0-...-334f10d Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: Apache-2.0 Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTaskFromEventHistory

func BuildTaskFromEventHistory(taskService domain.TaskService, events []storage.TaskEvent) *domain.Task

Types

type EventWrapper

type EventWrapper struct {
	EventName string
	EventData interface{}
}

EventWrapper is used to wrap the event interface with its struct name, so it will be easier to unmarshal later

type RepositoryResult

type RepositoryResult struct {
	Result interface{}
	Error  error
}

RepositoryResult is a struct to wrap repository result so its easy to use it in channel

type TaskEventRepository

type TaskEventRepository interface {
	Save(uid uuid.UUID, latestVersion int, events []interface{}) <-chan error
}

type TaskReadRepository

type TaskReadRepository interface {
	Save(taskRead *storage.TaskRead) <-chan error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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