service

package
v0.0.0-...-cbdd806 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWTService

type JWTService interface {
	GenerateToken(name string, user bool) string
	ValidateToken(token string) (*jwt.Token, error)
}

func NewJWTService

func NewJWTService() JWTService

type LoginService

type LoginService interface {
	Login(username string, password string) bool
	Register(newuser user.User) error
	GetAllUsers() []user.User
}

func NewLoginService

func NewLoginService(movieModel models.MovieModel) LoginService

type MovieService

type MovieService interface {
	Add(operation.Movie) error
	Update(operation.Movie) error
	Delete(operation.Movie) error
	GetAll() []operation.Movie
	GetOne(id uint64) operation.Movie
}

func New

func New(movieModel models.MovieModel) MovieService

Jump to

Keyboard shortcuts

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