user

package
v0.0.0-...-dfb12f3 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: MIT Imports: 7 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 NewRepository

func NewRepository(client pg.Client) *Repository

func (*Repository) Create

func (r *Repository) Create(ctx context.Context, user *userModel.User) error

func (*Repository) Delete

func (r *Repository) Delete(ctx context.Context, userId int) (int64, error)

func (*Repository) GetAll

func (r *Repository) GetAll(ctx context.Context) ([]userModel.User, error)

func (*Repository) GetSegments

func (r *Repository) GetSegments(ctx context.Context, userId int) ([]segmentModel.Segment, error)

Jump to

Keyboard shortcuts

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