Documentation
¶
Index ¶
- func NewCreateAdditionalGeoLocationParams(additionalGeoLocationDto *coreDto.AdditionalGeoLocationDto, locationID int64) db.CreateAdditionalGeoLocationParams
- func NewCreateLocationParams(locationDto *dto.LocationDto) db.CreateLocationParams
- type LocationResolver
- func (r *LocationResolver) CreateAdditionalGeoLocationDto(ctx context.Context, additionalGeoLocation db.AdditionalGeoLocation) *coreDto.AdditionalGeoLocationDto
- func (r *LocationResolver) CreateAdditionalGeoLocationListDto(ctx context.Context, additionalGeoLocations []db.AdditionalGeoLocation) []*coreDto.AdditionalGeoLocationDto
- func (r *LocationResolver) CreateFacilityListDto(ctx context.Context, facilities []db.Facility) []*string
- func (r *LocationResolver) CreateLocationDto(ctx context.Context, location db.Location) *dto.LocationDto
- func (r *LocationResolver) CreateLocationListDto(ctx context.Context, locations []db.Location) []render.Renderer
- func (r *LocationResolver) GetLastLocationByIdentity(ctx context.Context, credentialID *int64, countryCode *string, partyID *string) (db.Location, error)
- func (r *LocationResolver) GetLocation(rw http.ResponseWriter, request *http.Request)
- func (r *LocationResolver) LocationContext(syncService *sync.SyncService) func(http.Handler) http.Handler
- func (r *LocationResolver) ReplaceLocation(ctx context.Context, credential db.Credential, uid string, ...) *db.Location
- func (r *LocationResolver) ReplaceLocationByIdentifier(ctx context.Context, credential db.Credential, countryCode *string, ...) *db.Location
- func (r *LocationResolver) ReplaceLocations(ctx context.Context, credential db.Credential, locationsDto []*dto.LocationDto)
- func (r *LocationResolver) ReplaceLocationsByIdentifier(ctx context.Context, credential db.Credential, countryCode *string, ...)
- func (r *LocationResolver) SyncByIdentifier(ctx context.Context, credential db.Credential, fullSync bool, ...)
- func (r *LocationResolver) UnmarshalPullDto(body io.ReadCloser) (*dto.OcpiLocationsDto, error)
- func (r *LocationResolver) UnmarshalPushDto(body io.ReadCloser) (*dto.LocationDto, error)
- func (r *LocationResolver) UpdateLocation(rw http.ResponseWriter, request *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCreateAdditionalGeoLocationParams ¶
func NewCreateAdditionalGeoLocationParams(additionalGeoLocationDto *coreDto.AdditionalGeoLocationDto, locationID int64) db.CreateAdditionalGeoLocationParams
func NewCreateLocationParams ¶
func NewCreateLocationParams(locationDto *dto.LocationDto) db.CreateLocationParams
Types ¶
type LocationResolver ¶
type LocationResolver struct { Repository location.LocationRepository OcpiService *transportation.OcpiService BusinessDetailResolver *businessdetail.BusinessDetailResolver DisplayTextResolver *displaytext.DisplayTextResolver EnergyMixResolver *energymix.EnergyMixResolver EvseResolver *evse.EvseResolver GeoLocationResolver *geolocation.GeoLocationResolver ImageResolver *image.ImageResolver OpeningTimeResolver *openingtime.OpeningTimeResolver PartyResolver *party.PartyResolver TariffResolver *tariff.TariffResolver VersionDetailResolver *versiondetail.VersionDetailResolver }
func NewResolver ¶
func NewResolver(repositoryService *db.RepositoryService, services *service.ServiceResolver) *LocationResolver
func (*LocationResolver) CreateAdditionalGeoLocationDto ¶
func (r *LocationResolver) CreateAdditionalGeoLocationDto(ctx context.Context, additionalGeoLocation db.AdditionalGeoLocation) *coreDto.AdditionalGeoLocationDto
func (*LocationResolver) CreateAdditionalGeoLocationListDto ¶
func (r *LocationResolver) CreateAdditionalGeoLocationListDto(ctx context.Context, additionalGeoLocations []db.AdditionalGeoLocation) []*coreDto.AdditionalGeoLocationDto
func (*LocationResolver) CreateFacilityListDto ¶
func (*LocationResolver) CreateLocationDto ¶
func (r *LocationResolver) CreateLocationDto(ctx context.Context, location db.Location) *dto.LocationDto
func (*LocationResolver) CreateLocationListDto ¶
func (*LocationResolver) GetLastLocationByIdentity ¶
func (*LocationResolver) GetLocation ¶
func (r *LocationResolver) GetLocation(rw http.ResponseWriter, request *http.Request)
func (*LocationResolver) LocationContext ¶
func (r *LocationResolver) LocationContext(syncService *sync.SyncService) func(http.Handler) http.Handler
func (*LocationResolver) ReplaceLocation ¶
func (r *LocationResolver) ReplaceLocation(ctx context.Context, credential db.Credential, uid string, locationDto *dto.LocationDto) *db.Location
func (*LocationResolver) ReplaceLocationByIdentifier ¶
func (r *LocationResolver) ReplaceLocationByIdentifier(ctx context.Context, credential db.Credential, countryCode *string, partyID *string, uid string, locationDto *dto.LocationDto) *db.Location
func (*LocationResolver) ReplaceLocations ¶
func (r *LocationResolver) ReplaceLocations(ctx context.Context, credential db.Credential, locationsDto []*dto.LocationDto)
func (*LocationResolver) ReplaceLocationsByIdentifier ¶
func (r *LocationResolver) ReplaceLocationsByIdentifier(ctx context.Context, credential db.Credential, countryCode *string, partyID *string, locationsDto []*dto.LocationDto)
func (*LocationResolver) SyncByIdentifier ¶ added in v0.3.1
func (r *LocationResolver) SyncByIdentifier(ctx context.Context, credential db.Credential, fullSync bool, lastUpdated *time.Time, countryCode *string, partyID *string)
func (*LocationResolver) UnmarshalPullDto ¶
func (r *LocationResolver) UnmarshalPullDto(body io.ReadCloser) (*dto.OcpiLocationsDto, error)
func (*LocationResolver) UnmarshalPushDto ¶
func (r *LocationResolver) UnmarshalPushDto(body io.ReadCloser) (*dto.LocationDto, error)
func (*LocationResolver) UpdateLocation ¶
func (r *LocationResolver) UpdateLocation(rw http.ResponseWriter, request *http.Request)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.