data

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo interface {
	FindForUser(ctx context.Context, id, userID string) (*datamodels.Data, error)
}

Repo is the interface that wraps the basic operations with data.

type Service

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

Service is the domain service for data.

func NewService

func NewService(dataRepo Repo) *Service

NewService creates a new instance of the data service.

func (*Service) FindForUser

func (s *Service) FindForUser(ctx context.Context, id, userID string) (*datamodels.Data, error)

FindForUser returns the data by outpoint for a specific user.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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