warden

package
v0.0.0-...-8bebc79 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2016 License: MIT Imports: 18 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mux

func Mux(addr string) (http.Handler, error)

func NewService

func NewService(opts Opts) (srv.Service, error)

Types

type Client

type Client struct {
	pbf.WardenClient
	*grpc.ClientConn
	// contains filtered or unexported fields
}

func Dial

func Dial(addr string) (*Client, error)

type Opts

type Opts struct {
	srv.Opts
	Registry string
	Pokedex  string
	// contains filtered or unexported fields
}

func (Opts) PokedexClient

func (o Opts) PokedexClient() (*pokedex.Client, error)

func (Opts) RegistryClient

func (o Opts) RegistryClient() (*registry.Client, error)

type Service

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

Server API for Safari service

func (*Service) Encounter

func (sf *Service) Encounter(stream pbf.Warden_EncounterServer) error

Encounter will attempt to catch the pokemon

If caught, this pokemon will be deposited into the Trainer's PC

func (*Service) Enter

func (sf *Service) Enter(ctx context.Context, req *pbf.Ticket) (*pbf.Ticket, error)

Enter might add a pokemon to the event

A pokemon will be added to the event and timestmap set if one is encountered

func (*Service) Listen

func (s *Service) Listen() error

func (Service) Name

func (s Service) Name() string

func (Service) Version

func (s Service) Version() string

Jump to

Keyboard shortcuts

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