socket

package
v0.0.0-...-5c5d71a Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SocketPath string

SocketPath is the path of socket file

Functions

func Server

func Server() error

Client create a socket server

func Stop

func Stop()

Types

type Dial

type Dial struct {
	// contains filtered or unexported fields
}

Dial implement connection and feature around socket communication

func Client

func Client() *Dial

Client create a socket client

func (*Dial) Close

func (d *Dial) Close()

Close connection

func (*Dial) Read

func (d *Dial) Read() *message.Response

Read response from server

func (*Dial) Send

func (d *Dial) Send(m *message.Message)

Send a Message to server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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