Packages

Node-local DNS service for Mesosphere DCOS

Current section

Files

Jump to
spartan src spartan_config.erl
Raw

src/spartan_config.erl

%%%-------------------------------------------------------------------
%%% @author sdhillon
%%% @copyright (C) 2016, <COMPANY>
%%% @doc
%%%
%%% @end
%%% Created : 01. Apr 2016 5:02 PM
%%%-------------------------------------------------------------------
-module(spartan_config).
-author("Sargun Dhillon <sargun@mesosphere.com>").
-include("spartan.hrl").
%% API
-export([udp_enabled/0, tcp_enabled/0, tcp_port/0, udp_port/0]).
udp_enabled() ->
application:get_env(?APP, tcp_server_enabled, true).
tcp_enabled() ->
application:get_env(?APP, tcp_server_enabled, true).
tcp_port() ->
application:get_env(?APP, tcp_port, 5454).
udp_port() ->
application:get_env(?APP, udp_port, 5454).