service

package
v0.0.0-...-09b6e72 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: GPL-3.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

Middleware describes a service middleware.

type ParticipantsService

type ParticipantsService interface {
	CreateAttendee(ctx context.Context, details model.Attendee) (rs string, err error)
	ReadAttendee(ctx context.Context, query model.Query) (rs []model.Attendee, err error)
	RmAttendee(ctx context.Context, query model.Query) (rs string, err error)
	DeleteAttendee(ctx context.Context, query model.Query) (rs string, err error)
	DeleteAllAttendee(ctx context.Context, query model.Query) (rs string, err error)
}

ParticipantsService describes the service.

func New

func New(middleware []Middleware) ParticipantsService

New returns a ParticipantsService with all of the expected middleware wired in.

func NewBasicParticipantsService

func NewBasicParticipantsService() ParticipantsService

NewBasicParticipantsService returns a naive, stateless implementation of ParticipantsService.

Jump to

Keyboard shortcuts

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