segment

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: 6 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, slug string) error

func (*Repository) DeleteBySlug

func (r *Repository) DeleteBySlug(ctx context.Context, slug string) (int64, error)

func (*Repository) GetBySlug

func (r *Repository) GetBySlug(ctx context.Context, slug string) (*segmentModel.Segment, error)

func (*Repository) GetUsersBySlug

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

Jump to

Keyboard shortcuts

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