redis

package
v0.0.0-...-b7203ce Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client represents layer between writer and Redis

func NewClient

func NewClient(network string, addr string, size int) (*Client, error)

NewClient creates new Client

func (*Client) SaveBusVehicleDataMessage

func (c *Client) SaveBusVehicleDataMessage(vehicleID string, message []byte) (int, error)

SaveBusVehicleDataMessage saves individual BusVehicleData message and sends it to PubSub subscribers. Returns the number of clients that received the message (and error)

Jump to

Keyboard shortcuts

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