connection

package
v0.0.0-...-e4b8ef3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KikProxyConnection

type KikProxyConnection struct {
	UserId   string
	IsAuthed bool

	ClientConn  net.Conn
	ClientInput node.NodeInputStream

	KikConn  net.Conn
	KikInput node.NodeInputStream

	RateLimiter *ratelimit.KikRateLimiter

	IsConnected atomic.Bool

	Logger *XmppLogger
}

func (*KikProxyConnection) Run

func (c *KikProxyConnection) Run()

This routine blocks until the connection is finished.

type XmppLogger

type XmppLogger struct {
	Writer io.WriteCloser
}

func NewXmppLogger

func NewXmppLogger(outputFile string) (*XmppLogger, error)

func (XmppLogger) Close

func (x XmppLogger) Close() error

func (XmppLogger) OnNewStanza

func (x XmppLogger) OnNewStanza(data []byte, isOutgoing bool) error

Jump to

Keyboard shortcuts

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