Пример #1
0
func makeServer() trib.Server {
	if !*lab {
		return ref.NewServer()
	}

	rc, e := trib.LoadRC(*frc)
	ne(e)

	c := triblab.NewBinClient(rc.Backs)

	return triblab.NewFront(c)
}
Пример #2
0
// Makes a front end that talks to one single backend
// Used in Lab1
func MakeFrontSingle(back string) Server {
	return triblab.NewFront(triblab.NewBinClient([]string{back}))
}