logs

package
v0.0.0-...-151ce6e Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Ce package définit les paramètres de connexion nécessaire aux différents services (mail, serveur, base de données, etc)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredencesHelloAsso

type CredencesHelloAsso struct {
	Id  string
	Key string
}

type DB

type DB struct {
	Host, Name, User, Password string
	Port                       int
}

type Encrypteur

type Encrypteur []byte

func NewEncrypteur

func NewEncrypteur(key string) Encrypteur

func (Encrypteur) Decrypt

func (pass Encrypteur) Decrypt(data []byte) ([]byte, error)

func (Encrypteur) Encrypt

func (pass Encrypteur) Encrypt(data []byte) ([]byte, error)

type Joomeo

type Joomeo struct {
	Apikey, Login, Password string
}

type OffuscIdDirecteur

type OffuscIdDirecteur struct {
	// contains filtered or unexported fields
}

func (OffuscIdDirecteur) Password

func (o OffuscIdDirecteur) Password(id int64) string

Password renvoie un mot de passe constant en fonction de 'id'

type OffuscIdVote

type OffuscIdVote struct {
	// contains filtered or unexported fields
}

func (OffuscIdVote) Offusc

func (o OffuscIdVote) Offusc(id int64) string

func (OffuscIdVote) Parse

func (o OffuscIdVote) Parse(entryS string) (id int64, err error)

type OffuscLabelVirement

type OffuscLabelVirement struct {
	// contains filtered or unexported fields
}

func (OffuscLabelVirement) Offusc

func (o OffuscLabelVirement) Offusc(id int64) string

func (OffuscLabelVirement) Parse

func (o OffuscLabelVirement) Parse(entry int) (id int64, err error)

type SMTP

type SMTP struct {
	Host, Password string

	// Should be a valid adress mail
	User string
	Port int

	// Adresse à laquelle répondre
	ReplyTo string

	// Si false, envoie tous les mails sur une même adresse.
	Prod bool
}

SMTP enregistre les informations de connection

func (SMTP) GetFromAuth

func (creds SMTP) GetFromAuth() (string, smtp.Auth)

func (SMTP) GetTo

func (creds SMTP) GetTo(to string) string

Jump to

Keyboard shortcuts

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