argo-web-api: Index | Files

package config

import ""


Package Files


type Config Uses

type Config struct {
    Server struct {
        Bindip       string
        Port         int
        Maxprocs     int
        Cache        bool
        Lrucache     int
        Gzip         bool
        Cert         string
        Privkey      string
        ReqSizeLimit int64
        EnableCors   bool

    Hbase   HbaseConfig
    MongoDB MongoConfig
    Profile string

Config configuration for the api

func LoadConfiguration Uses

func LoadConfiguration() Config

LoadConfiguration function loads the configurations passed either by flags or by the configuration file

type HbaseConfig Uses

type HbaseConfig struct {
    ZkQuorum string

HbaseConfig configuration to connect to an hbase instance

type MongoConfig Uses

type MongoConfig struct {
    User     string   `bson:"name"`
    Email    string   `bson:"email"`
    Host     string   `bson:"server"`
    Port     int      `bson:"port"`
    Db       string   `bson:"database"`
    Username string   `bson:"username"`
    Password string   `bson:"password"`
    Store    string   `bson:"store"`
    ApiKey   string   `bson:"api_key"`
    Roles    []string `bson:"roles"`

MongoConfig configuration to connect to a mongodb instance

Package config imports 3 packages (graph) and is imported by 71 packages. Updated 2018-12-03. Refresh now. Tools for package owners.