service

package
v0.0.0-...-259d60e Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func NewAPI

func NewAPI(db *gorm.DB, c *config.Config) *API

func (*API) CreateSpeaker

func (api *API) CreateSpeaker(i model.SpeakerInput) (*model.Speaker, error)

func (*API) DeleteSpeakerById

func (api *API) DeleteSpeakerById(id string) error

func (*API) EditSpeakerById

func (api *API) EditSpeakerById(id string, i model.SpeakerInput) (*model.Speaker, error)

func (*API) GetAllSpeakers

func (api *API) GetAllSpeakers() (*[]model.Speaker, error)

func (*API) GetSpeakerById

func (api *API) GetSpeakerById(id string) (*model.Speaker, error)

type SpeakerAPI

type SpeakerAPI interface {
	GetAllSpeakers() (*[]model.Speaker, error)
	CreateSpeaker(i model.SpeakerInput) (*model.Speaker, error)
	GetSpeakerById(id string) (*model.Speaker, error)
	EditSpeakerById(id string, i model.SpeakerInput) (*model.Speaker, error)
	DeleteSpeakerById(id string) error
}

Jump to

Keyboard shortcuts

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