当前位置: 首页>>代码示例>>Golang>>正文


Golang engine.KillProcName函数代码示例

本文整理汇总了Golang中github.com/cgrates/cgrates/engine.KillProcName函数的典型用法代码示例。如果您正苦于以下问题:Golang KillProcName函数的具体用法?Golang KillProcName怎么用?Golang KillProcName使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了KillProcName函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。

示例1: TestTutKamCallsStartKamailio

// start FS server
func TestTutKamCallsStartKamailio(t *testing.T) {
	if !*testCalls {
		return
	}
	engine.KillProcName("kamailio", 3000)
	if err := engine.CallScript(path.Join(*dataDir, "tutorials", "kamevapi", "kamailio", "etc", "init.d", "kamailio"), "start", 2000); err != nil {
		t.Fatal(err)
	}
}
开发者ID:bhepp,项目名称:cgrates,代码行数:10,代码来源:tutorial_kam_calls_test.go

示例2: TestTutKamCallsStartEngine

// Start CGR Engine
func TestTutKamCallsStartEngine(t *testing.T) {
	if !*testCalls {
		return
	}
	engine.KillProcName("cgr-engine", *waitRater)
	if err := engine.CallScript(path.Join(*dataDir, "tutorials", "kamevapi", "cgrates", "etc", "init.d", "cgrates"), "start", 100); err != nil {
		t.Fatal(err)
	}
}
开发者ID:bhepp,项目名称:cgrates,代码行数:10,代码来源:tutorial_kam_calls_test.go

示例3: TestTutOsipsCallsStartOsips

// start FS server
func TestTutOsipsCallsStartOsips(t *testing.T) {
	if !*testCalls {
		return
	}
	engine.KillProcName("opensips", 3000)
	if err := engine.CallScript(path.Join(*dataDir, "tutorials", "osips_async", "opensips", "etc", "init.d", "opensips"), "start", 3000); err != nil {
		t.Fatal(err)
	}
}
开发者ID:gale320,项目名称:cgrates,代码行数:10,代码来源:tutorial_osips_calls_test.go

示例4: TestTutFsCallsStartFS

// start FS server
func TestTutFsCallsStartFS(t *testing.T) {
	if !*testCalls {
		return
	}
	engine.KillProcName("freeswitch", 5000)
	if err := engine.CallScript(path.Join(*dataDir, "tutorials", "fs_evsock", "freeswitch", "etc", "init.d", "freeswitch"), "start", 3000); err != nil {
		t.Fatal(err)
	}
}
开发者ID:eloycoto,项目名称:cgrates,代码行数:10,代码来源:tutorial_fs_calls_test.go

示例5: TestTutAstCallsStartOsips

// start Asterisk server
func TestTutAstCallsStartOsips(t *testing.T) {
	if !*testCalls {
		return
	}
	engine.KillProcName("asterisk", 1000)
	if err := engine.CallScript(path.Join(*dataDir, "tutorials", "asterisk_events", "asterisk", "etc", "init.d", "asterisk"), "start", 2000); err != nil {
		t.Fatal(err)
	}
}
开发者ID:eloycoto,项目名称:cgrates,代码行数:10,代码来源:tutorial_astevents_calls_test.go

示例6: TestTutKamCallsStopKam

func TestTutKamCallsStopKam(t *testing.T) {
	if !*testCalls {
		return
	}
	engine.KillProcName("kamailio", 1000)
}
开发者ID:bhepp,项目名称:cgrates,代码行数:6,代码来源:tutorial_kam_calls_test.go

示例7: TestTutOsipsCallsStopOpensips

func TestTutOsipsCallsStopOpensips(t *testing.T) {
	if !*testCalls {
		return
	}
	engine.KillProcName("opensips", 100)
}
开发者ID:gale320,项目名称:cgrates,代码行数:6,代码来源:tutorial_osips_calls_test.go

示例8: TestTutFsCallsStopFS

func TestTutFsCallsStopFS(t *testing.T) {
	if !*testCalls {
		return
	}
	engine.KillProcName("freeswitch", 1000)
}
开发者ID:eloycoto,项目名称:cgrates,代码行数:6,代码来源:tutorial_fs_calls_test.go

示例9: TestTutOsipsCallsStartEngine

// Start CGR Engine
func TestTutOsipsCallsStartEngine(t *testing.T) {
	engine.KillProcName("cgr-engine", *waitRater)
	if err := engine.CallScript(path.Join(*dataDir, "tutorials", "osips_async", "cgrates", "etc", "init.d", "cgrates"), "start", 100); err != nil {
		t.Fatal(err)
	}
}
开发者ID:cgrates,项目名称:cgrates,代码行数:7,代码来源:tutorial_osips_calls_test.go

示例10: TestTutOsipsCallsStopOpensips

func TestTutOsipsCallsStopOpensips(t *testing.T) {
	engine.KillProcName("opensips", 100)
}
开发者ID:cgrates,项目名称:cgrates,代码行数:3,代码来源:tutorial_osips_calls_test.go

示例11: TestTutFsCallsStopFS

func TestTutFsCallsStopFS(t *testing.T) {
	engine.KillProcName("freeswitch", 1000)
}
开发者ID:cgrates,项目名称:cgrates,代码行数:3,代码来源:tutorial_fs_calls_test.go

示例12: TestTutKamCallsStopKam

func TestTutKamCallsStopKam(t *testing.T) {
	engine.KillProcName("kamailio", 1000)
}
开发者ID:cgrates,项目名称:cgrates,代码行数:3,代码来源:tutorial_kam_calls_test.go

示例13: TestTutAstCallsStopAsterisk

func TestTutAstCallsStopAsterisk(t *testing.T) {
	engine.KillProcName("asterisk", 100)
}
开发者ID:cgrates,项目名称:cgrates,代码行数:3,代码来源:tutorial_astevents_calls_test.go


注:本文中的github.com/cgrates/cgrates/engine.KillProcName函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。