repository

package
v0.0.0-...-43feff1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

func New

func New(dbfilepath string) (*Repository, error)

func (*Repository) Get

func (r *Repository) Get(ctx context.Context, userId usermodel.UserId) ([]model.Message, error)

func (*Repository) GetBatch

func (r *Repository) GetBatch(ctx context.Context) ([]model.Message, error)

func (*Repository) Put

func (r *Repository) Put(ctx context.Context, msg *model.Message) error

func (*Repository) PutBatch

func (r *Repository) PutBatch(ctx context.Context, batch [](*model.Message)) error

func (*Repository) Truncate

func (r *Repository) Truncate(ctx context.Context) error

Jump to

Keyboard shortcuts

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