Documentation ¶
Overview ¶
Package socketcanendpoint contains the SocketCANEndpoint struct described below
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SocketCANEndpoint ¶
type SocketCANEndpoint struct {
// contains filtered or unexported fields
}
SocketCANEndpoint is an endpoint backed by a live SocketCAN interface, pulling down CAN frames
func (*SocketCANEndpoint) Close ¶
func (c *SocketCANEndpoint) Close() error
Close will stop the endpoint from processing further frames
func (*SocketCANEndpoint) Run ¶
func (c *SocketCANEndpoint) Run(ctx context.Context) error
Run should, in theory, run the endpoint and block until completion/error, but the canbus implementation doesn't work like that right now unfortunately, so it just spawns in the background and keeps running until Shutdown kills it...
func (*SocketCANEndpoint) SetOutput ¶
func (c *SocketCANEndpoint) SetOutput(mh endpoint.MessageHandler)
SetOutput subscribes a callback handler for whenever a message is ready
Click to show internal directories.
Click to hide internal directories.