示例#1
0
func NewTestingServer() *tas.TASServer {
	c := tas.NewDefaultTASConfig()
	svr, err := tas.NewTASServer(c)
	if err != nil {
		log.Fatal(err)
	}
	return svr
}
示例#2
0
func main() {
	tasConfig := tas.NewDefaultTASConfig()
	svr, err := tas.NewTASServer(tasConfig)
	if err != nil {
		log.Println("Failed to start TAS:", err)
		return
	}
	svr.Run()
}