Example #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
}
Example #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
}
Example #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
}
Example #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
}
Example #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
}
Example #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
}
Example #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
}
Example #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
}