Documentation ¶
Index ¶
- type ContentPostgres
- func (r *ContentPostgres) CreateContent(e *entities.Content) (*entities.Content, error)
- func (r *ContentPostgres) CreateEvent(e *entities.Event) (*entities.Event, error)
- func (r *ContentPostgres) DeleteContent(name string) error
- func (r *ContentPostgres) DeleteEvent(id entities.ID) error
- func (r *ContentPostgres) GetContent(name string) (*entities.Content, error)
- func (r *ContentPostgres) GetEvent(id entities.ID) (*entities.Event, error)
- func (r *ContentPostgres) ListContent() ([]*entities.Content, error)
- func (r *ContentPostgres) ListEvents(includePastEvents bool) ([]*entities.Event, error)
- func (r *ContentPostgres) UpdateContent(e *entities.Content) (*entities.Content, error)
- func (r *ContentPostgres) UpdateEvent(e *entities.Event) (*entities.Event, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentPostgres ¶
type ContentPostgres struct {
// contains filtered or unexported fields
}
func NewContentPostgres ¶
func NewContentPostgres(db *gorm.DB) (*ContentPostgres, error)
func (*ContentPostgres) CreateContent ¶
func (*ContentPostgres) CreateEvent ¶
func (*ContentPostgres) DeleteContent ¶
func (r *ContentPostgres) DeleteContent(name string) error
func (*ContentPostgres) DeleteEvent ¶
func (r *ContentPostgres) DeleteEvent(id entities.ID) error
func (*ContentPostgres) GetContent ¶
func (r *ContentPostgres) GetContent(name string) (*entities.Content, error)
func (*ContentPostgres) ListContent ¶
func (r *ContentPostgres) ListContent() ([]*entities.Content, error)
func (*ContentPostgres) ListEvents ¶
func (r *ContentPostgres) ListEvents(includePastEvents bool) ([]*entities.Event, error)
func (*ContentPostgres) UpdateContent ¶
func (*ContentPostgres) UpdateEvent ¶
Click to show internal directories.
Click to hide internal directories.