repos

package
v0.0.0-...-690d12d Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2017 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

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

func NewEvent

func NewEvent(db *elastic.Client) *Event

func (*Event) Create

func (e *Event) Create(event *models.Event) (err error)

func (*Event) Find

func (e *Event) Find(q *models.Query) (events []models.Event, err error)

type EventRepo

type EventRepo interface {
	Create(e *models.Event) error
	Find(q *models.Query) ([]models.Event, error)
}

Jump to

Keyboard shortcuts

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