config

package
v1.0.4-0...-7069f2b Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server
	Logger
	RabbitMQ
	MongoDB
	Things
	Expiration
}

Config represents the service configuration

func Load

func Load() Config

Load returns the service configuration

type Expiration

type Expiration struct {
	Time int32
}

Expiration represents the data TTL configuration

type Logger

type Logger struct {
	Level  string
	Syslog bool
}

Logger represents the logger configuration properties

type MongoDB

type MongoDB struct {
	Host string
	Port int
	Name string
}

MongoDB represents the database configuration properties

type RabbitMQ

type RabbitMQ struct {
	URL string
}

RabbitMQ represents the rabbitmq configuration properties

type Server

type Server struct {
	Port int
}

Server represents the server configuration properties

type Things

type Things struct {
	Host string
	Port int
}

Things represents the things service configuration properties

Jump to

Keyboard shortcuts

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