Files
opencloud/ocis/pkg/runtime/runtime.go
Jörn Friedrich Dreyer d6045a74ea work on signals
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-07-24 13:21:30 +02:00

26 lines
480 B
Go

package runtime
import (
"context"
"github.com/owncloud/ocis/v2/ocis-pkg/config"
"github.com/owncloud/ocis/v2/ocis/pkg/runtime/service"
)
// Runtime represents an oCIS runtime environment.
type Runtime struct {
c *config.Config
}
// New creates a new oCIS + 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))
}