ptc

package
v0.0.0-...-83b534f Latest Latest
Warning

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

Go to latest
Published: May 8, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider contains data about and manages the session with the Pokémon Trainer's Club

func NewProvider

func NewProvider(username, password string) *Provider

NewProvider constructs a Pokémon Trainer's Club auth provider instance

func (*Provider) Debug

func (p *Provider) Debug(m interface{})

func (*Provider) DebugMsg

func (p *Provider) DebugMsg(format string, a ...interface{})

func (*Provider) GetUsername

func (p *Provider) GetUsername() string

func (*Provider) Login

func (p *Provider) Login(ctx context.Context) (string, error)

Login retrieves an access token from the Pokémon Trainer's Club

func (*Provider) SetDebug

func (p *Provider) SetDebug(d bool)

func (*Provider) Type

func (p *Provider) Type() string

Jump to

Keyboard shortcuts

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