app

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultConfigFilePath = "./config.yml"

DefaultConfigFilePath はデフォルトの設定ファイルパス

Variables

View Source
var ErrNoArticlesFound = errors.New("no articles found in the feed")

ErrNoArticlesFound は記事が見つからなかった場合のsentinel error

Functions

This section is empty.

Types

type ConfigCheckParams

type ConfigCheckParams struct {
	ProfilePath string
	VerboseFlag bool
}

ConfigCheckParams はconfig checkコマンドの実行パラメータを表す構造体

type ConfigCheckRunner

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

ConfigCheckRunner はconfig checkコマンドのビジネスロジックを実行する構造体

func NewConfigCheckRunner

func NewConfigCheckRunner(
	configRepo domain.ConfigRepository,
	validatorFactory domain.ValidatorFactory,
	stdout io.Writer,
	stderr io.Writer,
	profileRepoFn func(string) domain.ProfileRepository,
) *ConfigCheckRunner

NewConfigCheckRunner はConfigCheckRunnerの新しいインスタンスを作成する

func (*ConfigCheckRunner) Run

func (r *ConfigCheckRunner) Run(params *ConfigCheckParams) error

Run はconfig checkコマンドのビジネスロジックを実行する

type ConfigInitRunner

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

ConfigInitRunner はconfig initコマンドのビジネスロジックを実行する構造体

func NewConfigInitRunner

func NewConfigInitRunner(configRepo domain.ConfigInitRepository, stderr io.Writer) *ConfigInitRunner

NewConfigInitRunner はConfigInitRunnerの新しいインスタンスを作成する

func (*ConfigInitRunner) Run

func (r *ConfigInitRunner) Run() error

Run はconfig initコマンドのビジネスロジックを実行する

type MessageSenderFactory

type MessageSenderFactory func(outputConfig *entity.OutputConfig) ([]domain.MessageSender, error)

MessageSenderFactory はMessageSenderを作成するためのファクトリ関数型

type ProfileCheckResult

type ProfileCheckResult struct {
	IsValid  bool
	Errors   []string
	Warnings []string
}

ProfileCheckResult はプロファイル検証の結果を表す構造体

type ProfileCheckRunner

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

ProfileCheckRunner はprofile checkコマンドのビジネスロジックを実行する構造体

func NewProfileCheckRunner

func NewProfileCheckRunner(configRepo domain.ConfigRepository, stderr io.Writer, profileRepoFn func(string) domain.ProfileRepository) *ProfileCheckRunner

NewProfileCheckRunner はProfileCheckRunnerの新しいインスタンスを作成する

func (*ProfileCheckRunner) Run

func (r *ProfileCheckRunner) Run(profilePath string) (*ProfileCheckResult, error)

Run はprofile checkコマンドのビジネスロジックを実行する profilePathが空の場合はconfig.ymlのデフォルトプロファイルのみを検証 profilePathが指定されている場合は、指定されたプロファイルをconfig.ymlとマージして検証

type ProfileInitRunner

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

ProfileInitRunner はprofile initコマンドのビジネスロジックを実行する構造体

func NewProfileInitRunner

func NewProfileInitRunner(templateRepo domain.ProfileTemplateRepository, stderr io.Writer) (*ProfileInitRunner, error)

NewProfileInitRunner はProfileInitRunnerの新しいインスタンスを作成する

func (*ProfileInitRunner) Run

func (r *ProfileInitRunner) Run() error

Run はprofile initコマンドのビジネスロジックを実行する

type RecommendCacheFactory

type RecommendCacheFactory func(cacheConfig *entity.CacheConfig) (domain.RecommendCache, error)

RecommendCacheFactory はRecommendCacheを作成するためのファクトリ関数型

type RecommendParams

type RecommendParams struct {
	URLs []string
}

RecommendParams はrecommendコマンドの実行パラメータを表す構造体

type RecommendRunner

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

RecommendRunner はrecommendコマンドのビジネスロジックを実行する構造体

func NewRecommendRunner

func NewRecommendRunner(
	fetchClient domain.FetchClient,
	recommender domain.Recommender,
	stderr io.Writer,
	stdout io.Writer,
	outputConfig *entity.OutputConfig,
	promptConfig *entity.PromptConfig,
	cacheConfig *entity.CacheConfig,
	senderFactory MessageSenderFactory,
	cacheFactory RecommendCacheFactory,
) (*RecommendRunner, error)

NewRecommendRunner はRecommendRunnerの新しいインスタンスを作成する

func (*RecommendRunner) Run

func (r *RecommendRunner) Run(ctx context.Context, params *RecommendParams, profile *entity.Profile) error

Run はrecommendコマンドのビジネスロジックを実行する

Jump to

Keyboard shortcuts

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