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: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockEventRepository

func NewMockEventRepository(conn *gorm.DB) Event.EventRepostory

Types

type EventRepositoryImple

type EventRepositoryImple struct {
	Conn *gorm.DB
}

func NewEventRepository

func NewEventRepository(conn *gorm.DB) *EventRepositoryImple

func (*EventRepositoryImple) DeleteEvent

func (eri *EventRepositoryImple) DeleteEvent(id uint) (*entities.Events, []error)

func (*EventRepositoryImple) Event

func (eri *EventRepositoryImple) Event(id uint) (*entities.Events, []error)

func (*EventRepositoryImple) Events

func (eri *EventRepositoryImple) Events() ([]entities.Events, []error)

func (*EventRepositoryImple) StoreEvent

func (eri *EventRepositoryImple) StoreEvent(event *entities.Events) (*entities.Events, []error)

func (*EventRepositoryImple) UpdateEvent

func (eri *EventRepositoryImple) UpdateEvent(event *entities.Events) (*entities.Events, []error)

type MockEventRepositoryImple

type MockEventRepositoryImple struct {
	Conn *gorm.DB
}

func (*MockEventRepositoryImple) DeleteEvent

func (meri *MockEventRepositoryImple) DeleteEvent(id uint) (*entities.Events, []error)

func (*MockEventRepositoryImple) Event

func (meri *MockEventRepositoryImple) Event(id uint) (*entities.Events, []error)

func (*MockEventRepositoryImple) Events

func (meri *MockEventRepositoryImple) Events() ([]entities.Events, []error)

func (*MockEventRepositoryImple) StoreEvent

func (meri *MockEventRepositoryImple) StoreEvent(event *entities.Events) (*entities.Events, []error)

func (*MockEventRepositoryImple) UpdateEvent

func (meri *MockEventRepositoryImple) UpdateEvent(event *entities.Events) (*entities.Events, []error)

Jump to

Keyboard shortcuts

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