api

package
v0.0.0-...-0eec0e3 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(conns *InfraConns) (http.Handler, error)

Init init all handlers

Types

type CronConfig

type CronConfig struct {
	CronTAB string `envconfig:"CRON_TAB" default:"30 9 * * *"` // 9h30 daily will send mail
}

type InfraConns

type InfraConns struct {
	Databases db.Connections
}

InfraConns holds infrastructure services connections like MongoDB, Redis, Kafka,...

func (*InfraConns) Close

func (c *InfraConns) Close()

Close close all underlying connections

Directories

Path Synopsis
handler

Jump to

Keyboard shortcuts

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