resolvers

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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
}

func (*CoordinatesResolver) Lat

func (*CoordinatesResolver) Lon

type Int32

type Int32 struct {
	Value int32
}

func (Int32) ImplementsGraphQLType

func (_ Int32) ImplementsGraphQLType(name string) bool

func (*Int32) UnmarshalGraphQL

func (t *Int32) UnmarshalGraphQL(input interface{}) error

type Int64

type Int64 struct {
	Value int64
}

func (Int64) ImplementsGraphQLType

func (_ Int64) ImplementsGraphQLType(name string) bool

func (*Int64) UnmarshalGraphQL

func (t *Int64) UnmarshalGraphQL(input interface{}) error

type LocationResolver

type LocationResolver struct {
	// contains filtered or unexported fields
}

func (*LocationResolver) Country

func (lr *LocationResolver) Country(ctx context.Context) *string

func (*LocationResolver) Name

func (lr *LocationResolver) Name(ctx context.Context) *string

func (*LocationResolver) Position

type PlannedTransportScheduleResolver

type PlannedTransportScheduleResolver struct {
	// contains filtered or unexported fields
}

func (*PlannedTransportScheduleResolver) Arrival

func (*PlannedTransportScheduleResolver) Departure

func (planr *PlannedTransportScheduleResolver) Departure(ctx context.Context) *string

func (*PlannedTransportScheduleResolver) Location

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)

func (*TransportETAResolver) Reason

func (etar *TransportETAResolver) Reason(ctx context.Context) *string

type TransportResolver

type TransportResolver struct {
	// contains filtered or unexported fields
}

func (*TransportResolver) Etas

func (*TransportResolver) Id

func (tr *TransportResolver) Id(ctx context.Context) Int32

func (*TransportResolver) Operator

func (tr *TransportResolver) Operator(ctx context.Context) *string

func (*TransportResolver) Planned

type UserIdResolver

type UserIdResolver struct {
	// contains filtered or unexported fields
}

func (*UserIdResolver) Uid

func (uidr *UserIdResolver) Uid(ctx context.Context) int32

type UserResolver

type UserResolver struct {
	// contains filtered or unexported fields
}

func (*UserResolver) Id

func (ur *UserResolver) Id(ctx context.Context) Int32

func (*UserResolver) Name

func (ur *UserResolver) Name(ctx context.Context) *string

func (*UserResolver) Transports

func (ur *UserResolver) Transports(ctx context.Context) (*[]*TransportResolver, error)

Jump to

Keyboard shortcuts

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