app

package
v0.0.0-...-92f7cd3 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EntityNameEvent event entity name constant
	EntityNameEvent = "event"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Cfg    config.Configuration
	Logger log.ILogger
	DB     db.IDB
	Domain Domain
}

App struct is the common part of all applications

func New

func New(cfg config.Configuration) *App

New func is a constructor for the App

func (*App) Run

func (app *App) Run() error

Run is func to run the App

type Domain

type Domain struct {
	Event struct {
		Repository event.IRepository
		Service    event.IService
	}
}

Domain is a Domain Layer Entry Point

type IApp

type IApp interface {
	// Run is func to run the App
	Run() error
}

IApp app interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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