hertz_conf

package
v0.0.0-...-f70a1fa Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Http      http           `json:"http" mapstructure:"http" yaml:"http"`                //服务ip配置
	Polaris   client.Polaris `json:"polaris" mapstructure:"polaris" yaml:"polaris"`       //北极星注册中心配置
	Auth      auth           `json:"auth" mapstructure:"auth" yaml:"auth"`                // auth 身份认证配置
	Cors      cors           `json:"cors" mapstructure:"cors" yaml:"cors"`                //cors 配置
	Recovery  recovery       `json:"recovery" mapstructure:"recovery" yaml:"recovery"`    // recovery 配置
	Gzip      gzip           `json:"gzip" mapstructure:"gzip" yaml:"gzip"`                // 压缩配置
	I18n      i18n           `json:"i18n" mapstructure:"i18n" yaml:"i18n"`                // 国际化配置
	Swag      swag           `json:"swag" mapstructure:"swag" yaml:"swag"`                // swag文档
	Jaeger    client.Jaeger  `json:"jaeger" mapstructure:"jaeger" yaml:"jaeger"`          //链路配置
	Transport transport      `json:"transport" mapstructure:"transport" yaml:"transport"` //多路复用配置
}

Server 服务端配置

type Service

type Service struct {
	Space   string `json:"space" mapstructure:"space" yaml:"space"`       //服务空间名称
	Name    string `json:"name" mapstructure:"name" yaml:"name"`          //服务名称
	Version string `json:"version" mapstructure:"version" yaml:"version"` //版本信息
}

Service 服务名称配置

Jump to

Keyboard shortcuts

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