resolver

package
v0.0.0-...-29b5bfc Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewPodcastInput

type NewPodcastInput struct {
	URL string
}

type Resolver

type Resolver struct {
	UserService         *service.User
	PodcastService      *service.Podcast
	EpisodeService      *service.Episode
	AuthService         *service.AuthService
	SubscriptionService *service.Subscription
}

func (*Resolver) AddNewPodcast

func (r *Resolver) AddNewPodcast(ctx context.Context, args NewPodcastInput) (*podcastResolver, error)

func (*Resolver) CreateUser

func (r *Resolver) CreateUser(args UserInput) (string, error)

func (*Resolver) Login

func (r *Resolver) Login(args UserInput) (string, error)

func (*Resolver) Podcasts

func (r *Resolver) Podcasts(ctx context.Context) (*[]*podcastResolver, error)

func (*Resolver) Subscribe

func (r *Resolver) Subscribe(ctx context.Context, args SubscribeInput) (*podcastResolver, error)

func (*Resolver) Subscriptions

func (r *Resolver) Subscriptions(ctx context.Context) (*[]*podcastResolver, error)

type SubscribeInput

type SubscribeInput struct {
	ID int32
}

type UserInput

type UserInput struct {
	Name     string
	Email    string
	Password string
}

Jump to

Keyboard shortcuts

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