event

package
v0.0.0-...-a52efcf Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorService      = "internal service error"
	ErrorUnauthorized = "unauthorized"
	ErrorNotFound     = "event not found"
	ErrorEventExists  = "event already exists"
)

Event Service Error descriptions

View Source
const ServiceName = "event"

ServiceName of this service.

Variables

View Source
var (
	ErrService      = errors.New(ErrorService)
	ErrUnauthorized = errors.New(ErrorUnauthorized)
	ErrNotFound     = errors.New(ErrorNotFound)
	ErrEventExists  = errors.New(ErrorEventExists)
)

Event Service Errors

Functions

This section is empty.

Types

type Event

type Event struct {
	ID   uuid.UUID `json:"id"`
	Name string    `json:"name"`
}

Event data

type Service

type Service interface {
	Create(ctx context.Context, tenantID uuid.UUID, event Event) (*uuid.UUID, error)
	Get(ctx context.Context, tenantID, id uuid.UUID) (*Event, error)
	Update(ctx context.Context, tenantID uuid.UUID, event Event) error
	Delete(ctx context.Context, tenantID uuid.UUID, id uuid.UUID) error
	List(ctx context.Context, tenantID uuid.UUID) ([]*Event, error)
}

Service describes our Event service.

Directories

Path Synopsis
pb
Package pb is a generated protocol buffer package.
Package pb is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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