payload

package
v0.0.0-...-2df0e36 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthPayloads

type AuthPayloads struct{}

func (*AuthPayloads) RefreshAuth

func (p *AuthPayloads) RefreshAuth(refreshToken string) protoreflect.ProtoMessage

func (*AuthPayloads) SendSMS

func (p *AuthPayloads) SendSMS(number string) protoreflect.ProtoMessage

func (*AuthPayloads) ValidateEmailOTP

func (p *AuthPayloads) ValidateEmailOTP(otp string, refreshToken string) protoreflect.ProtoMessage

func (*AuthPayloads) VerifyOTP

func (p *AuthPayloads) VerifyOTP(otp string, phone string) protoreflect.ProtoMessage

type Buckets

type Buckets struct {
	DeviceId    string   `json:"device_id"`
	Experiments []string `json:"experiments"`
}

type GetUpdates

type GetUpdates struct {
	Nudge            bool   `json:"nudge,omitempty"`
	LastActivityDate string `json:"last_activity_date,omitempty"`
}

type MessagePayload

type MessagePayload struct {
	Message string `json:"message,omitempty"`
	Type    string `json:"type,omitempty"` // "gif"
	GifId   string `json:"gif_id,omitempty"`
}

func (*MessagePayload) ToJSON

func (m *MessagePayload) ToJSON() ([]byte, error)

type SocketPayloads

type SocketPayloads struct{}

func (*SocketPayloads) StartTypingPayload

func (p *SocketPayloads) StartTypingPayload(userId string, matchId string) ([]byte, error)

Jump to

Keyboard shortcuts

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