resolver

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: 68 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OperationalContextVariable added in v0.2.0

type OperationalContextVariable map[string]interface{}

!!! WARNING !!! The code below was going to be deleted when updating resolvers. It has been copied here so you have one last chance to move it out of harms way if you want. There are two reasons this happens:

  • When renaming or deleting a resolver the old code will be put in here. You can safely delete it when you're done.
  • You have helper methods in this file. Move them out to keep these resolver files clean.

type Repository

type Repository interface{}

type Resolver

type Resolver struct {
	Repository
	FerpService                   ferp.Ferp
	NotificationService           notification.Notification
	OcpiService                   ocpi.Ocpi
	Emailer                       email.Emailer
	AccountResolver               *account.AccountResolver
	AuthenticationResolver        *authentication.AuthenticationResolver
	BusinessDetailRepository      businessdetail.BusinessDetailRepository
	ChannelRequestRepository      channelrequest.ChannelRequestRepository
	ConnectorRepository           connector.ConnectorRepository
	CredentialRepository          credential.CredentialRepository
	DisplayTextRepository         displaytext.DisplayTextRepository
	EmailSubscriptionRepository   emailsubscription.EmailSubscriptionRepository
	EnergyMixRepository           energymix.EnergyMixRepository
	EvseRepository                evse.EvseRepository
	ImageRepository               image.ImageRepository
	InvoiceRequestRepository      invoicerequest.InvoiceRequestRepository
	LocationRepository            location.LocationRepository
	NodeRepository                node.NodeRepository
	OpeningTimeRepository         openingtime.OpeningTimeRepository
	ReferralRepository            referral.ReferralRepository
	PartyRepository               party.PartyRepository
	PendingNotificationRepository pendingnotification.PendingNotificationRepository
	PromotionRepository           promotion.PromotionRepository
	SessionRepository             session.SessionRepository
	TariffRepository              tariff.TariffRepository
	TokenAuthorizationRepository  tokenauthorization.TokenAuthorizationRepository
	TokenResolver                 *token.TokenResolver
	UserRepository                user.UserRepository
	// contains filtered or unexported fields
}

func NewResolver

func NewResolver(repositoryService *db.RepositoryService) *Resolver

func NewResolverWithServices added in v0.1.0

func NewResolverWithServices(repositoryService *db.RepositoryService, ferpService ferp.Ferp, notificationService notification.Notification, ocpiService ocpi.Ocpi) *Resolver

func (*Resolver) BusinessDetail added in v0.1.0

func (r *Resolver) BusinessDetail() graph.BusinessDetailResolver

BusinessDetail returns graph.BusinessDetailResolver implementation.

func (*Resolver) ChannelRequest added in v0.1.0

func (r *Resolver) ChannelRequest() graph.ChannelRequestResolver

ChannelRequest returns graph.ChannelRequestResolver implementation.

func (*Resolver) Connector added in v0.1.0

func (r *Resolver) Connector() graph.ConnectorResolver

Connector returns graph.ConnectorResolver implementation.

func (*Resolver) CountryAccount added in v0.3.2

func (r *Resolver) CountryAccount() graph.CountryAccountResolver

CountryAccount returns graph.CountryAccountResolver implementation.

func (*Resolver) ElementRestriction added in v0.1.0

func (r *Resolver) ElementRestriction() graph.ElementRestrictionResolver

ElementRestriction returns graph.ElementRestrictionResolver implementation.

func (*Resolver) EnergyMix added in v0.1.0

func (r *Resolver) EnergyMix() graph.EnergyMixResolver

EnergyMix returns graph.EnergyMixResolver implementation.

func (*Resolver) EnergySource added in v0.1.0

func (r *Resolver) EnergySource() graph.EnergySourceResolver

EnergySource returns graph.EnergySourceResolver implementation.

func (*Resolver) EnvironmentalImpact added in v0.1.0

func (r *Resolver) EnvironmentalImpact() graph.EnvironmentalImpactResolver

EnvironmentalImpact returns graph.EnvironmentalImpactResolver implementation.

func (*Resolver) Evse added in v0.1.0

func (r *Resolver) Evse() graph.EvseResolver

Evse returns graph.EvseResolver implementation.

func (*Resolver) ExceptionalPeriod added in v0.1.0

func (r *Resolver) ExceptionalPeriod() graph.ExceptionalPeriodResolver

ExceptionalPeriod returns graph.ExceptionalPeriodResolver implementation.

func (*Resolver) GraphQLHandler

func (r *Resolver) GraphQLHandler() http.HandlerFunc

func (*Resolver) Image added in v0.1.0

func (r *Resolver) Image() graph.ImageResolver

Image returns graph.ImageResolver implementation.

func (*Resolver) InvoiceRequest added in v0.3.2

func (r *Resolver) InvoiceRequest() graph.InvoiceRequestResolver

InvoiceRequest returns graph.InvoiceRequestResolver implementation.

func (*Resolver) Location added in v0.1.0

func (r *Resolver) Location() graph.LocationResolver

Location returns graph.LocationResolver implementation.

func (*Resolver) Mutation

func (r *Resolver) Mutation() graph.MutationResolver

Mutation returns graph.MutationResolver implementation.

func (*Resolver) Node added in v0.1.0

func (r *Resolver) Node() graph.NodeResolver

Node returns graph.NodeResolver implementation.

func (*Resolver) OpeningTime added in v0.1.0

func (r *Resolver) OpeningTime() graph.OpeningTimeResolver

OpeningTime returns graph.OpeningTimeResolver implementation.

func (*Resolver) PlaygroundQLHandler

func (r *Resolver) PlaygroundQLHandler(endpoint string) http.HandlerFunc

func (*Resolver) PriceComponent added in v0.1.0

func (r *Resolver) PriceComponent() graph.PriceComponentResolver

PriceComponent returns graph.PriceComponentResolver implementation.

func (*Resolver) Query

func (r *Resolver) Query() graph.QueryResolver

Query returns graph.QueryResolver implementation.

func (*Resolver) RegularHour added in v0.1.0

func (r *Resolver) RegularHour() graph.RegularHourResolver

RegularHour returns graph.RegularHourResolver implementation.

func (*Resolver) Session added in v0.1.0

func (r *Resolver) Session() graph.SessionResolver

Session returns graph.SessionResolver implementation.

func (*Resolver) SessionInvoice added in v0.1.0

func (r *Resolver) SessionInvoice() graph.SessionInvoiceResolver

SessionInvoice returns graph.SessionInvoiceResolver implementation.

func (*Resolver) SessionUpdate added in v0.4.1

func (r *Resolver) SessionUpdate() graph.SessionUpdateResolver

SessionUpdate returns graph.SessionUpdateResolver implementation.

func (*Resolver) StatusSchedule added in v0.1.0

func (r *Resolver) StatusSchedule() graph.StatusScheduleResolver

StatusSchedule returns graph.StatusScheduleResolver implementation.

func (*Resolver) Tariff added in v0.1.0

func (r *Resolver) Tariff() graph.TariffResolver

Tariff returns graph.TariffResolver implementation.

func (*Resolver) Token added in v0.3.2

func (r *Resolver) Token() graph.TokenResolver

Token returns graph.TokenResolver implementation.

func (*Resolver) TokenAuthorization added in v0.3.2

func (r *Resolver) TokenAuthorization() graph.TokenAuthorizationResolver

TokenAuthorization returns graph.TokenAuthorizationResolver implementation.

func (*Resolver) User added in v0.3.2

func (r *Resolver) User() graph.UserResolver

User returns graph.UserResolver implementation.

Jump to

Keyboard shortcuts

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