config

package
v0.0.0-...-1f40b3c Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPIPort

func GetAPIPort() int

GetAPIPort returns port to run on

func GetLogLevel

func GetLogLevel() string

GetLogLevel returns log level to display

func GetPushyToken

func GetPushyToken() string

GetPushyToken returns token to access pushy API

func GetTestingDbName

func GetTestingDbName() string

GetTestingDbName db name to use for integration testing

Types

type ApplicationConfig

type ApplicationConfig struct {
	SlackLoggingAppConfig string
	JWTExpiryTime         time.Duration
	JWTSecret             string
	RefreshTokenSize      int // should always be more than 128 for security reason
	SlackLogLevel         string
}

ApplicationConfig information about various configuration of application

func GetApplicationConfig

func GetApplicationConfig() ApplicationConfig

GetApplicationConfig returns application config

type MongoConfig

type MongoConfig struct {
	Connection string
	DbName     string
}

MongoConfig information about mongodb connection

func GetMongoConfig

func GetMongoConfig() *MongoConfig

GetMongoConfig returns mongodb config

type RedisConfig

type RedisConfig struct {
	Host     string
	Password string
	Db       int
}

RedisConfig information about redis connection

func GetRedisConfig

func GetRedisConfig() *RedisConfig

GetRedisConfig returns redis config

Jump to

Keyboard shortcuts

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