mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-31 09:20:15 -06:00
24 lines
444 B
Go
24 lines
444 B
Go
package runtime
|
|
|
|
import (
|
|
"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() error {
|
|
return service.Start(service.WithConfig(r.c))
|
|
}
|