event

package
v0.0.0-...-ed2735e Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BUCKET_NAME = "event"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	InsertEvent(eventId, appId, imageName string) (map[string]interface{}, error)
	GetEvents(appId, imageName string) ([]map[string]interface{}, error)
	DeleteEvent(eventId string) error
}

Interface of Event model's operations.

type Event

type Event struct {
	ID        string `json:"id"`
	AppID     string `json:"appid"`
	ImageName string `json:"imagename"`
}

type Executor

type Executor struct {
}

func (Executor) DeleteEvent

func (Executor) DeleteEvent(eventId string) error

func (Executor) GetEvents

func (Executor) GetEvents(appId, imageName string) ([]map[string]interface{}, error)

func (Executor) InsertEvent

func (e Executor) InsertEvent(eventId, appId, imageName string) (map[string]interface{}, error)

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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