models

package
v0.0.0-...-155a69b Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const MSGS_KEY = "messages"

Variables

This section is empty.

Functions

func DeleteMessage

func DeleteMessage(db *redis.Client, index int64) (err error)

func PutMessage

func PutMessage(db *redis.Client, entry string) (index int64, err error)

Types

type Message

type Message struct {
	Index int64  `json:"index"`
	Data  string `json:"data"`
}

func GetMessages

func GetMessages(db *redis.Client) (messages []Message, err error)

Jump to

Keyboard shortcuts

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