contentpg

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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 (r *ContentPostgres) CreateContent(e *entities.Content) (*entities.Content, error)

func (*ContentPostgres) CreateEvent

func (r *ContentPostgres) CreateEvent(e *entities.Event) (*entities.Event, error)

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) GetEvent

func (r *ContentPostgres) GetEvent(id entities.ID) (*entities.Event, 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 (r *ContentPostgres) UpdateContent(e *entities.Content) (*entities.Content, error)

func (*ContentPostgres) UpdateEvent

func (r *ContentPostgres) UpdateEvent(e *entities.Event) (*entities.Event, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL