events

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidCredentials = RequestError{
	Data: &gmproto.ErrorResponse{
		Type:    16,
		Message: "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
	},
}
View Source
var ErrRequestedEntityNotFound = RequestError{
	Data: &gmproto.ErrorResponse{
		Type:    5,
		Message: "Requested entity was not found.",
		Class: []*gmproto.ErrorResponse_ErrorClass{{
			Class: "type.googleapis.com/google.internal.communications.instantmessaging.v1.TachyonError",
		}},
	},
}

Functions

This section is empty.

Types

type AccountChange

type AccountChange struct {
	*gmproto.AccountChangeOrSomethingEvent
	IsFake bool
}

type AuthTokenRefreshed

type AuthTokenRefreshed struct{}

type BrowserActive

type BrowserActive struct {
	SessionID string
}

func NewBrowserActive

func NewBrowserActive(sessionID string) *BrowserActive

type ClientReady

type ClientReady struct {
	SessionID     string
	Conversations []*gmproto.Conversation
}

type GaiaLoggedOut

type GaiaLoggedOut struct{}

type HTTPError

type HTTPError struct {
	Action string
	Resp   *http.Response
	Body   []byte
}

func (HTTPError) Error

func (he HTTPError) Error() string

type HackySetActiveMayFail

type HackySetActiveMayFail struct{}

type ListenFatalError

type ListenFatalError struct {
	Error error
}

type ListenRecovered

type ListenRecovered struct{}

type ListenTemporaryError

type ListenTemporaryError struct {
	Error error
}

type NoDataReceived

type NoDataReceived struct{}

type PairSuccessful

type PairSuccessful struct {
	PhoneID string
	QRData  *gmproto.PairedData
}

type PhoneNotResponding

type PhoneNotResponding struct{}

type PhoneRespondingAgain

type PhoneRespondingAgain struct{}

type PingFailed

type PingFailed struct {
	Error      error
	ErrorCount int
}

type QR

type QR struct {
	URL string
}

type RequestError

type RequestError struct {
	Data *gmproto.ErrorResponse
	HTTP *HTTPError
}

func (RequestError) Error

func (re RequestError) Error() string

func (RequestError) Is

func (re RequestError) Is(other error) bool

func (RequestError) Unwrap

func (re RequestError) Unwrap() error

Jump to

Keyboard shortcuts

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