graphql

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 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 API

type API struct {
	Handler echo.HandlerFunc
	// contains filtered or unexported fields
}

func NewAPI

func NewAPI(s storage.Storage) (*API, error)

type Resolver

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

func (*Resolver) Comment

func (r *Resolver) Comment(args struct{ ID string }) (*commentResolver, error)

func (*Resolver) Comments

func (r *Resolver) Comments() ([]*commentResolver, error)

func (*Resolver) CreateComment

func (r *Resolver) CreateComment(args struct{ Input newComment }) (*commentResolver, error)

func (*Resolver) DeleteComment

func (r *Resolver) DeleteComment(args struct{ ID string }) (string, error)

func (*Resolver) UpdateComment

func (r *Resolver) UpdateComment(args struct{ Input updatedComment }) (*commentResolver, error)

Jump to

Keyboard shortcuts

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