location

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2023 License: MIT Imports: 34 Imported by: 0

Documentation

Index

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 (r *LocationResolver) CreateFacilityListDto(ctx context.Context, facilities []db.Facility) []*string

func (*LocationResolver) CreateLocationDto

func (r *LocationResolver) CreateLocationDto(ctx context.Context, location db.Location) *dto.LocationDto

func (*LocationResolver) CreateLocationListDto

func (r *LocationResolver) CreateLocationListDto(ctx context.Context, locations []db.Location) []render.Renderer

func (*LocationResolver) GetLastLocationByIdentity

func (r *LocationResolver) GetLastLocationByIdentity(ctx context.Context, credentialID *int64, countryCode *string, partyID *string) (db.Location, error)

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL