Documentation
¶
Overview ¶
Copyright © 2025 Vapi, Inc.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Authors:
Dan Goosewin <dan@vapi.ai>
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveConfig ¶
Types ¶
type Config ¶
type Config struct {
APIKey string `mapstructure:"api_key"`
BaseURL string `mapstructure:"base_url"`
DashboardURL string `mapstructure:"dashboard_url"`
Environment string `mapstructure:"environment"`
Timeout int `mapstructure:"timeout"`
}
func LoadConfig ¶
func (*Config) GetAPIBaseURL ¶ added in v0.0.2
GetAPIBaseURL returns the API base URL, respecting environment overrides
func (*Config) GetDashboardURL ¶ added in v0.0.2
GetDashboardURL returns the dashboard URL, respecting environment overrides
func (*Config) GetEnvironment ¶ added in v0.0.2
GetEnvironment returns the current environment name
func (*Config) IsProduction ¶ added in v0.0.2
IsProduction returns true if running against production environment
type Environment ¶ added in v0.0.2
Environment configuration