Documentation ¶
Index ¶
- Variables
- type MessageRepository
- type RqliteMessageRepository
- func (r *RqliteMessageRepository) Create(message pb.Message) (int64, error)
- func (r *RqliteMessageRepository) Delete(id int64) error
- func (r *RqliteMessageRepository) GetByID(id int64) (pb.Message, error)
- func (r *RqliteMessageRepository) GetByUUID(uuid string) (pb.Message, error)
- func (r *RqliteMessageRepository) List() ([]pb.Message, error)
- func (r *RqliteMessageRepository) ListByType(t string) ([]pb.Message, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewRqliteMessageRepository)
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)
Click to show internal directories.
Click to hide internal directories.