internal

package
v0.0.0-...-24939ff Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenKey

func GenKey(isTest bool) string

GenKey generates a new API key.

func GetValueFrom

func GetValueFrom(ctx context.Context, key string) interface{}

func GracefulShutdown

func GracefulShutdown(startTime time.Time)

func LoadEnv

func LoadEnv()

func NewDBClient

func NewDBClient(ctx context.Context, connection string, debug bool) *ent.Client

func SecureServer

func SecureServer(hostPort string, handler http.Handler) *http.Server

SecureServer returns an http.Server with sane timeouts.

func StoreValueIn

func StoreValueIn(ctx context.Context, key string, value interface{}) context.Context

Types

This section is empty.

Directories

Path Synopsis
Package vault implements security best practices in order to store sensitive information, compliant with regulations.
Package vault implements security best practices in order to store sensitive information, compliant with regulations.

Jump to

Keyboard shortcuts

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