inconfig

package
v0.0.0-...-f011ba4 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(c Config)

Types

type Config

type Config interface {
	ServerContextPath() string
	GetCallTypeConfigByName(name string, uri string) int
	ServiceQps(name string, uri string) int
	ContainsCallPrivilege(name string, uri string) bool
	config.Config
}

func Get

func Get() Config

func LoadApolloConfig

func LoadApolloConfig(appId string, namespace string, cluster string, address string, logger logger.Logger) Config

func LoadYamlConfig

func LoadYamlConfig(configBytes []byte) Config

type ServiceCallConfig

type ServiceCallConfig struct {
	CallType int `json:"callType"`
	Timeout  int `json:"timeout"`
	Limit    int `json:"limit"`
	Qps      int `json:"qps"`
}

Jump to

Keyboard shortcuts

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