endpoint

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package endpoint declares an interface. Create a type satisfying it to support a new gateway or log file format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint interface {
	Run(ctx context.Context) error
	Close() error
	SetOutput(MessageHandler)
}

Endpoint declares the interface for endpoints.

type MessageHandler added in v0.0.2

type MessageHandler interface {
	HandleMessage(adapter.Message)
}

MessageHandler is an interface for the handler of an Endpoint that takes a finished Message object

Directories

Path Synopsis
Package n2kfileendpoint provides reads n2k log files and sends canbus frames to a channel.
Package n2kfileendpoint provides reads n2k log files and sends canbus frames to a channel.
Package socketcanendpoint contains the SocketCANEndpoint struct described below
Package socketcanendpoint contains the SocketCANEndpoint struct described below
Package usbcanendpoint contains the USBCANEndpoint struct described below
Package usbcanendpoint contains the USBCANEndpoint struct described below

Jump to

Keyboard shortcuts

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