config

package
v0.0.0-...-5ff37f2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(r io.ReadCloser, v interface{}) error

Convert a readcloser json or yaml to object

func DBUrl

func DBUrl() string

DBUrl

func FetchBodyFromURL

func FetchBodyFromURL(u string) (string, error)

FetchBodyFromURL

func IsValidURL

func IsValidURL(u string) bool

IsValidURL

Types

type DB

type DB struct {
	Session *mgo.Session
}

DB

func (*DB) DoDial

func (db *DB) DoDial() (s *mgo.Session, err error)

DoDial

func (*DB) Name

func (db *DB) Name() string

Name

type File

type File struct {
}

File struct which contains the functions of this class

func (*File) Remove

func (f *File) Remove(fi string) error

Remove a file

func (*File) Save

func (f *File) Save(fh *multipart.FileHeader) (string, error)

Save the multipart file in tmp

type Mailer

type Mailer struct {
}

Mailer struct which contains the functions of this class

func (*Mailer) Generate

func (ma *Mailer) Generate(t string, templateVars interface{}) (string, error)

Generate the html mail with go template

func (*Mailer) Send

func (ma *Mailer) Send(mail types.Mail) error

Send an email

Jump to

Keyboard shortcuts

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