domain

package
v1.0.4-0...-7e3b3fb Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	ID   string
	Type int
}

type CrudRepository

type CrudRepository[T any, ID any] interface {
	FindOne(id ID) (*T, error)
	FindAll() []T
	Save(t *T) error
	Delete(t *T) error
	Exists(id ID) (bool, error)
}

type Repository

type Repository interface {
	CrudRepository[User, string]
	FindByEmail(email string) (*User, error)
	FindByName(name string) (*User, error)
}

func NewUsersRepo

func NewUsersRepo() Repository

type User

type User struct {
	ID    string
	Email string
	Name  string
}

Directories

Path Synopsis
Package booking provides the use-case of booking a cargo.
Package booking provides the use-case of booking a cargo.
Package cargo contains the heart of the domain model.
Package cargo contains the heart of the domain model.
Package handling provides the use-case for registering incidents.
Package handling provides the use-case for registering incidents.
Package inspection provides means to inspect cargos.
Package inspection provides means to inspect cargos.
Package location provides the Location aggregate.
Package location provides the Location aggregate.
Package routing provides the routing domain service.
Package routing provides the routing domain service.
Package tracking provides the use-case of tracking a cargo.
Package tracking provides the use-case of tracking a cargo.
Package voyage provides the Voyage aggregate.
Package voyage provides the Voyage aggregate.

Jump to

Keyboard shortcuts

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