vitess.io/vitess@v0.16.2/go/vt/vttablet/tabletserver/throttle/config/config.go (about)

     1  /*
     2   Copyright 2017 GitHub Inc.
     3  
     4   Licensed under MIT License. See https://github.com/github/freno/blob/master/LICENSE
     5  */
     6  
     7  package config
     8  
     9  // Instance is the one configuration for the throttler
    10  var Instance = &ConfigurationSettings{}
    11  
    12  // Settings returns the settings of the global instance of Configuration
    13  func Settings() *ConfigurationSettings {
    14  	return Instance
    15  }
    16  
    17  // ConfigurationSettings models a set of configurable values, that can be
    18  // provided by the user via one or several JSON formatted files.
    19  //
    20  // Some of the settings have reasonable default values, and some other
    21  // (like database credentials) are strictly expected from user.
    22  type ConfigurationSettings struct {
    23  	ListenPort      int
    24  	DataCenter      string
    25  	Environment     string
    26  	Domain          string
    27  	EnableProfiling bool // enable pprof profiling http api
    28  	Stores          StoresSettings
    29  }