locketgo

package module
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 8 Imported by: 1

README

locket-go

A Go library for logging dataflows

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocketConn

type LocketConn struct {
	Identifier string
	// contains filtered or unexported fields
}

func NewLocketConn

func NewLocketConn(conn net.Conn, logDir string, identifier string) (*LocketConn, error)

func (LocketConn) Close

func (locket LocketConn) Close() error

func (LocketConn) LocalAddr

func (locket LocketConn) LocalAddr() net.Addr

func (LocketConn) Read

func (locket LocketConn) Read(b []byte) (int, error)

func (LocketConn) RemoteAddr

func (locket LocketConn) RemoteAddr() net.Addr

func (LocketConn) SetDeadline

func (locket LocketConn) SetDeadline(t time.Time) error

func (LocketConn) SetReadDeadline

func (locket LocketConn) SetReadDeadline(t time.Time) error

func (LocketConn) SetWriteDeadline

func (locket LocketConn) SetWriteDeadline(t time.Time) error

func (LocketConn) Write

func (locket LocketConn) Write(b []byte) (int, error)

type LocketListener added in v1.0.4

type LocketListener struct {
	Identifier string
	// contains filtered or unexported fields
}

func NewLocketListener added in v1.0.4

func NewLocketListener(listener net.Listener, logDir string, identifier string) (*LocketListener, error)

func (LocketListener) Accept added in v1.0.4

func (locket LocketListener) Accept() (net.Conn, error)

func (LocketListener) Addr added in v1.0.4

func (locket LocketListener) Addr() net.Addr

func (LocketListener) Close added in v1.0.4

func (locket LocketListener) Close() error

Jump to

Keyboard shortcuts

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