util

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const AckMessagesURL = messagingBaseURL + "/AckMessages"
View Source
const AckMessagesURLGoogle = messagingBaseURLGoogle + "/AckMessages"
View Source
const ConfigURL = "https://messages.google.com/web/config"
View Source
const GetWebEncryptionKeyURL = pairingBaseURL + "/GetWebEncryptionKey"
View Source
const GoogleAPIKey = "AIzaSyCA4RsOZUFrm9whhtGosPlJLmVPnfSHKz8"
View Source
const GoogleAuthenticationURL = MessagesBaseURL + "/web/authentication"
View Source
const GoogleNetwork = "GDitto"
View Source
const GoogleTimesourceURL = MessagesBaseURL + "/web/timesource"
View Source
const MessagesBaseURL = "https://messages.google.com"
View Source
const QRCodeURLBase = "https://support.google.com/messages/?p=web_computer#?c="
View Source
const QRNetwork = "Bugle"
View Source
const ReceiveMessagesURL = messagingBaseURL + "/ReceiveMessages"
View Source
const ReceiveMessagesURLGoogle = messagingBaseURLGoogle + "/ReceiveMessages"
View Source
const RefreshPhoneRelayURL = pairingBaseURL + "/RefreshPhoneRelay"
View Source
const RegisterPhoneRelayURL = pairingBaseURL + "/RegisterPhoneRelay"
View Source
const RegisterRefreshURL = registrationBaseURL + "/RegisterRefresh"
View Source
const RevokeRelayPairingURL = pairingBaseURL + "/RevokeRelayPairing"
View Source
const SecUA = `"Google Chrome";v="123", "Chromium";v="123", "Not-A.Brand";v="24"`
View Source
const SecUAMobile = "?1"
View Source
const SendMessageURL = messagingBaseURL + "/SendMessage"
View Source
const SendMessageURLGoogle = messagingBaseURLGoogle + "/SendMessage"
View Source
const SignInGaiaURL = registrationBaseURL + "/SignInGaia"
View Source
const UAPlatform = "Android"
View Source
const UploadMediaURL = instantMessagingBaseURL + "/upload"
View Source
const UserAgent = "Mozilla/5.0 (Linux; Android 14) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
View Source
const XUserAgent = "grpc-web-javascript/0.1"

Variables

View Source
var BrowserDetailsMessage = &gmproto.BrowserDetails{
	UserAgent:   UserAgent,
	BrowserType: gmproto.BrowserType_OTHER,
	OS:          "libgm",
	DeviceType:  gmproto.DeviceType_TABLET,
}
View Source
var ConfigMessage = &gmproto.ConfigVersion{
	Year:  2024,
	Month: 9,
	Day:   3,
	V1:    4,
	V2:    6,
}

Functions

func BuildRelayHeaders

func BuildRelayHeaders(req *http.Request, contentType string, accept string)

func BuildUploadHeaders

func BuildUploadHeaders(req *http.Request, metadata string)

func GenerateTmpID

func GenerateTmpID() string

func NewMediaUploadHeaders

func NewMediaUploadHeaders(imageSize string, command string, uploadOffset string, imageContentType string, protocol string) *http.Header

Types

This section is empty.

Jump to

Keyboard shortcuts

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