service

package
v0.0.0-...-e99f317 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 5 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, admin bool) string
	ValidateToken(tokenString string) (*jwt.Token, error)
}

func NewJWTService

func NewJWTService() JWTService

type LoginService

type LoginService interface {
	Login(username string, password string) bool
}

func NewLoginService

func NewLoginService() LoginService

type VideoService

type VideoService interface {
	Save(entity.Video) entity.Video
	FindAll() []entity.Video
}

func New

func New() VideoService

Jump to

Keyboard shortcuts

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