conf

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package conf provides primitives for pulling configuration data for individual modules in the controller - modules should use this package to retrieve module-specific configuration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flush

func Flush()

Flush will reinitialise/forget any config data already read.

func ReadConf

func ReadConf() []byte

ReadConf provides the raw data from the config file. The config file's location can be set via an environment variable `TYK_MSERV_CONFIG`, and if not specified defaults to `/etc/tyk-mserv/config.json`. A module can use this function to then parse the raw config data into it's own module-specific config type.

Types

type BaseConfig

type BaseConfig struct{}

type GlobalConf

type GlobalConf struct{}

GlobalConf is the config that the main application provides, each module actually gets it's own config objects that are locally defined.

func GetGlobalConf

func GetGlobalConf() *GlobalConf

GetGlobalConf provides the global config object that can be accessed from all modules where necessary.

Jump to

Keyboard shortcuts

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