socket

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 6 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 {
	Type MessageType `json:"type"`
}

type MessageType

type MessageType string

Add message types

const (
	Ping MessageType = "ping"
	Pong MessageType = "pong"
)

type UnixSocketServer

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

func Start

func Start(path string, vaultTxChan <-chan *types.VaultTransaction) (*UnixSocketServer, error)

func (*UnixSocketServer) Close

func (s *UnixSocketServer) Close() error

func (*UnixSocketServer) ConnectionCount

func (s *UnixSocketServer) ConnectionCount() int

Jump to

Keyboard shortcuts

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