Documentation ¶
Index ¶
- type Config
- type Parser
- type Service
- func (s Service) FetchLinks(ctx context.Context) ([]string, error)
- func (s Service) Find(ctx context.Context, link string) (domain.Hearing, error)
- func (s Service) List(ctx context.Context) ([]domain.Hearing, error)
- func (s Service) ListUnpublished(ctx context.Context, mark bool) ([]domain.IHearing, error)
- func (s Service) NewHearings(ctx context.Context) ([]domain.Hearing, error)
- func (s Service) ProcessLink(ctx context.Context, link string) (domain.Hearing, error)
- func (s Service) Publish(ctx context.Context, format string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Database *database.Client Logger *zerolog.Logger Scrapper *scrapper.Scrapper Publisher *publisher.Publisher }
Config for hearings service
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser is preparing data about public hearings
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service to manage public hearings
func (Service) FetchLinks ¶
FetchLinks of public hearings
func (Service) ListUnpublished ¶
ListUnpublished returns list of unpublished hearings
func (Service) NewHearings ¶
NewHearings returns list of new hearings from site
func (Service) ProcessLink ¶
ProcessLink and get information about public hearing
Click to show internal directories.
Click to hide internal directories.