stormDB

package
v0.0.0-...-9bdd6bf Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 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 ChatRepository

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

func NewChatRepository

func NewChatRepository(db *storm.DB) *ChatRepository

func (*ChatRepository) All

func (r *ChatRepository) All() ([]models.Chat, error)

func (*ChatRepository) Delete

func (r *ChatRepository) Delete(chat models.Chat) error

func (*ChatRepository) Get

func (r *ChatRepository) Get(chatId int64) (models.Chat, error)

func (*ChatRepository) Save

func (r *ChatRepository) Save(data models.Chat) error

Jump to

Keyboard shortcuts

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