Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Collection ¶
func (c *Client) Collection(collection string) *mongo.Collection
type StorageService ¶
type StorageService struct {
// contains filtered or unexported fields
}
func NewStorageService ¶
func NewStorageService(mongodbClient *Client) (*StorageService, error)
func (*StorageService) GetMonths ¶
func (s *StorageService) GetMonths(from time.Time, to time.Time) ([]persistence.VaccinationMonthMetric, error)
func (*StorageService) Store ¶
func (s *StorageService) Store(date time.Time, state string, data persistence.VaccinationData) error
type VaccineMonthMetricModel ¶
type VaccineMonthMetricModel struct { ID string `bson:"_id"` State string `json:"state"` Month string `json:"month"` Days []*persistence.VaccinationData `json:"days"` }
Click to show internal directories.
Click to hide internal directories.