util

package
v0.0.0-...-c0f43b7 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2018 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Mongo MongoConfig `json:"mongo"`
	Host  string      `json:"host"`
}

Config struct defines the config structure

func NewConfig

func NewConfig() *Config

NewConfig parses config file and return Config struct

type MongoConfig

type MongoConfig struct {
	Addr  string `json:"addr"`
	DB    string `json:"db"`
	Table string `json:"table"`
	Event string `json:"event"`
}

MongoConfig has config values for Mongo

Jump to

Keyboard shortcuts

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