subscription

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

Repository ...

func NewRepository

func NewRepository(db *gorm.DB) *Repository

NewRepository ...

func (*Repository) All

func (p *Repository) All() ([]model.Subscription, error)

All ...

func (*Repository) Delete

func (p *Repository) Delete(id uint) error

Delete ...

func (*Repository) FindAll

func (p *Repository) FindAll(argsStr map[string]string, argsInt map[string]int) ([]model.Subscription, error)

FindAll ...

func (*Repository) FindByEmail

func (p *Repository) FindByEmail(email string) (*model.Subscription, error)

FindByEmail ...

func (*Repository) FindByID

func (p *Repository) FindByID(id uint) (*model.Subscription, error)

FindByID ...

func (*Repository) FindBySubscriptionID

func (p *Repository) FindBySubscriptionID(id uint) (*model.Subscription, error)

FindBySubscriptionID ...

func (*Repository) Migrate

func (p *Repository) Migrate() error

Migrate ...

func (*Repository) Save

func (p *Repository) Save(subscription *model.Subscription) (*model.Subscription, error)

Save ...

Jump to

Keyboard shortcuts

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