Beispiel #1
0
// newServer returns a server with initialization data loaded.
func newServer() *rateServer {
	s := &rateServer{serverName: "service.rate"}
	s.loadRates(data.MustAsset("data/rates.json"))
	return s
}
// newServer returns a server with initialization data loaded.
func newServer() *profileServer {
	s := new(profileServer)
	s.loadProfiles(data.MustAsset("data/profiles.json"))
	return s
}
// newServer returns a server with initialization data loaded.
func newServer() *authServer {
	s := new(authServer)
	s.loadCustomers(data.MustAsset("data/customers.json"))
	return s
}
// newServer returns a server with initialization data loaded.
func newServer() *geoServer {
	s := new(geoServer)
	s.loadLocations(data.MustAsset("data/locations.json"))
	return s
}
Beispiel #5
0
// newServer returns a server with initialization data loaded.
func newServer() *rateServer {
	s := new(rateServer)
	s.loadRates(data.MustAsset("data/rates.json"))
	return s
}
Beispiel #6
0
// newServer returns a server with initialization data loaded.
func newServer() *profileServer {
	s := &profileServer{serverName: "service.profile"}
	s.loadProfiles(data.MustAsset("data/profiles.json"))
	return s
}
Beispiel #7
0
// newServer returns a server with initialization data loaded.
func newServer() *geoServer {
	s := &geoServer{serverName: "service.geo"}
	s.loadLocations(data.MustAsset("data/locations.json"))
	return s
}
Beispiel #8
0
// newServer returns a server with initialization data loaded.
func newServer() *authServer {
	s := &authServer{serverName: "service.auth"}
	s.loadCustomers(data.MustAsset("data/customers.json"))
	return s
}