ipc

package
v0.0.0-...-40a491f Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIpcPath

func GetIpcPath() string

GetIpcPath chooses the correct directory to the ipc socket and returns it

Types

type Socket

type Socket struct {
	net.Conn
}

Socket extends net.Conn methods

func NewConnection

func NewConnection() (*Socket, error)

NewConnection opens the discord-ipc-0 unix socket

func (*Socket) Read

func (socket *Socket) Read() (string, error)

Read the socket response

func (*Socket) Send

func (socket *Socket) Send(opcode int, payload string) (string, error)

Send opcode and payload to the unix socket

Jump to

Keyboard shortcuts

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