Example #1
0
// NewServer creates a dlogbus server instance with cdc command args.
// Only one can be active.
//
func NewServer(dockArgs []string, log cdtype.Logger) *Server {
	return &Server{
		Server:   dbuscommon.NewServer(SrvObj, SrvPath, log),
		DockArgs: dockArgs,
		over:     make(chan struct{}),
	}
}
Example #2
0
// NewLoader creates a loader with the given list of applets services.
//
func NewLoader(log cdtype.Logger) *Loader {
	srv := dbuscommon.NewServer(SrvObj, SrvPath, log)
	if srv == nil {
		return nil
	}
	return &Loader{Server: srv}
}