conf

package
v0.0.0-...-31da580 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_internal_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"`
	AppName   string   `protobuf:"bytes,3,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"`
	Endpoints []string `protobuf:"bytes,4,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	// contains filtered or unexported fields
}

func (*Bootstrap) Descriptor deprecated

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

Deprecated: Use Bootstrap.ProtoReflect.Descriptor instead.

func (*Bootstrap) GetAppName

func (x *Bootstrap) GetAppName() string

func (*Bootstrap) GetData

func (x *Bootstrap) GetData() *Data

func (*Bootstrap) GetEndpoints

func (x *Bootstrap) GetEndpoints() []string

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 Cache

type Cache struct {
	Driver     string            `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"`
	Properties map[string]string `` /* 161-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Cache) Descriptor deprecated

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

Deprecated: Use Cache.ProtoReflect.Descriptor instead.

func (*Cache) GetDriver

func (x *Cache) GetDriver() string

func (*Cache) GetProperties

func (x *Cache) GetProperties() map[string]string

func (*Cache) ProtoMessage

func (*Cache) ProtoMessage()

func (*Cache) ProtoReflect

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

func (*Cache) Reset

func (x *Cache) Reset()

func (*Cache) String

func (x *Cache) String() string

type ConfigCenter

type ConfigCenter struct {
	Nacos *Nacos `protobuf:"bytes,1,opt,name=nacos,proto3" json:"nacos,omitempty"`
	Etcd  *Etcd  `protobuf:"bytes,2,opt,name=etcd,proto3" json:"etcd,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigCenter) Descriptor deprecated

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

Deprecated: Use ConfigCenter.ProtoReflect.Descriptor instead.

func (*ConfigCenter) GetEtcd

func (x *ConfigCenter) GetEtcd() *Etcd

func (*ConfigCenter) GetNacos

func (x *ConfigCenter) GetNacos() *Nacos

func (*ConfigCenter) ProtoMessage

func (*ConfigCenter) ProtoMessage()

func (*ConfigCenter) ProtoReflect

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

func (*ConfigCenter) Reset

func (x *ConfigCenter) Reset()

func (*ConfigCenter) String

func (x *ConfigCenter) String() string

type Data

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

func (*Data) Descriptor deprecated

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

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetCache

func (x *Data) GetCache() *Cache

func (*Data) GetDatabase

func (x *Data) GetDatabase() *Database

func (*Data) GetRedis

func (x *Data) GetRedis() *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 Database

type Database struct {
	Driver    string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"`
	Source    string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	ShowDebug bool   `protobuf:"varint,3,opt,name=show_debug,json=showDebug,proto3" json:"show_debug,omitempty"`
	// contains filtered or unexported fields
}

func (*Database) Descriptor deprecated

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

Deprecated: Use Database.ProtoReflect.Descriptor instead.

func (*Database) GetDriver

func (x *Database) GetDriver() string

func (*Database) GetShowDebug

func (x *Database) GetShowDebug() bool

func (*Database) GetSource

func (x *Database) GetSource() string

func (*Database) ProtoMessage

func (*Database) ProtoMessage()

func (*Database) ProtoReflect

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

func (*Database) Reset

func (x *Database) Reset()

func (*Database) String

func (x *Database) String() string

type Etcd

type Etcd struct {
	Endpoint []string `protobuf:"bytes,1,rep,name=endpoint,proto3" json:"endpoint,omitempty"`
	// contains filtered or unexported fields
}

func (*Etcd) Descriptor deprecated

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

Deprecated: Use Etcd.ProtoReflect.Descriptor instead.

func (*Etcd) GetEndpoint

func (x *Etcd) GetEndpoint() []string

func (*Etcd) ProtoMessage

func (*Etcd) ProtoMessage()

func (*Etcd) ProtoReflect

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

func (*Etcd) Reset

func (x *Etcd) Reset()

func (*Etcd) String

func (x *Etcd) String() string

type GRPC

type GRPC struct {
	Network string               `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
	Addr    string               `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// contains filtered or unexported fields
}

func (*GRPC) Descriptor deprecated

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

Deprecated: Use GRPC.ProtoReflect.Descriptor instead.

func (*GRPC) GetAddr

func (x *GRPC) GetAddr() string

func (*GRPC) GetNetwork

func (x *GRPC) GetNetwork() string

func (*GRPC) GetTimeout

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

func (*GRPC) ProtoMessage

func (*GRPC) ProtoMessage()

func (*GRPC) ProtoReflect

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

func (*GRPC) Reset

func (x *GRPC) Reset()

func (*GRPC) String

func (x *GRPC) String() string

type HTTP

type HTTP struct {
	Network string               `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
	Addr    string               `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// contains filtered or unexported fields
}

func (*HTTP) Descriptor deprecated

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

Deprecated: Use HTTP.ProtoReflect.Descriptor instead.

func (*HTTP) GetAddr

func (x *HTTP) GetAddr() string

func (*HTTP) GetNetwork

func (x *HTTP) GetNetwork() string

func (*HTTP) GetTimeout

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

func (*HTTP) ProtoMessage

func (*HTTP) ProtoMessage()

func (*HTTP) ProtoReflect

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

func (*HTTP) Reset

func (x *HTTP) Reset()

func (*HTTP) String

func (x *HTTP) String() string

type Nacos

type Nacos struct {
	Servers             []*NacosServer        `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"`
	Sources             []*NacosSource        `protobuf:"bytes,2,rep,name=sources,proto3" json:"sources,omitempty"`
	Client              *NacosClient          `protobuf:"bytes,3,opt,name=Client,proto3" json:"Client,omitempty"`
	DisableConfigClient bool                  `protobuf:"varint,4,opt,name=disable_config_client,json=disableConfigClient,proto3" json:"disable_config_client,omitempty"`
	ConfigSources       []*NacosConfigSources `protobuf:"bytes,5,rep,name=config_sources,json=configSources,proto3" json:"config_sources,omitempty"`
	// contains filtered or unexported fields
}

func (*Nacos) Descriptor deprecated

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

Deprecated: Use Nacos.ProtoReflect.Descriptor instead.

func (*Nacos) GetClient

func (x *Nacos) GetClient() *NacosClient

func (*Nacos) GetConfigSources

func (x *Nacos) GetConfigSources() []*NacosConfigSources

func (*Nacos) GetDisableConfigClient

func (x *Nacos) GetDisableConfigClient() bool

func (*Nacos) GetServers

func (x *Nacos) GetServers() []*NacosServer

func (*Nacos) GetSources

func (x *Nacos) GetSources() []*NacosSource

func (*Nacos) ProtoMessage

func (*Nacos) ProtoMessage()

func (*Nacos) ProtoReflect

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

func (*Nacos) Reset

func (x *Nacos) Reset()

func (*Nacos) String

func (x *Nacos) String() string

type NacosClient

type NacosClient struct {
	Username            string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password            string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	CacheDir            string `protobuf:"bytes,3,opt,name=cache_dir,json=cacheDir,proto3" json:"cache_dir,omitempty"`
	LogDir              string `protobuf:"bytes,4,opt,name=log_dir,json=logDir,proto3" json:"log_dir,omitempty"`
	LogLevel            string `protobuf:"bytes,5,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"`
	Timeout             uint64 `protobuf:"varint,6,opt,name=timeout,proto3" json:"timeout,omitempty"`
	Namespace           string `protobuf:"bytes,7,opt,name=namespace,proto3" json:"namespace,omitempty"`
	MaxBackups          int64  `protobuf:"varint,8,opt,name=max_backups,json=maxBackups,proto3" json:"max_backups,omitempty"`
	RollingMaxAge       int64  `protobuf:"varint,9,opt,name=rolling_max_age,json=rollingMaxAge,proto3" json:"rolling_max_age,omitempty"`
	RollingMaxSize      int64  `protobuf:"varint,10,opt,name=rolling_max_size,json=rollingMaxSize,proto3" json:"rolling_max_size,omitempty"`
	UpdateThreadNum     uint64 `protobuf:"varint,11,opt,name=update_thread_num,json=updateThreadNum,proto3" json:"update_thread_num,omitempty"`
	NotLoadCacheAtStart bool   `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*NacosClient) Descriptor deprecated

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

Deprecated: Use NacosClient.ProtoReflect.Descriptor instead.

func (*NacosClient) GetCacheDir

func (x *NacosClient) GetCacheDir() string

func (*NacosClient) GetLogDir

func (x *NacosClient) GetLogDir() string

func (*NacosClient) GetLogLevel

func (x *NacosClient) GetLogLevel() string

func (*NacosClient) GetMaxBackups

func (x *NacosClient) GetMaxBackups() int64

func (*NacosClient) GetNamespace

func (x *NacosClient) GetNamespace() string

func (*NacosClient) GetNotLoadCacheAtStart

func (x *NacosClient) GetNotLoadCacheAtStart() bool

func (*NacosClient) GetPassword

func (x *NacosClient) GetPassword() string

func (*NacosClient) GetRollingMaxAge

func (x *NacosClient) GetRollingMaxAge() int64

func (*NacosClient) GetRollingMaxSize

func (x *NacosClient) GetRollingMaxSize() int64

func (*NacosClient) GetTimeout

func (x *NacosClient) GetTimeout() uint64

func (*NacosClient) GetUpdateThreadNum

func (x *NacosClient) GetUpdateThreadNum() uint64

func (*NacosClient) GetUsername

func (x *NacosClient) GetUsername() string

func (*NacosClient) ProtoMessage

func (*NacosClient) ProtoMessage()

func (*NacosClient) ProtoReflect

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

func (*NacosClient) Reset

func (x *NacosClient) Reset()

func (*NacosClient) String

func (x *NacosClient) String() string

type NacosConfigSources

type NacosConfigSources struct {
	DataId string `protobuf:"bytes,1,opt,name=data_id,json=dataId,proto3" json:"data_id,omitempty"`
	Group  string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"`
	// contains filtered or unexported fields
}

func (*NacosConfigSources) Descriptor deprecated

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

Deprecated: Use NacosConfigSources.ProtoReflect.Descriptor instead.

func (*NacosConfigSources) GetDataId

func (x *NacosConfigSources) GetDataId() string

func (*NacosConfigSources) GetGroup

func (x *NacosConfigSources) GetGroup() string

func (*NacosConfigSources) ProtoMessage

func (*NacosConfigSources) ProtoMessage()

func (*NacosConfigSources) ProtoReflect

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

func (*NacosConfigSources) Reset

func (x *NacosConfigSources) Reset()

func (*NacosConfigSources) String

func (x *NacosConfigSources) String() string

type NacosServer

type NacosServer struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Port    uint64 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

func (*NacosServer) Descriptor deprecated

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

Deprecated: Use NacosServer.ProtoReflect.Descriptor instead.

func (*NacosServer) GetAddress

func (x *NacosServer) GetAddress() string

func (*NacosServer) GetPort

func (x *NacosServer) GetPort() uint64

func (*NacosServer) ProtoMessage

func (*NacosServer) ProtoMessage()

func (*NacosServer) ProtoReflect

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

func (*NacosServer) Reset

func (x *NacosServer) Reset()

func (*NacosServer) String

func (x *NacosServer) String() string

type NacosSource

type NacosSource struct {
	DataId string `protobuf:"bytes,1,opt,name=data_id,json=dataId,proto3" json:"data_id,omitempty"`
	Group  string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"`
	// contains filtered or unexported fields
}

func (*NacosSource) Descriptor deprecated

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

Deprecated: Use NacosSource.ProtoReflect.Descriptor instead.

func (*NacosSource) GetDataId

func (x *NacosSource) GetDataId() string

func (*NacosSource) GetGroup

func (x *NacosSource) GetGroup() string

func (*NacosSource) ProtoMessage

func (*NacosSource) ProtoMessage()

func (*NacosSource) ProtoReflect

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

func (*NacosSource) Reset

func (x *NacosSource) Reset()

func (*NacosSource) String

func (x *NacosSource) String() string

type Redis

type Redis struct {
	Network      string               `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
	Addr         string               `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	Auth         string               `protobuf:"bytes,3,opt,name=auth,proto3" json:"auth,omitempty"`
	ReadTimeout  *durationpb.Duration `protobuf:"bytes,4,opt,name=read_timeout,json=readTimeout,proto3" json:"read_timeout,omitempty"`
	WriteTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=write_timeout,json=writeTimeout,proto3" json:"write_timeout,omitempty"`
	// contains filtered or unexported fields
}

func (*Redis) Descriptor deprecated

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

Deprecated: Use Redis.ProtoReflect.Descriptor instead.

func (*Redis) GetAddr

func (x *Redis) GetAddr() string

func (*Redis) GetAuth

func (x *Redis) GetAuth() string

func (*Redis) GetNetwork

func (x *Redis) GetNetwork() string

func (*Redis) GetReadTimeout

func (x *Redis) GetReadTimeout() *durationpb.Duration

func (*Redis) GetWriteTimeout

func (x *Redis) GetWriteTimeout() *durationpb.Duration

func (*Redis) ProtoMessage

func (*Redis) ProtoMessage()

func (*Redis) ProtoReflect

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

func (*Redis) Reset

func (x *Redis) Reset()

func (*Redis) String

func (x *Redis) String() string

type Registry

type Registry struct {
	AppName string `protobuf:"bytes,1,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"`
	Nacos   *Nacos `protobuf:"bytes,2,opt,name=nacos,proto3" json:"nacos,omitempty"`
	Etcd    *Etcd  `protobuf:"bytes,3,opt,name=etcd,proto3" json:"etcd,omitempty"`
	// contains filtered or unexported fields
}

func (*Registry) Descriptor deprecated

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

Deprecated: Use Registry.ProtoReflect.Descriptor instead.

func (*Registry) GetAppName

func (x *Registry) GetAppName() string

func (*Registry) GetEtcd

func (x *Registry) GetEtcd() *Etcd

func (*Registry) GetNacos

func (x *Registry) GetNacos() *Nacos

func (*Registry) ProtoMessage

func (*Registry) ProtoMessage()

func (*Registry) ProtoReflect

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

func (*Registry) Reset

func (x *Registry) Reset()

func (*Registry) String

func (x *Registry) String() string

type Server

type Server struct {
	Http *HTTP `protobuf:"bytes,1,opt,name=http,proto3" json:"http,omitempty"`
	Grpc *GRPC `protobuf:"bytes,2,opt,name=grpc,proto3" json:"grpc,omitempty"`
	// contains filtered or unexported fields
}

func (*Server) Descriptor deprecated

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

Deprecated: Use Server.ProtoReflect.Descriptor instead.

func (*Server) GetGrpc

func (x *Server) GetGrpc() *GRPC

func (*Server) GetHttp

func (x *Server) GetHttp() *HTTP

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

Jump to

Keyboard shortcuts

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