mysql

package
v0.0.0-...-1ad6296 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2019 License: MIT Imports: 3 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 struct {
	DB *sql.DB
}

func (*ChatService) Add

func (cs *ChatService) Add(name string, users []int64) (int64, error)

func (*ChatService) Messages

func (cs *ChatService) Messages(id int64) ([]server.Message, error)

type MessageService

type MessageService struct {
	DB *sql.DB
}

func (*MessageService) Add

func (ms *MessageService) Add(chat int64, author int64, text string) (int64, error)

type UserService

type UserService struct {
	DB *sql.DB
}

func (*UserService) Add

func (us *UserService) Add(username string) (int64, error)

func (*UserService) Chats

func (us *UserService) Chats(id int64) ([]server.Chat, error)

Jump to

Keyboard shortcuts

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