Documentation ¶
Index ¶
- Variables
- func NewDevice(p auth.Provider) *protos.Signature_DeviceInfo
- type Instance
- func (c *Instance) BuildCommon(init bool) []*protos.Request
- func (c *Instance) Call(ctx context.Context, requests ...*protos.Request) (*protos.ResponseEnvelope, error)
- func (c *Instance) CallWithPlatformRequests(ctx context.Context, requests []*protos.Request, ...) (*protos.ResponseEnvelope, error)
- func (c *Instance) CatchPokemon(ctx context.Context, eid uint64, spawnPoint string, iid protos.ItemId, ...) (*protos.CatchPokemonResponse, error)
- func (c *Instance) CatchPokemonRequest(eid uint64, spawnPoint string, iid protos.ItemId, nrs float64, nhp float64, ...) (*protos.Request, error)
- func (c *Instance) CheckAwardedBadges(ctx context.Context) (*protos.CheckAwardedBadgesResponse, error)
- func (c *Instance) CheckAwardedBadgesRequest() (*protos.Request, error)
- func (c *Instance) CheckChallenge(ctx context.Context) (*protos.CheckChallengeResponse, error)
- func (c *Instance) CheckChallengeRequest() (*protos.Request, error)
- func (c *Instance) ClaimCodename(ctx context.Context, codename string) (*protos.ClaimCodenameResponse, error)
- func (c *Instance) ClaimCodenameRequest(codename string) (*protos.Request, error)
- func (c *Instance) DownloadItemTemplates(ctx context.Context, paginate bool, offset int32, ts uint64) (*protos.DownloadItemTemplatesResponse, error)
- func (c *Instance) DownloadItemTemplatesRequest(paginate bool, offset int32, ts uint64) (*protos.Request, error)
- func (c *Instance) DownloadRemoteConfigVersion(ctx context.Context, platform protos.Platform, appVersion int) (*protos.DownloadSettingsResponse, error)
- func (c *Instance) DownloadRemoteConfigVersionRequest(platform protos.Platform, appVersion int) (*protos.Request, error)
- func (c *Instance) DownloadSettings(ctx context.Context, hash string) (*protos.DownloadSettingsResponse, error)
- func (c *Instance) DownloadSettingsRequest(hash string) (*protos.Request, error)
- func (c *Instance) Encounter(ctx context.Context, eid uint64, spawnPoint string) (*protos.EncounterResponse, error)
- func (c *Instance) EncounterRequest(eid uint64, spawnPoint string) (*protos.Request, error)
- func (c *Instance) EncounterTutorialComplete(ctx context.Context, id int32) (*protos.EncounterTutorialCompleteResponse, error)
- func (c *Instance) EncounterTutorialCompleteRequest(id int32) (*protos.Request, error)
- func (c *Instance) FortSearch(ctx context.Context, fortid string, lat, lon float64) (*protos.FortSearchResponse, error)
- func (c *Instance) FortSearchRequest(fortid string, lat, lon float64) (*protos.Request, error)
- func (c *Instance) GetAssetDigest(ctx context.Context, platform protos.Platform, ...) (*protos.GetAssetDigestResponse, error)
- func (c *Instance) GetAssetDigestRequest(platform protos.Platform, manufacturer, model, locale string, appVersion int) (*protos.Request, error)
- func (c *Instance) GetBuddyWalked(ctx context.Context) (*protos.GetBuddyWalkedResponse, error)
- func (c *Instance) GetBuddyWalkedRequest() (*protos.Request, error)
- func (c *Instance) GetDownloadURLs(ctx context.Context, ids []string) (*protos.GetDownloadUrlsResponse, error)
- func (c *Instance) GetDownloadURLsRequest(ids []string) (*protos.Request, error)
- func (c *Instance) GetHatchedEggs(ctx context.Context) (*protos.GetHatchedEggsResponse, error)
- func (c *Instance) GetHatchedEggsRequest() (*protos.Request, error)
- func (c *Instance) GetInventory(ctx context.Context, last int64) (*protos.GetInventoryResponse, error)
- func (c *Instance) GetInventoryRequest(last int64) (*protos.Request, error)
- func (c *Instance) GetMap(ctx context.Context) (*protos.GetMapObjectsResponse, *protos.ResponseEnvelope, error)
- func (c *Instance) GetMapObjects(ctx context.Context, cellIDs []uint64, sinceTimestampMs []int64) (*protos.GetMapObjectsResponse, error)
- func (c *Instance) GetMapObjectsRequest(cellIDs []uint64, sinceTimestampMs []int64) (*protos.Request, error)
- func (c *Instance) GetPlayer(ctx context.Context, country, language, timezone string) (*protos.GetPlayerResponse, error)
- func (c *Instance) GetPlayerProfile(ctx context.Context, name string) (*protos.GetPlayerProfileResponse, error)
- func (c *Instance) GetPlayerProfileRequest(name string) (*protos.Request, error)
- func (c *Instance) GetPlayerRequest(country, language, timezone string) (*protos.Request, error)
- func (c *Instance) Init(ctx context.Context) (*protos.GetPlayerResponse, *protos.ResponseEnvelope, error)
- func (c *Instance) LevelUpRewards(ctx context.Context, level int32) (*protos.LevelUpRewardsResponse, error)
- func (c *Instance) LevelUpRewardsRequest(level int32) (*protos.Request, error)
- func (c *Instance) ListAvatarCustomizations(ctx context.Context, genre int, slots []protos.Slot, filters []protos.Filter) (*protos.ListAvatarCustomizationsResponse, error)
- func (c *Instance) ListAvatarCustomizationsRequest(genre int, slots []protos.Slot, filters []protos.Filter) (*protos.Request, error)
- func (c Instance) MapSettings() protos.MapSettings
- func (c *Instance) MarkTutorialComplete(ctx context.Context, ids []protos.TutorialState, sendMail, sendNotif bool) (*protos.MarkTutorialCompleteResponse, error)
- func (c *Instance) MarkTutorialCompleteRequest(ids []protos.TutorialState, sendMail, sendNotif bool) (*protos.Request, error)
- func (c *Instance) RegisterBackgroundDevice(ctx context.Context, device string, devicetype string) (*protos.RegisterBackgroundDeviceResponse, error)
- func (c *Instance) RegisterBackgroundDeviceRequest(device string, devicetype string) (*protos.Request, error)
- func (c *Instance) ReleaseMultiPokemon(ctx context.Context, pids []uint64) (*protos.ReleasePokemonResponse, error)
- func (c *Instance) ReleaseMultiPokemonRequest(pids []uint64) (*protos.Request, error)
- func (c *Instance) ReleasePokemon(ctx context.Context, pid uint64) (*protos.ReleasePokemonResponse, error)
- func (c *Instance) ReleasePokemonRequest(pid uint64) (*protos.Request, error)
- func (c *Instance) SetAuthToken(authToken string)
- func (c *Instance) SetAvatar(ctx context.Context, ...) (*protos.SetAvatarResponse, error)
- func (c *Instance) SetAvatarRequest(skin, hair, shirt, pants, hat, shoes, avatar, eyes, backpack int) (*protos.Request, error)
- func (c *Instance) SetPosition(ctx context.Context, lat, lon, accu, alt float64) error
- func (c *Instance) VerifyChallenge(ctx context.Context, token string) (*protos.VerifyChallengeResponse, error)
- func (c *Instance) VerifyChallengeRequest(token string) (*protos.Request, error)
- type Options
- type Player
- func (p *Player) Accuracy() float64
- func (p *Player) Altitude() float64
- func (p *Player) Latitude() float64
- func (p *Player) Longitude() float64
- func (p *Player) SetAccuracy(l float64)
- func (p *Player) SetAltitude(l float64)
- func (p *Player) SetLatitude(l float64)
- func (p *Player) SetLongitude(l float64)
- type RPC
- type SignatureInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultPtr8 = "" DefaultLehmerSeed int64 = 16807 )
View Source
var ( Debug = false DebugGMO = false )
View Source
var ( Devices = [][]string{ {"iPhone5,1", "iPhone", "N41AP"}, {"iPhone5,2", "iPhone", "N42AP"}, {"iPhone5,3", "iPhone", "N48AP"}, {"iPhone5,4", "iPhone", "N49AP"}, {"iPhone6,1", "iPhone", "N51AP"}, {"iPhone6,2", "iPhone", "N53AP"}, {"iPhone7,1", "iPhone", "N56AP"}, {"iPhone7,2", "iPhone", "N61AP"}, {"iPhone8,1", "iPhone", "N71AP"}, {"iPhone8,2", "iPhone", "N66AP"}, {"iPhone8,4", "iPhone", "N69AP"}, {"iPhone9,1", "iPhone", "D10AP"}, {"iPhone9,2", "iPhone", "D11AP"}, {"iPhone9,3", "iPhone", "D101AP"}, {"iPhone9,4", "iPhone", "D111AP"}, } OsVersions = []string{ "8.1.1", "8.1.2", "8.1.3", "8.2", "8.3", "8.4", "8.4.1", "9.0", "9.0.1", "9.0.2", "9.1", "9.2", "9.2.1", "9.3", "9.3.1", "9.3.2", "9.3.3", "9.3.4", "9.3.5", "10.0", "10.0.1", "10.0.2", "10.0.3", "10.1", "10.1.1", } )
Functions ¶
Types ¶
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
func (*Instance) BuildCommon ¶
func (*Instance) CallWithPlatformRequests ¶
func (*Instance) CatchPokemon ¶
func (*Instance) CatchPokemonRequest ¶
func (*Instance) CheckAwardedBadges ¶
func (*Instance) CheckAwardedBadgesRequest ¶
func (*Instance) CheckChallenge ¶
func (*Instance) CheckChallengeRequest ¶
func (*Instance) ClaimCodename ¶
func (*Instance) ClaimCodenameRequest ¶
func (*Instance) DownloadItemTemplates ¶
func (*Instance) DownloadItemTemplatesRequest ¶
func (*Instance) DownloadRemoteConfigVersion ¶
func (*Instance) DownloadRemoteConfigVersionRequest ¶
func (*Instance) DownloadSettings ¶
func (*Instance) DownloadSettingsRequest ¶
func (*Instance) EncounterRequest ¶
func (*Instance) EncounterTutorialComplete ¶
func (*Instance) EncounterTutorialCompleteRequest ¶
func (*Instance) FortSearch ¶
func (*Instance) FortSearchRequest ¶
func (*Instance) GetAssetDigest ¶
func (*Instance) GetAssetDigestRequest ¶
func (*Instance) GetBuddyWalked ¶
func (*Instance) GetBuddyWalkedRequest ¶
func (*Instance) GetDownloadURLs ¶
func (*Instance) GetDownloadURLsRequest ¶
func (*Instance) GetHatchedEggs ¶
func (*Instance) GetHatchedEggsRequest ¶
func (*Instance) GetInventory ¶
func (*Instance) GetInventoryRequest ¶
func (*Instance) GetMapObjects ¶
func (*Instance) GetMapObjectsRequest ¶
func (*Instance) GetPlayerProfile ¶
func (*Instance) GetPlayerProfileRequest ¶
func (*Instance) GetPlayerRequest ¶
func (*Instance) LevelUpRewards ¶
func (*Instance) LevelUpRewardsRequest ¶
func (*Instance) ListAvatarCustomizations ¶
func (*Instance) ListAvatarCustomizationsRequest ¶
func (Instance) MapSettings ¶
func (c Instance) MapSettings() protos.MapSettings
func (*Instance) MarkTutorialComplete ¶
func (*Instance) MarkTutorialCompleteRequest ¶
func (*Instance) RegisterBackgroundDevice ¶
func (*Instance) RegisterBackgroundDeviceRequest ¶
func (*Instance) ReleaseMultiPokemon ¶
func (*Instance) ReleaseMultiPokemonRequest ¶
func (*Instance) ReleasePokemon ¶
func (*Instance) ReleasePokemonRequest ¶
func (*Instance) SetAuthToken ¶
func (*Instance) SetAvatarRequest ¶
func (*Instance) SetPosition ¶
func (*Instance) VerifyChallenge ¶
func (*Instance) VerifyChallengeRequest ¶
type Player ¶
func (*Player) SetAccuracy ¶
func (*Player) SetAltitude ¶
func (*Player) SetLatitude ¶
func (*Player) SetLongitude ¶
type RPC ¶
type RPC struct {
// contains filtered or unexported fields
}
RPC is used to communicate with the Pokémon Go API
type SignatureInfo ¶
type SignatureInfo struct {
DeviceInfo *protos.Signature_DeviceInfo
}
Click to show internal directories.
Click to hide internal directories.