utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadTemplate

func LoadTemplate(templateName string, templatePath string) (*template.Template, error)

func NewDatabase

func NewDatabase(logger *zap.Logger, env *environment.Env) (*mongo.Database, error)

NewDatabase creates a new connection to the database specified in given Env

func NewLogger

func NewLogger() (*zap.Logger, error)

NewLogger creates a new zap logger

func NewSendgridClient

func NewSendgridClient(env *environment.Env) *sendgrid.Client

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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