repository

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type MessageRepository

type MessageRepository interface {
	GetByID(id int64) (pb.Message, error)
	GetByUUID(uuid string) (pb.Message, error)
	ListByType(t string) ([]pb.Message, error)
	List() ([]pb.Message, error)
	Create(message pb.Message) (int64, error)
	Delete(id int64) error
}

func CreateMessageRepository added in v0.0.24

func CreateMessageRepository(id string) (MessageRepository, error)

func NewRqliteMessageRepository added in v0.0.25

func NewRqliteMessageRepository(db *rqlite.Conn) MessageRepository

type RqliteMessageRepository added in v0.0.25

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

func (*RqliteMessageRepository) Create added in v0.0.25

func (r *RqliteMessageRepository) Create(message pb.Message) (int64, error)

func (*RqliteMessageRepository) Delete added in v0.0.25

func (r *RqliteMessageRepository) Delete(id int64) error

func (*RqliteMessageRepository) GetByID added in v0.0.25

func (r *RqliteMessageRepository) GetByID(id int64) (pb.Message, error)

func (*RqliteMessageRepository) GetByUUID added in v0.0.25

func (r *RqliteMessageRepository) GetByUUID(uuid string) (pb.Message, error)

func (*RqliteMessageRepository) List added in v0.0.25

func (r *RqliteMessageRepository) List() ([]pb.Message, error)

func (*RqliteMessageRepository) ListByType added in v0.0.25

func (r *RqliteMessageRepository) ListByType(t string) ([]pb.Message, error)

Jump to

Keyboard shortcuts

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