engine

package
v0.0.0-...-40fc3ee Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory interface {
	// NewNotification creates a new Geography interactor
	NewNotification() Notification
}

Factory interface allows us to provide other parts of the system with a way to make instances of our use-case / interactors when they need to

func NewEngine

func NewEngine() Factory

NewEngine creates a new engine factory that will make use of the passed in StorageFactory for any data persistence needs.

type Notification

type Notification interface {
	// SendNotification ...
	SendNotification(ctx context.Context, service, topic, body string) (*domain.Notification, error)
}

Notification ...

Jump to

Keyboard shortcuts

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