chat

package
v0.0.0-...-c6795ec Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatService

type ChatService interface {
	AddMessage(Message) error
	FindById(int) *Message
	FindAll() []*Message
}

ChatService ...

func New

func New(db *slqx.DB, c *config.Config) (ChatService, error)

New ...

type Message

type Message struct {
	ID   int64
	Text string
}

Message ...

Jump to

Keyboard shortcuts

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