Ejemplo n.º 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
}
Ejemplo n.º 2
0
// newServer returns a server with initialization data loaded.
func newServer() *profileServer {
	s := new(profileServer)
	s.loadProfiles(data.MustAsset("data/profiles.json"))
	return s
}
Ejemplo n.º 3
0
// newServer returns a server with initialization data loaded.
func newServer() *authServer {
	s := new(authServer)
	s.loadCustomers(data.MustAsset("data/customers.json"))
	return s
}
Ejemplo n.º 4
0
// newServer returns a server with initialization data loaded.
func newServer() *geoServer {
	s := new(geoServer)
	s.loadLocations(data.MustAsset("data/locations.json"))
	return s
}
Ejemplo n.º 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
}
Ejemplo n.º 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
}
Ejemplo n.º 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
}
Ejemplo n.º 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
}