Documentation ¶
Index ¶
- type Module
- type Service
- type System
- func (s *System) Config() config.AppConfig
- func (s *System) JS() nats.JetStreamContext
- func (s *System) Logger() zerolog.Logger
- func (s *System) MigrateDB(fs fs.FS) error
- func (s *System) MongoDB() *mongo.Client
- func (s *System) Mux() *chi.Mux
- func (s *System) RPC() *grpc.Server
- func (s *System) SqlDB() *sql.DB
- func (s *System) WaitForRPC(ctx context.Context) error
- func (s *System) WaitForStream(ctx context.Context) error
- func (s *System) WaitForWeb(ctx context.Context) error
- func (s *System) Waiter() waiter.Waiter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type System ¶
type System struct {
// contains filtered or unexported fields
}
func (*System) MongoDB ¶ added in v0.1.3
MongoDB returns a pointer to the mongo.Client instance associated with the System. This method provides access to the MongoDB client, allowing for operations such as querying and manipulating documents within MongoDB collections. Similar to DB(), it is crucial to ensure that the System has been appropriately initialized and connected to a MongoDB instance before invoking this method.
func (*System) SqlDB ¶ added in v0.1.3
SqlDB returns a pointer to the sql.DB instance associated with the System. This method provides access to the SQL database client, which can be used for executing SQL queries and operations. It is important to ensure that the System instance has been properly initialized and connected to the database before calling this method.