Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReplyService ¶
type ReplyService interface {
ReplyForecast(*Tweet) (*SnowResort, error)
}
func NewReplyServiceImpl ¶
func NewReplyServiceImpl(searcher searcher.Searchr, twitterApiClient twitter.IApiClient, snowforecastApiClient snowforecast.IApiClient) ReplyService
type ReplyServiceImpl ¶
type ReplyServiceImpl struct { // ドメイン層は他の層にも依存しない SnowResortSearcher searcher.Searchr TwitterApiClient twitter.IApiClient SnowforecastApiClient snowforecast.IApiClient }
func (ReplyServiceImpl) ReplyForecast ¶
func (r ReplyServiceImpl) ReplyForecast(tweet *Tweet) (*SnowResort, error)
検索すること自体がビジネスロジックであるため、ドメイン層に含める
type SnowResort ¶
type SnowResortRepository ¶
type SnowResortRepository interface {
FindAll() ([]*SnowResort, error)
}
Click to show internal directories.
Click to hide internal directories.