repo

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageRepo

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

func NewMessageRepo added in v0.2.0

func NewMessageRepo(factory *depot.Factory) *MessageRepo

func (*MessageRepo) Begin added in v0.2.0

func (r *MessageRepo) Begin(ctx context.Context) (context.Context, error)

func (*MessageRepo) Commit added in v0.2.0

func (r *MessageRepo) Commit(ctx context.Context) error

func (*MessageRepo) Delete

func (r *MessageRepo) Delete(ctx context.Context, entity *models.Message) error

func (*MessageRepo) DeleteByID

func (r *MessageRepo) DeleteByID(ctx context.Context, ID string) error

func (*MessageRepo) FindByText added in v0.2.0

func (r *MessageRepo) FindByText(ctx context.Context, text string) ([]*models.Message, error)

func (*MessageRepo) Insert

func (r *MessageRepo) Insert(ctx context.Context, entity *models.Message) error

func (*MessageRepo) LoadByID

func (r *MessageRepo) LoadByID(ctx context.Context, ID string) (*models.Message, error)

func (*MessageRepo) Rollback added in v0.2.0

func (r *MessageRepo) Rollback(ctx context.Context) error

func (*MessageRepo) Update

func (r *MessageRepo) Update(ctx context.Context, entity *models.Message) error

Jump to

Keyboard shortcuts

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