Documentation ¶
Index ¶
- type CoordinatesResolver
- type Int32
- type Int64
- type LocationResolver
- type PlannedTransportScheduleResolver
- type QueryDB
- type Resolver
- type TransportETAResolver
- func (etar *TransportETAResolver) Arrival(ctx context.Context) *string
- func (etar *TransportETAResolver) Departure(ctx context.Context) *string
- func (etar *TransportETAResolver) Location(ctx context.Context) (*LocationResolver, error)
- func (etar *TransportETAResolver) Reason(ctx context.Context) *string
- type TransportResolver
- func (tr *TransportResolver) Etas(ctx context.Context) (*[]*TransportETAResolver, error)
- func (tr *TransportResolver) Id(ctx context.Context) Int32
- func (tr *TransportResolver) Operator(ctx context.Context) *string
- func (tr *TransportResolver) Planned(ctx context.Context) (*[]*PlannedTransportScheduleResolver, error)
- type UserIdResolver
- type UserResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoordinatesResolver ¶
type CoordinatesResolver struct {
// contains filtered or unexported fields
}
type Int32 ¶
type Int32 struct {
Value int32
}
func (Int32) ImplementsGraphQLType ¶
func (*Int32) UnmarshalGraphQL ¶
type Int64 ¶
type Int64 struct {
Value int64
}
func (Int64) ImplementsGraphQLType ¶
func (*Int64) UnmarshalGraphQL ¶
type LocationResolver ¶
type LocationResolver struct {
// contains filtered or unexported fields
}
func (*LocationResolver) Position ¶
func (lr *LocationResolver) Position(ctx context.Context) (*CoordinatesResolver, error)
type PlannedTransportScheduleResolver ¶
type PlannedTransportScheduleResolver struct {
// contains filtered or unexported fields
}
func (*PlannedTransportScheduleResolver) Arrival ¶
func (planr *PlannedTransportScheduleResolver) Arrival(ctx context.Context) *string
func (*PlannedTransportScheduleResolver) Departure ¶
func (planr *PlannedTransportScheduleResolver) Departure(ctx context.Context) *string
func (*PlannedTransportScheduleResolver) Location ¶
func (planr *PlannedTransportScheduleResolver) Location(ctx context.Context) (*LocationResolver, error)
type QueryDB ¶
type QueryDB struct {
DB *libdb.PostgresDB
}
type Resolver ¶
type Resolver struct {
DB *QueryDB
}
func (*Resolver) QueryGetUser ¶
func (r *Resolver) QueryGetUser(ctx context.Context, args struct{ In *queryschema.UserID }) (*UserResolver, error)
type TransportETAResolver ¶
type TransportETAResolver struct {
// contains filtered or unexported fields
}
func (*TransportETAResolver) Arrival ¶
func (etar *TransportETAResolver) Arrival(ctx context.Context) *string
func (*TransportETAResolver) Departure ¶
func (etar *TransportETAResolver) Departure(ctx context.Context) *string
func (*TransportETAResolver) Location ¶
func (etar *TransportETAResolver) Location(ctx context.Context) (*LocationResolver, error)
type TransportResolver ¶
type TransportResolver struct {
// contains filtered or unexported fields
}
func (*TransportResolver) Etas ¶
func (tr *TransportResolver) Etas(ctx context.Context) (*[]*TransportETAResolver, error)
func (*TransportResolver) Operator ¶
func (tr *TransportResolver) Operator(ctx context.Context) *string
func (*TransportResolver) Planned ¶
func (tr *TransportResolver) Planned(ctx context.Context) (*[]*PlannedTransportScheduleResolver, error)
type UserIdResolver ¶
type UserIdResolver struct {
// contains filtered or unexported fields
}
type UserResolver ¶
type UserResolver struct {
// contains filtered or unexported fields
}
func (*UserResolver) Transports ¶
func (ur *UserResolver) Transports(ctx context.Context) (*[]*TransportResolver, error)
Click to show internal directories.
Click to hide internal directories.