config

package
Version: v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.0.3

type Config struct {
	Version     string
	Environment string
	GraphQL     util.GqlConfig
	JWT         JWTConfig
	Hash        util.HashConfig
	Database    util.DatabaseConfig
	Redis       util.RedisConfig
}

func Server

func Server() *Config

Server retrieves config from environment variables

type JWTConfig added in v0.0.3

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

func (JWTConfig) GetPrivateKey added in v0.0.3

func (j JWTConfig) GetPrivateKey() *ecdsa.PrivateKey

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL