當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。