importer

package
v0.0.0-...-984e724 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const EMAIL_TOKEN_BODY = `` /* 1774-byte string literal not displayed */
View Source
const EMAIL_TOKEN_SUBJECT = "AG Electrolab - Votre acces au vote en ligne"

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Config  AppConfig
	Service AppServices
	Context context.Context
}

func NewApp

func NewApp(config *AppConfig) (*App, error)

func (*App) Run

func (app *App) Run(listing Listing) error

type AppConfig

type AppConfig struct {
	Database struct {
		Connection string
	}
	Email email.SmtpConfig
}

func ReadConfigFile

func ReadConfigFile(path string) (*AppConfig, error)

type AppServices

type AppServices struct {
	DB    db.Service
	Email email.Service
}

type Listing

type Listing []User

func ReadListingFile

func ReadListingFile(path string) (Listing, error)

type User

type User struct {
	Uuid     string
	Fullname string
	Email    string
	Admin    bool
}

Jump to

Keyboard shortcuts

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