repository

package
v0.0.0-...-8ed6344 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockPartiesGormRepo

func NewMockPartiesGormRepo(conn *gorm.DB) parties.PartiesRepository

Types

type MockPartiesGormRepo

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

func (*MockPartiesGormRepo) DeleteParties

func (mockPartiesRepo *MockPartiesGormRepo) DeleteParties(id int) (*entities.Parties, []error)

func (*MockPartiesGormRepo) Parties

func (mockPartiesRepo *MockPartiesGormRepo) Parties() ([]entities.Parties, []error)

func (*MockPartiesGormRepo) Party

func (mockPartiesRepo *MockPartiesGormRepo) Party(id int) (*entities.Parties, []error)

func (*MockPartiesGormRepo) StoreParties

func (mockPartiesRepo *MockPartiesGormRepo) StoreParties(Parties *entities.Parties) (*entities.Parties, []error)

func (*MockPartiesGormRepo) UpdateParties

func (mockPartiesRepo *MockPartiesGormRepo) UpdateParties(Parties *entities.Parties) (*entities.Parties, []error)

type PartiesGormRepo

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

func NewPartiesGormRepo

func NewPartiesGormRepo(db *gorm.DB) *PartiesGormRepo

func (*PartiesGormRepo) DeleteParties

func (pRepo *PartiesGormRepo) DeleteParties(id int) (*entities.Parties, []error)

func (*PartiesGormRepo) Parties

func (pRepo *PartiesGormRepo) Parties() ([]entities.Parties, []error)

func (*PartiesGormRepo) Party

func (pRepo *PartiesGormRepo) Party(id int) (*entities.Parties, []error)

func (*PartiesGormRepo) StoreParties

func (pRepo *PartiesGormRepo) StoreParties(Parties *entities.Parties) (*entities.Parties, []error)

func (*PartiesGormRepo) UpdateParties

func (pRepo *PartiesGormRepo) UpdateParties(Parties *entities.Parties) (*entities.Parties, []error)

Jump to

Keyboard shortcuts

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