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 ¶
func NewLoginService ¶
func NewLoginService() LoginService
type VideoService ¶
type VideoService interface { Save(entity.Video) error Update(entity.Video) error Delete(entity.Video) error FindAll() []entity.Video }
func New ¶
func New(videoRepository repository.VideoRepository) VideoService
Click to show internal directories.
Click to hide internal directories.