예제 #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
}
예제 #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
}
예제 #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
}
예제 #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
}
예제 #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
}
예제 #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
}
예제 #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
}
예제 #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
}