Documentation ¶
Index ¶
- Variables
- func GetGRPCConfig(cfg *Server) *confpb.GRPC
- func GetHttpConfig(cfg *Server) *confpb.HTTP
- func GetLogConfig(cfg *Bootstrap) *confpb.Log
- func GetOpenSergoConfig(cfg *Bootstrap) *confpb.OpenSergo
- func GetRegistryConfig(cfg *Bootstrap) *confpb.Registry
- func GetSentryConfig(cfg *Bootstrap) *confpb.Sentry
- func GetTracerConfig(cfg *Bootstrap) *confpb.Tracer
- func NewConfigLoader(cfg bootstrap.ConfigFlags) (*bootstrap.ConfigLoader[Bootstrap], func(), error)
- type Bootstrap
- func (*Bootstrap) Descriptor() ([]byte, []int)deprecated
- func (x *Bootstrap) GetData() *Data
- func (x *Bootstrap) GetLog() *confpb.Log
- func (x *Bootstrap) GetOpensergo() *confpb.OpenSergo
- func (x *Bootstrap) GetRegistry() *confpb.Registry
- func (x *Bootstrap) GetSentry() *confpb.Sentry
- func (x *Bootstrap) GetServer() *Server
- func (x *Bootstrap) GetTracer() *confpb.Tracer
- func (*Bootstrap) ProtoMessage()
- func (x *Bootstrap) ProtoReflect() protoreflect.Message
- func (x *Bootstrap) Reset()
- func (x *Bootstrap) String() string
- type Data
- type Server
Constants ¶
This section is empty.
Variables ¶
View Source
var File_conf_proto protoreflect.FileDescriptor
View Source
var ( ProviderSet = wire.NewSet( NewConfigLoader, GetConfig, GetTracerConfig, GetLogConfig, GetRegistryConfig, GetOpenSergoConfig, GetSentryConfig, GetServerConfig, GetDataBaseConfig, GetHttpConfig, GetGRPCConfig, ) )
Functions ¶
func GetGRPCConfig ¶ added in v1.0.2
func GetHttpConfig ¶ added in v1.0.2
func GetLogConfig ¶ added in v1.0.2
func GetOpenSergoConfig ¶ added in v1.0.2
func GetRegistryConfig ¶ added in v1.0.2
func GetSentryConfig ¶ added in v1.0.2
func GetTracerConfig ¶ added in v1.0.2
func NewConfigLoader ¶ added in v1.0.2
func NewConfigLoader(cfg bootstrap.ConfigFlags) (*bootstrap.ConfigLoader[Bootstrap], func(), error)
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"` Log *confpb.Log `protobuf:"bytes,3,opt,name=log,proto3,oneof" json:"log,omitempty"` Tracer *confpb.Tracer `protobuf:"bytes,4,opt,name=tracer,proto3,oneof" json:"tracer,omitempty"` Registry *confpb.Registry `protobuf:"bytes,5,opt,name=registry,proto3,oneof" json:"registry,omitempty"` Opensergo *confpb.OpenSergo `protobuf:"bytes,6,opt,name=opensergo,proto3,oneof" json:"opensergo,omitempty"` Sentry *confpb.Sentry `protobuf:"bytes,7,opt,name=sentry,proto3,oneof" json:"sentry,omitempty"` // contains filtered or unexported fields }
func GetConfig ¶ added in v1.0.2
func GetConfig(loader *bootstrap.ConfigLoader[Bootstrap]) *Bootstrap
func (*Bootstrap) Descriptor
deprecated
func (*Bootstrap) GetOpensergo ¶
func (*Bootstrap) GetRegistry ¶
func (*Bootstrap) ProtoMessage ¶
func (*Bootstrap) ProtoMessage()
func (*Bootstrap) ProtoReflect ¶
func (x *Bootstrap) ProtoReflect() protoreflect.Message
type Data ¶
type Data struct { Database *confpb.Database `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` Redis *confpb.Redis `protobuf:"bytes,2,opt,name=redis,proto3" json:"redis,omitempty"` // contains filtered or unexported fields }
func GetDataBaseConfig ¶ added in v1.0.2
func (*Data) Descriptor
deprecated
func (*Data) GetDatabase ¶
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) ProtoReflect ¶
func (x *Data) ProtoReflect() protoreflect.Message
type Server ¶
type Server struct { Http *confpb.HTTP `protobuf:"bytes,1,opt,name=http,proto3" json:"http,omitempty"` Grpc *confpb.GRPC `protobuf:"bytes,2,opt,name=grpc,proto3" json:"grpc,omitempty"` // contains filtered or unexported fields }
func GetServerConfig ¶ added in v1.0.2
func (*Server) Descriptor
deprecated
func (*Server) ProtoMessage ¶
func (*Server) ProtoMessage()
func (*Server) ProtoReflect ¶
func (x *Server) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.