hertz_conf

package
v0.0.0-...-bb7101a Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 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"  yaml:"http"`           //服务ip配置
	Polaris   client.Polaris `json:"polaris"  yaml:"polaris"`     //北极星注册中心配置
	Auth      auth           `json:"auth" yaml:"auth"`            // auth 身份认证配置
	Cors      cors           `json:"cors" yaml:"cors"`            //cors 配置
	Recovery  recovery       `json:"recovery" yaml:"recovery"`    // recovery 配置
	Gzip      gzip           `json:"gzip"  yaml:"gzip"`           // 压缩配置
	I18n      i18n           `json:"i18n"  yaml:"i18n"`           // 国际化配置
	Swag      swag           `json:"swag"  yaml:"swag"`           // swag文档
	Jaeger    client.Jaeger  `json:"jaeger"  yaml:"jaeger"`       //链路配置
	Transport transport      `json:"transport"  yaml:"transport"` //多路复用配置
}

Server 服务端配置

type Service

type Service struct {
	Space   string `json:"space"  yaml:"space"`     //服务空间名称
	Name    string `json:"name" yaml:"name"`        //服务名称
	Version string `json:"version"  yaml:"version"` //版本信息
	Env     string `json:"env" yaml:"env"`          //环境  dev test prod
}

Service 服务名称配置

Jump to

Keyboard shortcuts

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