Files
QSfera/Server/qsfera/pkg/runtime/runtime.go
Курнат Андрей 2315f25754 Initial QSfera import
2026-06-07 10:20:04 +03:00

26 lines
490 B
Go

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