Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetSamplesInteractor ¶
type GetSamplesInteractor interface { All() ([]*SampleEntity, error) AllByName(keyword string) ([]*SampleEntity, error) }
GetSamplesInteractor is the interface of GetSamplesInteractor.
func CreateDefaultGetSamples ¶
func CreateDefaultGetSamples(names ...string) GetSamplesInteractor
CreateDefaultGetSamples .
type GetSamplesInteractorImpl ¶
type GetSamplesInteractorImpl struct {
Samples []*SampleEntity
}
GetSamplesInteractorImpl is the implementation of GetSamplesInteractor interface.
func (GetSamplesInteractorImpl) All ¶
func (interactor GetSamplesInteractorImpl) All() ([]*SampleEntity, error)
All gets all samples.
func (GetSamplesInteractorImpl) AllByName ¶
func (interactor GetSamplesInteractorImpl) AllByName(keyword string) ([]*SampleEntity, error)
AllByName gets all samples that have name matched with keyword.
type SampleEntity ¶
SampleEntity is the sample entity struct.
func (SampleEntity) NameLower ¶
func (sampleEntity SampleEntity) NameLower() string
NameLower gets lowercase name.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.