conf

package
v0.0.0-...-9126271 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_conf_conf_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Bootstrap

type Bootstrap struct {
	Server *Server `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
	Data   *Data   `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*Bootstrap) Descriptor deprecated

func (*Bootstrap) Descriptor() ([]byte, []int)

Deprecated: Use Bootstrap.ProtoReflect.Descriptor instead.

func (*Bootstrap) GetData

func (x *Bootstrap) GetData() *Data

func (*Bootstrap) GetServer

func (x *Bootstrap) GetServer() *Server

func (*Bootstrap) ProtoMessage

func (*Bootstrap) ProtoMessage()

func (*Bootstrap) ProtoReflect

func (x *Bootstrap) ProtoReflect() protoreflect.Message

func (*Bootstrap) Reset

func (x *Bootstrap) Reset()

func (*Bootstrap) String

func (x *Bootstrap) String() string

type Data

type Data struct {
	Database *Data_MYSQL `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
	Redis    *Data_Redis `protobuf:"bytes,2,opt,name=redis,proto3" json:"redis,omitempty"`
	// contains filtered or unexported fields
}

func (*Data) Descriptor deprecated

func (*Data) Descriptor() ([]byte, []int)

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetDatabase

func (x *Data) GetDatabase() *Data_MYSQL

func (*Data) GetRedis

func (x *Data) GetRedis() *Data_Redis

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect

func (x *Data) ProtoReflect() protoreflect.Message

func (*Data) Reset

func (x *Data) Reset()

func (*Data) String

func (x *Data) String() string

type Data_MYSQL

type Data_MYSQL struct {
	Host                  string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	Username              string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Password              string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	Database              string `protobuf:"bytes,4,opt,name=database,proto3" json:"database,omitempty"`
	MaxIdleConnections    int32  `protobuf:"varint,5,opt,name=max_idle_connections,json=maxIdleConnections,proto3" json:"max_idle_connections,omitempty"`
	MaxOpenConnections    int32  `protobuf:"varint,6,opt,name=max_open_connections,json=maxOpenConnections,proto3" json:"max_open_connections,omitempty"`
	MaxConnectionLifeTime int64  `` /* 129-byte string literal not displayed */
	LogLevel              int32  `protobuf:"varint,8,opt,name=logLevel,proto3" json:"logLevel,omitempty"`
	// contains filtered or unexported fields
}

func (*Data_MYSQL) Descriptor deprecated

func (*Data_MYSQL) Descriptor() ([]byte, []int)

Deprecated: Use Data_MYSQL.ProtoReflect.Descriptor instead.

func (*Data_MYSQL) GetDatabase

func (x *Data_MYSQL) GetDatabase() string

func (*Data_MYSQL) GetHost

func (x *Data_MYSQL) GetHost() string

func (*Data_MYSQL) GetLogLevel

func (x *Data_MYSQL) GetLogLevel() int32

func (*Data_MYSQL) GetMaxConnectionLifeTime

func (x *Data_MYSQL) GetMaxConnectionLifeTime() int64

func (*Data_MYSQL) GetMaxIdleConnections

func (x *Data_MYSQL) GetMaxIdleConnections() int32

func (*Data_MYSQL) GetMaxOpenConnections

func (x *Data_MYSQL) GetMaxOpenConnections() int32

func (*Data_MYSQL) GetPassword

func (x *Data_MYSQL) GetPassword() string

func (*Data_MYSQL) GetUsername

func (x *Data_MYSQL) GetUsername() string

func (*Data_MYSQL) ProtoMessage

func (*Data_MYSQL) ProtoMessage()

func (*Data_MYSQL) ProtoReflect

func (x *Data_MYSQL) ProtoReflect() protoreflect.Message

func (*Data_MYSQL) Reset

func (x *Data_MYSQL) Reset()

func (*Data_MYSQL) String

func (x *Data_MYSQL) String() string

type Data_Redis

type Data_Redis struct {
	Host                  string   `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	Port                  int32    `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	Addrs                 []string `protobuf:"bytes,3,rep,name=addrs,proto3" json:"addrs,omitempty"`
	Username              string   `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"`
	Database              int32    `protobuf:"varint,5,opt,name=database,proto3" json:"database,omitempty"`
	MasterName            string   `protobuf:"bytes,6,opt,name=master_name,json=masterName,proto3" json:"master_name,omitempty"`
	MaxIdle               int32    `protobuf:"varint,7,opt,name=max_idle,json=maxIdle,proto3" json:"max_idle,omitempty"`
	MaxActive             int32    `protobuf:"varint,8,opt,name=max_active,json=maxActive,proto3" json:"max_active,omitempty"`
	Timeout               int32    `protobuf:"varint,9,opt,name=timeout,proto3" json:"timeout,omitempty"`
	EnableCluster         bool     `protobuf:"varint,10,opt,name=enable_cluster,json=enableCluster,proto3" json:"enable_cluster,omitempty"`
	UseSsl                bool     `protobuf:"varint,11,opt,name=use_ssl,json=useSsl,proto3" json:"use_ssl,omitempty"`
	SslInsecureSkipVerify bool     `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Data_Redis) Descriptor deprecated

func (*Data_Redis) Descriptor() ([]byte, []int)

Deprecated: Use Data_Redis.ProtoReflect.Descriptor instead.

func (*Data_Redis) GetAddrs

func (x *Data_Redis) GetAddrs() []string

func (*Data_Redis) GetDatabase

func (x *Data_Redis) GetDatabase() int32

func (*Data_Redis) GetEnableCluster

func (x *Data_Redis) GetEnableCluster() bool

func (*Data_Redis) GetHost

func (x *Data_Redis) GetHost() string

func (*Data_Redis) GetMasterName

func (x *Data_Redis) GetMasterName() string

func (*Data_Redis) GetMaxActive

func (x *Data_Redis) GetMaxActive() int32

func (*Data_Redis) GetMaxIdle

func (x *Data_Redis) GetMaxIdle() int32

func (*Data_Redis) GetPort

func (x *Data_Redis) GetPort() int32

func (*Data_Redis) GetSslInsecureSkipVerify

func (x *Data_Redis) GetSslInsecureSkipVerify() bool

func (*Data_Redis) GetTimeout

func (x *Data_Redis) GetTimeout() int32

func (*Data_Redis) GetUseSsl

func (x *Data_Redis) GetUseSsl() bool

func (*Data_Redis) GetUsername

func (x *Data_Redis) GetUsername() string

func (*Data_Redis) ProtoMessage

func (*Data_Redis) ProtoMessage()

func (*Data_Redis) ProtoReflect

func (x *Data_Redis) ProtoReflect() protoreflect.Message

func (*Data_Redis) Reset

func (x *Data_Redis) Reset()

func (*Data_Redis) String

func (x *Data_Redis) String() string

type Server

type Server struct {
	Http            *Server_HTTP                   `protobuf:"bytes,1,opt,name=http,proto3" json:"http,omitempty"`
	Grpc            *Server_GRPC                   `protobuf:"bytes,2,opt,name=grpc,proto3" json:"grpc,omitempty"`
	InsecureServing *Server_InsecureServingOptions `protobuf:"bytes,3,opt,name=insecure_serving,json=insecureServing,proto3" json:"insecure_serving,omitempty"`
	SecureServing   *Server_SecureServingOptions   `protobuf:"bytes,4,opt,name=secure_serving,json=secureServing,proto3" json:"secure_serving,omitempty"`
	Feature         *Server_FeatureOptions         `protobuf:"bytes,5,opt,name=feature,proto3" json:"feature,omitempty"`
	Jwt             *Server_JWT                    `protobuf:"bytes,6,opt,name=jwt,proto3" json:"jwt,omitempty"`
	Log             *Server_LOG                    `protobuf:"bytes,7,opt,name=log,proto3" json:"log,omitempty"`
	// contains filtered or unexported fields
}

func (*Server) Descriptor deprecated

func (*Server) Descriptor() ([]byte, []int)

Deprecated: Use Server.ProtoReflect.Descriptor instead.

func (*Server) GetFeature

func (x *Server) GetFeature() *Server_FeatureOptions

func (*Server) GetGrpc

func (x *Server) GetGrpc() *Server_GRPC

func (*Server) GetHttp

func (x *Server) GetHttp() *Server_HTTP

func (*Server) GetInsecureServing

func (x *Server) GetInsecureServing() *Server_InsecureServingOptions

func (*Server) GetJwt

func (x *Server) GetJwt() *Server_JWT

func (*Server) GetLog

func (x *Server) GetLog() *Server_LOG

func (*Server) GetSecureServing

func (x *Server) GetSecureServing() *Server_SecureServingOptions

func (*Server) ProtoMessage

func (*Server) ProtoMessage()

func (*Server) ProtoReflect

func (x *Server) ProtoReflect() protoreflect.Message

func (*Server) Reset

func (x *Server) Reset()

func (*Server) String

func (x *Server) String() string

type Server_FeatureOptions

type Server_FeatureOptions struct {
	EnableProfiling bool `protobuf:"varint,1,opt,name=enable_profiling,json=enableProfiling,proto3" json:"enable_profiling,omitempty"`
	EnableMetrics   bool `protobuf:"varint,2,opt,name=enable_metrics,json=enableMetrics,proto3" json:"enable_metrics,omitempty"`
	// contains filtered or unexported fields
}

func (*Server_FeatureOptions) Descriptor deprecated

func (*Server_FeatureOptions) Descriptor() ([]byte, []int)

Deprecated: Use Server_FeatureOptions.ProtoReflect.Descriptor instead.

func (*Server_FeatureOptions) GetEnableMetrics

func (x *Server_FeatureOptions) GetEnableMetrics() bool

func (*Server_FeatureOptions) GetEnableProfiling

func (x *Server_FeatureOptions) GetEnableProfiling() bool

func (*Server_FeatureOptions) ProtoMessage

func (*Server_FeatureOptions) ProtoMessage()

func (*Server_FeatureOptions) ProtoReflect

func (x *Server_FeatureOptions) ProtoReflect() protoreflect.Message

func (*Server_FeatureOptions) Reset

func (x *Server_FeatureOptions) Reset()

func (*Server_FeatureOptions) String

func (x *Server_FeatureOptions) String() string

type Server_GRPC

type Server_GRPC struct {
	BindAddress string `protobuf:"bytes,1,opt,name=bindAddress,proto3" json:"bindAddress,omitempty"`
	BindPort    int32  `protobuf:"varint,2,opt,name=bind_port,json=bindPort,proto3" json:"bind_port,omitempty"`
	MaxMsgSize  int32  `protobuf:"varint,3,opt,name=max_msg_size,json=maxMsgSize,proto3" json:"max_msg_size,omitempty"`
	// contains filtered or unexported fields
}

func (*Server_GRPC) Descriptor deprecated

func (*Server_GRPC) Descriptor() ([]byte, []int)

Deprecated: Use Server_GRPC.ProtoReflect.Descriptor instead.

func (*Server_GRPC) GetBindAddress

func (x *Server_GRPC) GetBindAddress() string

func (*Server_GRPC) GetBindPort

func (x *Server_GRPC) GetBindPort() int32

func (*Server_GRPC) GetMaxMsgSize

func (x *Server_GRPC) GetMaxMsgSize() int32

func (*Server_GRPC) ProtoMessage

func (*Server_GRPC) ProtoMessage()

func (*Server_GRPC) ProtoReflect

func (x *Server_GRPC) ProtoReflect() protoreflect.Message

func (*Server_GRPC) Reset

func (x *Server_GRPC) Reset()

func (*Server_GRPC) String

func (x *Server_GRPC) String() string

type Server_HTTP

type Server_HTTP struct {
	Mode        string   `protobuf:"bytes,1,opt,name=mode,proto3" json:"mode,omitempty"`
	Healthz     bool     `protobuf:"varint,2,opt,name=healthz,proto3" json:"healthz,omitempty"`
	Middlewares []string `protobuf:"bytes,3,rep,name=middlewares,proto3" json:"middlewares,omitempty"`
	// contains filtered or unexported fields
}

func (*Server_HTTP) Descriptor deprecated

func (*Server_HTTP) Descriptor() ([]byte, []int)

Deprecated: Use Server_HTTP.ProtoReflect.Descriptor instead.

func (*Server_HTTP) GetHealthz

func (x *Server_HTTP) GetHealthz() bool

func (*Server_HTTP) GetMiddlewares

func (x *Server_HTTP) GetMiddlewares() []string

func (*Server_HTTP) GetMode

func (x *Server_HTTP) GetMode() string

func (*Server_HTTP) ProtoMessage

func (*Server_HTTP) ProtoMessage()

func (*Server_HTTP) ProtoReflect

func (x *Server_HTTP) ProtoReflect() protoreflect.Message

func (*Server_HTTP) Reset

func (x *Server_HTTP) Reset()

func (*Server_HTTP) String

func (x *Server_HTTP) String() string

type Server_InsecureServingOptions

type Server_InsecureServingOptions struct {
	BindAddress string `protobuf:"bytes,1,opt,name=bind_address,json=bindAddress,proto3" json:"bind_address,omitempty"`
	BindPort    int32  `protobuf:"varint,2,opt,name=bind_port,json=bindPort,proto3" json:"bind_port,omitempty"`
	// contains filtered or unexported fields
}

func (*Server_InsecureServingOptions) Descriptor deprecated

func (*Server_InsecureServingOptions) Descriptor() ([]byte, []int)

Deprecated: Use Server_InsecureServingOptions.ProtoReflect.Descriptor instead.

func (*Server_InsecureServingOptions) GetBindAddress

func (x *Server_InsecureServingOptions) GetBindAddress() string

func (*Server_InsecureServingOptions) GetBindPort

func (x *Server_InsecureServingOptions) GetBindPort() int32

func (*Server_InsecureServingOptions) ProtoMessage

func (*Server_InsecureServingOptions) ProtoMessage()

func (*Server_InsecureServingOptions) ProtoReflect

func (*Server_InsecureServingOptions) Reset

func (x *Server_InsecureServingOptions) Reset()

func (*Server_InsecureServingOptions) String

type Server_JWT

type Server_JWT struct {
	Realm      string               `protobuf:"bytes,1,opt,name=realm,proto3" json:"realm,omitempty"`
	Key        string               `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Timeout    *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
	MaxRefresh *durationpb.Duration `protobuf:"bytes,4,opt,name=max_refresh,json=maxRefresh,proto3" json:"max_refresh,omitempty"`
	// contains filtered or unexported fields
}

func (*Server_JWT) Descriptor deprecated

func (*Server_JWT) Descriptor() ([]byte, []int)

Deprecated: Use Server_JWT.ProtoReflect.Descriptor instead.

func (*Server_JWT) GetKey

func (x *Server_JWT) GetKey() string

func (*Server_JWT) GetMaxRefresh

func (x *Server_JWT) GetMaxRefresh() *durationpb.Duration

func (*Server_JWT) GetRealm

func (x *Server_JWT) GetRealm() string

func (*Server_JWT) GetTimeout

func (x *Server_JWT) GetTimeout() *durationpb.Duration

func (*Server_JWT) ProtoMessage

func (*Server_JWT) ProtoMessage()

func (*Server_JWT) ProtoReflect

func (x *Server_JWT) ProtoReflect() protoreflect.Message

func (*Server_JWT) Reset

func (x *Server_JWT) Reset()

func (*Server_JWT) String

func (x *Server_JWT) String() string

type Server_LOG

type Server_LOG struct {
	OutputPaths       []string `protobuf:"bytes,1,rep,name=output_paths,json=outputPaths,proto3" json:"output_paths,omitempty"`
	ErrorOutputPaths  []string `protobuf:"bytes,2,rep,name=error_output_paths,json=errorOutputPaths,proto3" json:"error_output_paths,omitempty"`
	Level             string   `protobuf:"bytes,3,opt,name=level,proto3" json:"level,omitempty"`
	Format            string   `protobuf:"bytes,4,opt,name=format,proto3" json:"format,omitempty"`
	DisableCaller     bool     `protobuf:"varint,5,opt,name=disable_caller,json=disableCaller,proto3" json:"disable_caller,omitempty"`
	DisableStacktrace bool     `protobuf:"varint,6,opt,name=disable_stacktrace,json=disableStacktrace,proto3" json:"disable_stacktrace,omitempty"`
	EnableColor       bool     `protobuf:"varint,7,opt,name=enable_color,json=enableColor,proto3" json:"enable_color,omitempty"`
	Development       bool     `protobuf:"varint,8,opt,name=development,proto3" json:"development,omitempty"`
	Name              string   `protobuf:"bytes,9,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Server_LOG) Descriptor deprecated

func (*Server_LOG) Descriptor() ([]byte, []int)

Deprecated: Use Server_LOG.ProtoReflect.Descriptor instead.

func (*Server_LOG) GetDevelopment

func (x *Server_LOG) GetDevelopment() bool

func (*Server_LOG) GetDisableCaller

func (x *Server_LOG) GetDisableCaller() bool

func (*Server_LOG) GetDisableStacktrace

func (x *Server_LOG) GetDisableStacktrace() bool

func (*Server_LOG) GetEnableColor

func (x *Server_LOG) GetEnableColor() bool

func (*Server_LOG) GetErrorOutputPaths

func (x *Server_LOG) GetErrorOutputPaths() []string

func (*Server_LOG) GetFormat

func (x *Server_LOG) GetFormat() string

func (*Server_LOG) GetLevel

func (x *Server_LOG) GetLevel() string

func (*Server_LOG) GetName

func (x *Server_LOG) GetName() string

func (*Server_LOG) GetOutputPaths

func (x *Server_LOG) GetOutputPaths() []string

func (*Server_LOG) ProtoMessage

func (*Server_LOG) ProtoMessage()

func (*Server_LOG) ProtoReflect

func (x *Server_LOG) ProtoReflect() protoreflect.Message

func (*Server_LOG) Reset

func (x *Server_LOG) Reset()

func (*Server_LOG) String

func (x *Server_LOG) String() string

type Server_SecureServingOptions

type Server_SecureServingOptions struct {
	BindAddress string                                  `protobuf:"bytes,1,opt,name=bindAddress,proto3" json:"bindAddress,omitempty"`
	BindPort    int32                                   `protobuf:"varint,2,opt,name=bind_port,json=bindPort,proto3" json:"bind_port,omitempty"`
	Required    bool                                    `protobuf:"varint,3,opt,name=required,proto3" json:"required,omitempty"`
	ServerCert  *Server_SecureServingOptions_ServerCert `protobuf:"bytes,4,opt,name=server_cert,json=serverCert,proto3" json:"server_cert,omitempty"`
	// contains filtered or unexported fields
}

func (*Server_SecureServingOptions) Descriptor deprecated

func (*Server_SecureServingOptions) Descriptor() ([]byte, []int)

Deprecated: Use Server_SecureServingOptions.ProtoReflect.Descriptor instead.

func (*Server_SecureServingOptions) GetBindAddress

func (x *Server_SecureServingOptions) GetBindAddress() string

func (*Server_SecureServingOptions) GetBindPort

func (x *Server_SecureServingOptions) GetBindPort() int32

func (*Server_SecureServingOptions) GetRequired

func (x *Server_SecureServingOptions) GetRequired() bool

func (*Server_SecureServingOptions) GetServerCert

func (*Server_SecureServingOptions) ProtoMessage

func (*Server_SecureServingOptions) ProtoMessage()

func (*Server_SecureServingOptions) ProtoReflect

func (*Server_SecureServingOptions) Reset

func (x *Server_SecureServingOptions) Reset()

func (*Server_SecureServingOptions) String

func (x *Server_SecureServingOptions) String() string

type Server_SecureServingOptions_ServerCert

type Server_SecureServingOptions_ServerCert struct {
	CertKey       *Server_SecureServingOptions_ServerCert_CertKey `protobuf:"bytes,1,opt,name=cert_key,json=certKey,proto3" json:"cert_key,omitempty"`
	CertDirectory string                                          `protobuf:"bytes,2,opt,name=cert_directory,json=certDirectory,proto3" json:"cert_directory,omitempty"`
	PairName      string                                          `protobuf:"bytes,3,opt,name=pair_name,json=pairName,proto3" json:"pair_name,omitempty"`
	// contains filtered or unexported fields
}

func (*Server_SecureServingOptions_ServerCert) Descriptor deprecated

func (*Server_SecureServingOptions_ServerCert) Descriptor() ([]byte, []int)

Deprecated: Use Server_SecureServingOptions_ServerCert.ProtoReflect.Descriptor instead.

func (*Server_SecureServingOptions_ServerCert) GetCertDirectory

func (x *Server_SecureServingOptions_ServerCert) GetCertDirectory() string

func (*Server_SecureServingOptions_ServerCert) GetCertKey

func (*Server_SecureServingOptions_ServerCert) GetPairName

func (*Server_SecureServingOptions_ServerCert) ProtoMessage

func (*Server_SecureServingOptions_ServerCert) ProtoReflect

func (*Server_SecureServingOptions_ServerCert) Reset

func (*Server_SecureServingOptions_ServerCert) String

type Server_SecureServingOptions_ServerCert_CertKey

type Server_SecureServingOptions_ServerCert_CertKey struct {
	CertFile string `protobuf:"bytes,1,opt,name=certFile,proto3" json:"certFile,omitempty"`
	KeyFile  string `protobuf:"bytes,2,opt,name=keyFile,proto3" json:"keyFile,omitempty"`
	// contains filtered or unexported fields
}

func (*Server_SecureServingOptions_ServerCert_CertKey) Descriptor deprecated

Deprecated: Use Server_SecureServingOptions_ServerCert_CertKey.ProtoReflect.Descriptor instead.

func (*Server_SecureServingOptions_ServerCert_CertKey) GetCertFile

func (*Server_SecureServingOptions_ServerCert_CertKey) GetKeyFile

func (*Server_SecureServingOptions_ServerCert_CertKey) ProtoMessage

func (*Server_SecureServingOptions_ServerCert_CertKey) ProtoReflect

func (*Server_SecureServingOptions_ServerCert_CertKey) Reset

func (*Server_SecureServingOptions_ServerCert_CertKey) String

Jump to

Keyboard shortcuts

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