services

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultScaffoldService

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

func NewDefaultScaffoldService

func NewDefaultScaffoldService(scaffoldRepo repos.ScaffoldRepo) *DefaultScaffoldService

func NewDefaultScaffoldServiceWithConfig

func NewDefaultScaffoldServiceWithConfig(
	config *DefaultScaffoldServiceConfig,
) *DefaultScaffoldService

func (*DefaultScaffoldService) Scaffold

func (s *DefaultScaffoldService) Scaffold(ctx context.Context) error

type DefaultScaffoldServiceConfig

type DefaultScaffoldServiceConfig struct {
	ScaffoldPath string
}

type OpenAlexAnalysisService

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

func NewOpenAlexAnalysisService

func NewOpenAlexAnalysisService(
	openalexClient openalex.Client,
	analysisRepo repos.AnalysisRepo,
	embeddingClient embeddings.Client,
	ttr texter.ArticleTexter,
) *OpenAlexAnalysisService

func NewOpenAlexAnalysisServiceFromConfig

func NewOpenAlexAnalysisServiceFromConfig(config *OpenAlexAnalysisServiceConfig) (*OpenAlexAnalysisService, error)

func (*OpenAlexAnalysisService) Query

func (s *OpenAlexAnalysisService) Query(
	ctx context.Context,
	category string,
	limit int,
) ([]*models.Result, error)

func (*OpenAlexAnalysisService) Search added in v0.1.0

func (s *OpenAlexAnalysisService) Search(
	ctx context.Context,
	query string,
	limit int,
) (*models.Analysis, error)

func (*OpenAlexAnalysisService) Store

func (s *OpenAlexAnalysisService) Store(
	ctx context.Context,
	query string,
	limit int,
) error

type OpenAlexAnalysisServiceConfig

type OpenAlexAnalysisServiceConfig struct {
	AnalysisPath string
}

type ScaffoldService

type ScaffoldService interface {
	Scaffold(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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