apis

package
v4.2.551+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Metrics *MetricsConfig `mapstructure:"metrics"`
}

Configuration of APIs

func NewDefaultConfig

func NewDefaultConfig() *Config

Provide default configuration for APIs

func (*Config) Validate

func (c *Config) Validate() error

Confirm the APIs configuration is validated

type MetricsConfig

type MetricsConfig struct {
	Source string `mapstructure:"source"`
	Target string `mapstructure:"target"`
}

Configuration of metrics related APIs

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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