topic_repository

package
v0.0.0-...-93f7374 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRepository

func NewRepository(db db.Client) *repository

NewRepository ...

Types

type Pair

type Pair struct {
	UnitID  int64
	TopicID int64
}

type Query

type Query struct {
	model.QueryFilter

	UnitIDs  []int64
	TopicIDs []int64
	Pairs    map[Pair]struct{}
}

Query ...

type Repository

type Repository interface {
	GetList(ctx context.Context, filter *Query) ([]*model.Topic, error)
}

Repository ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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