handler

package
v0.0.0-...-7c9a8cc Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUser

func NewUser() pb.UserServiceServer

Types

type AggregateRootUser

type AggregateRootUser = User

aggregate root

type User

type User struct {
	ID   UserID
	Name UserName
}

entity

type UserID

type UserID string

vo

type UserName

type UserName string

type UserRepository

type UserRepository interface {
	List(ctx context.Context) ([]*AggregateRootUser, error)
	Get(ctx context.Context, id UserID) (*AggregateRootUser, error)
	Append(ctx context.Context, user *AggregateRootUser) error
	Remove(ctx context.Context, user *AggregateRootUser) error
	Update(ctx context.Context, user *AggregateRootUser) error
}

func NewUserRepository

func NewUserRepository() UserRepository

Jump to

Keyboard shortcuts

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