message

package
v0.0.0-...-4aa4c14 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Compress      bool                     `json:"compress"`
	Data          string                   `json:"data"`
	OriginalSize  int                      `json:"original_size"`
	SessionCrypto bool                     `json:"session_crypto"`
	SessionKey    *string                  `json:"session_key"`
	MData         []byte                   `json:"-"` // message data
	MsgID         tppmessage.ETppMessageID `json:"-"`

	IsRequest bool `json:"-"`

	UserID     int               `json:"-"`
	PlayerID   int               `json:"-"`
	PlatformID uint64            `json:"-"` // steamID64, psn, xboneID
	Platform   platform.Platform `json:"-"` // steam, ps4, xbox etc
	// contains filtered or unexported fields
}

func (*Message) Decode

func (m *Message) Decode(src []byte) error

func (*Message) Decompress

func (m *Message) Decompress() error

func (*Message) DoCompress

func (m *Message) DoCompress() error

func (*Message) Encode

func (m *Message) Encode() ([]byte, error)

func (*Message) GetDataType

func (m *Message) GetDataType() error

func (*Message) ToFile

func (m *Message) ToFile(dir string) error

func (*Message) WithCoder

func (m *Message) WithCoder(c *coder.Coder)

Jump to

Keyboard shortcuts

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