service

package
v0.0.0-...-4a1e664 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 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 CatFactFinder

type CatFactFinder interface {
	FindCatFact(ctx context.Context) (facts.Topic, error)
}

type DogFactFinder

type DogFactFinder interface {
	FindDogFact(ctx context.Context) (facts.Topic, error)
}

type EntertainmentFactFinder

type EntertainmentFactFinder interface {
	FindEntertainmentFact(ctx context.Context) (facts.Topic, error)
}

type FactSVC

type FactSVC struct {
	CFinder CatFactFinder
	DFinder DogFactFinder
	EFinder EntertainmentFactFinder
	TFinder TrivialFactFinder
}

func (FactSVC) Find

func (svc FactSVC) Find(ctx context.Context, topic facts.TopicType) (facts.Topic, error)

type TrivialFactFinder

type TrivialFactFinder interface {
	FindTrivialFact(ctx context.Context) (facts.Topic, error)
}

Jump to

Keyboard shortcuts

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