ipc

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeDesicions = "decisions"
	TypeConsensus = "consensus"
)

Variables

This section is empty.

Functions

func FindDesicionsSocketPath

func FindDesicionsSocketPath(chain string, baseDir string) string

func FindSocketPath

func FindSocketPath(chain string, kind string, baseDir string) string

Types

type Message

type Message struct {
	Data []byte
	Time time.Time
}

type Socket

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

func Dial

func Dial(socketPath string) (*Socket, error)

func DialTimeout

func DialTimeout(socketPath string, timeout time.Duration) (*Socket, error)

func (*Socket) Close

func (sock *Socket) Close() error

func (*Socket) Start

func (sock *Socket) Start(writer WriterFn) error

type WriterFn

type WriterFn func(Message) error

Jump to

Keyboard shortcuts

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