service

package
v0.0.0-...-8ed6344 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: GPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSessionService

func NewSessionService(sessRepository parties.SessionRepository) parties.SessionService

NewSessionService returns a new SessionService object

Types

type PartiesServiceImple

type PartiesServiceImple struct {
	PartiesRepo parties.PartiesRepository
}

func NewPartiesService

func NewPartiesService(partiesrepo parties.PartiesRepository) *PartiesServiceImple

func (*PartiesServiceImple) DeleteParties

func (ps *PartiesServiceImple) DeleteParties(id int) (*entities.Parties, []error)

func (*PartiesServiceImple) Parties

func (ps *PartiesServiceImple) Parties() ([]entities.Parties, []error)

func (*PartiesServiceImple) Party

func (ps *PartiesServiceImple) Party(id int) (*entities.Parties, []error)

func (*PartiesServiceImple) StoreParties

func (ps *PartiesServiceImple) StoreParties(pst *entities.Parties) (*entities.Parties, []error)

func (*PartiesServiceImple) UpdateParties

func (ps *PartiesServiceImple) UpdateParties(pst *entities.Parties) (*entities.Parties, []error)

type SessionServiceImpl

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

SessionServiceImpl implements user.SessionService interface

func (*SessionServiceImpl) DeleteSession

func (ss *SessionServiceImpl) DeleteSession(sessionID string) (*entities.Session, []error)

DeleteSession deletes a given session

func (*SessionServiceImpl) Session

func (ss *SessionServiceImpl) Session(sessionID string) (*entities.Session, []error)

Session returns a given stored session

func (*SessionServiceImpl) StoreSession

func (ss *SessionServiceImpl) StoreSession(session *entities.Session) (*entities.Session, []error)

StoreSession stores a given session

Jump to

Keyboard shortcuts

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