Initial QSfera import

This commit is contained in:
Курнат Андрей
2026-06-07 10:20:04 +03:00
commit 2315f25754
16485 changed files with 4826827 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
package runtime
import (
"context"
"github.com/qsfera/server/qsfera/pkg/runtime/service"
"github.com/qsfera/server/pkg/config"
)
// Runtime represents a КуСфера runtime environment.
type Runtime struct {
c *config.Config
}
// New creates a new КуСфера + micro runtime
func New(cfg *config.Config) Runtime {
return Runtime{
c: cfg,
}
}
// Start rpc runtime
func (r *Runtime) Start(ctx context.Context) error {
return service.Start(ctx, service.WithConfig(r.c))
}