epicstorecommunicatorserver

package
v0.0.0-...-71f002b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	GraphQLClient *graphql.Client
}

Server implements the Greeter service

func (*Server) IsAlive

func (s *Server) IsAlive(ctx context.Context, empty *pb.EmptyReq) (resp *pb.IsAliveResp, err error)

IsAlive is a ping function to be used to check if the server can make a simple response. It is mainly used to detect if the server has shut down completely

func (*Server) PingForFreeGames

func (s *Server) PingForFreeGames(ctx context.Context, empty *pb.EmptyReq) (resp *pb.FreeEpicStoreGamesResp, err error)

PingForFreeGames makes a graphql call to the epic store api and asks for data about the latest free games. It returns the names of the games and a bit of data that partains to the promotion

Jump to

Keyboard shortcuts

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