Documentation
¶
Index ¶
- Variables
- type Bootstrap
- func (*Bootstrap) Descriptor() ([]byte, []int)deprecated
- func (x *Bootstrap) GetApp() *v1.App
- func (x *Bootstrap) GetBrokers() *v16.Brokers
- func (x *Bootstrap) GetClients() *v11.Clients
- func (x *Bootstrap) GetData() *v12.Data
- func (x *Bootstrap) GetDiscoveries() *v15.Discoveries
- func (x *Bootstrap) GetLogger() *v13.Logger
- func (x *Bootstrap) GetMiddlewares() *v17.Middlewares
- func (x *Bootstrap) GetServers() *v11.Servers
- func (x *Bootstrap) GetTrace() *v14.Trace
- func (*Bootstrap) ProtoMessage()
- func (x *Bootstrap) ProtoReflect() protoreflect.Message
- func (x *Bootstrap) Reset()
- func (x *Bootstrap) String() string
- func (m *Bootstrap) Validate() error
- func (m *Bootstrap) ValidateAll() error
- type BootstrapMultiError
- type BootstrapValidationError
Constants ¶
This section is empty.
Variables ¶
var File_examples_protos_bootstrap_sample_bootstrap_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Bootstrap ¶
type Bootstrap struct {
// App contains application-level metadata (e.g., name, version, environment).
App *v1.App `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"`
// Servers holds configurations for all network servers (HTTP, gRPC, WebSocket).
// This now uses the Servers collection from the transport module.
Servers *v11.Servers `protobuf:"bytes,2,opt,name=servers,proto3" json:"servers,omitempty"`
// Data holds configurations for all data sources (databases, caches).
Data *v12.Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
// Logger configures the application's logging behavior.
Logger *v13.Logger `protobuf:"bytes,4,opt,name=logger,proto3" json:"logger,omitempty"`
// Trace configures the distributed tracing system.
Trace *v14.Trace `protobuf:"bytes,5,opt,name=trace,proto3" json:"trace,omitempty"`
// Discovery configures the service discovery client.
Discoveries *v15.Discoveries `protobuf:"bytes,6,opt,name=discoveries,proto3" json:"discoveries,omitempty"`
// Broker configures the message brokers.
Brokers *v16.Brokers `protobuf:"bytes,7,opt,name=brokers,proto3" json:"brokers,omitempty"`
// Middlewares defines the middleware chain.
Middlewares *v17.Middlewares `protobuf:"bytes,8,opt,name=middlewares,proto3" json:"middlewares,omitempty"`
// Clients holds configurations for all network clients (HTTP, gRPC).
// This now uses the Clients collection from the transport module.
Clients *v11.Clients `protobuf:"bytes,10,opt,name=clients,proto3" json:"clients,omitempty"`
// contains filtered or unexported fields
}
Bootstrap is the root configuration example for the entire application. The new structure aggregates all configuration items into logical groups, making it clearer and easier to understand.
func (*Bootstrap) Descriptor
deprecated
func (*Bootstrap) GetBrokers ¶
func (*Bootstrap) GetClients ¶
func (*Bootstrap) GetDiscoveries ¶
func (x *Bootstrap) GetDiscoveries() *v15.Discoveries
func (*Bootstrap) GetMiddlewares ¶
func (x *Bootstrap) GetMiddlewares() *v17.Middlewares
func (*Bootstrap) GetServers ¶
func (*Bootstrap) ProtoMessage ¶
func (*Bootstrap) ProtoMessage()
func (*Bootstrap) ProtoReflect ¶
func (x *Bootstrap) ProtoReflect() protoreflect.Message
func (*Bootstrap) Validate ¶
Validate checks the field values on Bootstrap with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Bootstrap) ValidateAll ¶
ValidateAll checks the field values on Bootstrap with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BootstrapMultiError, or nil if none found.
type BootstrapMultiError ¶
type BootstrapMultiError []error
BootstrapMultiError is an error wrapping multiple validation errors returned by Bootstrap.ValidateAll() if the designated constraints aren't met.
func (BootstrapMultiError) AllErrors ¶
func (m BootstrapMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BootstrapMultiError) Error ¶
func (m BootstrapMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BootstrapValidationError ¶
type BootstrapValidationError struct {
// contains filtered or unexported fields
}
BootstrapValidationError is the validation error returned by Bootstrap.Validate if the designated constraints aren't met.
func (BootstrapValidationError) Cause ¶
func (e BootstrapValidationError) Cause() error
Cause function returns cause value.
func (BootstrapValidationError) Error ¶
func (e BootstrapValidationError) Error() string
Error satisfies the builtin error interface
func (BootstrapValidationError) ErrorName ¶
func (e BootstrapValidationError) ErrorName() string
ErrorName returns error name.
func (BootstrapValidationError) Field ¶
func (e BootstrapValidationError) Field() string
Field function returns field value.
func (BootstrapValidationError) Key ¶
func (e BootstrapValidationError) Key() bool
Key function returns key value.
func (BootstrapValidationError) Reason ¶
func (e BootstrapValidationError) Reason() string
Reason function returns reason value.