repository

package
v0.0.0-...-d67adc9 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewEvent

func NewEvent(db *gorm.DB) *Event

func (*Event) Insert

func (e *Event) Insert(event *db.Event) error

func (*Event) Next

func (e *Event) Next(event *db.Event) (*db.Event, error)

func (*Event) Prev

func (e *Event) Prev(event *db.Event) (*db.Event, error)

type EventMock

type EventMock struct {
	mock.Mock
}

func (*EventMock) Insert

func (m *EventMock) Insert(event *db.Event) error

func (*EventMock) Next

func (m *EventMock) Next(event *db.Event) (*db.Event, error)

func (*EventMock) Prev

func (m *EventMock) Prev(event *db.Event) (*db.Event, error)

type IEvent

type IEvent interface {
	Insert(*db.Event) error
	Prev(*db.Event) (*db.Event, error)
	Next(*db.Event) (*db.Event, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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