observer

package
v2.3.5 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DigResponseData

func DigResponseData(response *gcdmessage.Message) []byte

DigResponseData returns the response data if there is any

Types

type IgnoreMessagesObserver

type IgnoreMessagesObserver struct{}

func NewIgnoreMessagesObserver

func NewIgnoreMessagesObserver() *IgnoreMessagesObserver

func (*IgnoreMessagesObserver) Event

func (observer *IgnoreMessagesObserver) Event(method string, jsonData []byte)

func (*IgnoreMessagesObserver) Request

func (observer *IgnoreMessagesObserver) Request(ID int64, method string, jsonData []byte)

func (*IgnoreMessagesObserver) Response

func (observer *IgnoreMessagesObserver) Response(ID int64, method string, jsonData []byte, err error)

type MessageObserver

type MessageObserver interface {
	Request(ID int64, method string, jsonData []byte)
	Response(ID int64, method string, jsonData []byte, err error)
	Event(method string, data []byte)
}

Jump to

Keyboard shortcuts

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