conf

package
v0.0.0-...-1a384c3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Bootstrap

type Bootstrap struct {
	Trace    *Trace    `protobuf:"bytes,1,opt,name=trace,proto3" json:"trace,omitempty"`
	Server   *Server   `protobuf:"bytes,2,opt,name=server,proto3" json:"server,omitempty"`
	Data     *Data     `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	Logger   *Logger   `protobuf:"bytes,4,opt,name=logger,proto3" json:"logger,omitempty"`
	Registry *Registry `protobuf:"bytes,5,opt,name=registry,proto3" json:"registry,omitempty"`
	// contains filtered or unexported fields
}

func NewBootstrapConfigFromPath

func NewBootstrapConfigFromPath(filePath string) *Bootstrap

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) GetLogger

func (x *Bootstrap) GetLogger() *Logger

func (*Bootstrap) GetRegistry

func (x *Bootstrap) GetRegistry() *Registry

func (*Bootstrap) GetServer

func (x *Bootstrap) GetServer() *Server

func (*Bootstrap) GetTrace

func (x *Bootstrap) GetTrace() *Trace

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 {
	MySQL *Data_MySQL `protobuf:"bytes,1,opt,name=mySQL,proto3" json:"mySQL,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) GetMySQL

func (x *Data) GetMySQL() *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 {
	DSN          string               `protobuf:"bytes,2,opt,name=DSN,proto3" json:"DSN,omitempty"`
	MaxLifeTime  *durationpb.Duration `protobuf:"bytes,3,opt,name=max_life_time,json=maxLifeTime,proto3" json:"max_life_time,omitempty"`
	MaxConns     int32                `protobuf:"varint,4,opt,name=max_conns,json=maxConns,proto3" json:"max_conns,omitempty"`
	MaxIdleConns int32                `protobuf:"varint,5,opt,name=max_idle_conns,json=maxIdleConns,proto3" json:"max_idle_conns,omitempty"`
	Timeout      *durationpb.Duration `protobuf:"bytes,6,opt,name=timeout,proto3" json:"timeout,omitempty"`
	ReadTimeout  *durationpb.Duration `protobuf:"bytes,7,opt,name=read_timeout,json=readTimeout,proto3" json:"read_timeout,omitempty"`
	WriteTimeout *durationpb.Duration `protobuf:"bytes,8,opt,name=write_timeout,json=writeTimeout,proto3" json:"write_timeout,omitempty"`
	Debug        bool                 `protobuf:"varint,9,opt,name=debug,proto3" json:"debug,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) GetDSN

func (x *Data_MySQL) GetDSN() string

func (*Data_MySQL) GetDebug

func (x *Data_MySQL) GetDebug() bool

func (*Data_MySQL) GetMaxConns

func (x *Data_MySQL) GetMaxConns() int32

func (*Data_MySQL) GetMaxIdleConns

func (x *Data_MySQL) GetMaxIdleConns() int32

func (*Data_MySQL) GetMaxLifeTime

func (x *Data_MySQL) GetMaxLifeTime() *durationpb.Duration

func (*Data_MySQL) GetReadTimeout

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

func (*Data_MySQL) GetTimeout

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

func (*Data_MySQL) GetWriteTimeout

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

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 {
	Network      string               `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
	Addr         string               `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	ReadTimeout  *durationpb.Duration `protobuf:"bytes,3,opt,name=read_timeout,json=readTimeout,proto3" json:"read_timeout,omitempty"`
	WriteTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=write_timeout,json=writeTimeout,proto3" json:"write_timeout,omitempty"`
	// 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) GetAddr

func (x *Data_Redis) GetAddr() string

func (*Data_Redis) GetNetwork

func (x *Data_Redis) GetNetwork() string

func (*Data_Redis) GetReadTimeout

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

func (*Data_Redis) GetWriteTimeout

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

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 FlagOptions

type FlagOptions struct {
	ConfigPath string
	Env        string
}

func NewFlagOptions

func NewFlagOptions() *FlagOptions

type Logger

type Logger struct {
	OutputPaths []string `protobuf:"bytes,1,rep,name=output_paths,json=outputPaths,proto3" json:"output_paths,omitempty"`
	Level       string   `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty"`
	MaxSize     int64    `protobuf:"varint,3,opt,name=max_size,json=maxSize,proto3" json:"max_size,omitempty"`
	MaxAge      int64    `protobuf:"varint,4,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"`
	MaxBackup   int64    `protobuf:"varint,5,opt,name=max_backup,json=maxBackup,proto3" json:"max_backup,omitempty"`
	Format      string   `protobuf:"bytes,6,opt,name=format,proto3" json:"format,omitempty"`
	// contains filtered or unexported fields
}

func (*Logger) Descriptor deprecated

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

Deprecated: Use Logger.ProtoReflect.Descriptor instead.

func (*Logger) GetFormat

func (x *Logger) GetFormat() string

func (*Logger) GetLevel

func (x *Logger) GetLevel() string

func (*Logger) GetMaxAge

func (x *Logger) GetMaxAge() int64

func (*Logger) GetMaxBackup

func (x *Logger) GetMaxBackup() int64

func (*Logger) GetMaxSize

func (x *Logger) GetMaxSize() int64

func (*Logger) GetOutputPaths

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

func (*Logger) ProtoMessage

func (*Logger) ProtoMessage()

func (*Logger) ProtoReflect

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

func (*Logger) Reset

func (x *Logger) Reset()

func (*Logger) String

func (x *Logger) String() string

type Registry

type Registry struct {
	Consul *Registry_Consul `protobuf:"bytes,1,opt,name=consul,proto3" json:"consul,omitempty"`
	// contains filtered or unexported fields
}

func (*Registry) Descriptor deprecated

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

Deprecated: Use Registry.ProtoReflect.Descriptor instead.

func (*Registry) GetConsul

func (x *Registry) GetConsul() *Registry_Consul

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 Registry_Consul

type Registry_Consul struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Scheme  string `protobuf:"bytes,2,opt,name=scheme,proto3" json:"scheme,omitempty"`
	// contains filtered or unexported fields
}

func (*Registry_Consul) Descriptor deprecated

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

Deprecated: Use Registry_Consul.ProtoReflect.Descriptor instead.

func (*Registry_Consul) GetAddress

func (x *Registry_Consul) GetAddress() string

func (*Registry_Consul) GetScheme

func (x *Registry_Consul) GetScheme() string

func (*Registry_Consul) ProtoMessage

func (*Registry_Consul) ProtoMessage()

func (*Registry_Consul) ProtoReflect

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

func (*Registry_Consul) Reset

func (x *Registry_Consul) Reset()

func (*Registry_Consul) String

func (x *Registry_Consul) 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"`
	// 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() *Server_GRPC

func (*Server) GetHttp

func (x *Server) GetHttp() *Server_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

type Server_GRPC

type Server_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 (*Server_GRPC) Descriptor deprecated

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

Deprecated: Use Server_GRPC.ProtoReflect.Descriptor instead.

func (*Server_GRPC) GetAddr

func (x *Server_GRPC) GetAddr() string

func (*Server_GRPC) GetNetwork

func (x *Server_GRPC) GetNetwork() string

func (*Server_GRPC) GetTimeout

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

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 {
	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 (*Server_HTTP) Descriptor deprecated

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

Deprecated: Use Server_HTTP.ProtoReflect.Descriptor instead.

func (*Server_HTTP) GetAddr

func (x *Server_HTTP) GetAddr() string

func (*Server_HTTP) GetNetwork

func (x *Server_HTTP) GetNetwork() string

func (*Server_HTTP) GetTimeout

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

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 Trace

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

func (*Trace) Descriptor deprecated

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

Deprecated: Use Trace.ProtoReflect.Descriptor instead.

func (*Trace) GetEndpoint

func (x *Trace) GetEndpoint() string

func (*Trace) ProtoMessage

func (*Trace) ProtoMessage()

func (*Trace) ProtoReflect

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

func (*Trace) Reset

func (x *Trace) Reset()

func (*Trace) String

func (x *Trace) String() string

Jump to

Keyboard shortcuts

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