services

package
v0.0.0-...-cef39ca Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(
	fx.Provide(
		newDatabase,
	),
)

Module provided to fx

Functions

func InvokeDB

func InvokeDB(lc fx.Lifecycle, d *database)

InvokeDB opens / manages our database connection

Types

type UserService

type UserService interface {
	Create(*models.User) error
	GetByEmail(string) (*models.User, error)
}

UserService interface that user services must implement

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳