repository

package
v0.0.0-...-87346ed Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserFromHistory

func NewUserFromHistory(events []storage.UserEvent) *domain.User

Types

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 UserAuthRepository

type UserAuthRepository interface {
	Save(userAuth *storage.UserAuth) <-chan error
}

type UserEventRepository

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

type UserReadRepository

type UserReadRepository interface {
	Save(userRead *storage.UserRead) <-chan error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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