Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConservationRepo ¶
NewConservationRepo returns a struct that implements conservation repo with a database connection
Types ¶
type Conservation ¶
type Conservation struct { ID int `json:"id,omitempty"` Created string `json:"created,omitempty"` // Sent is the number of day to keep the email in DB Sent int `json:"sent"` // Unsent is the number of day to keep unsent email in DB Unsent int `json:"unsent"` // KeepEmailContent will keep the body in DB KeepEmailContent bool `json:"keep_email_content"` }
Conservation represea conservation rule
type ConservationRepo ¶
type ConservationRepo interface { ListConservation() ([]*Conservation, error) GetConservation(id int) (*Conservation, error) DeleteConservation(id int) error InsertConservation(*Conservation) error }
ConservationRepo is the interface to implements in order to manage conservation address
Click to show internal directories.
Click to hide internal directories.