service

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	TokenService
	UserService
}

Service interface combines all concrete model services

func New

func New(cfg *config.Config, dao *dao.Dao) Service

New constructs a new service layer

type TokenService

type TokenService interface {
	ShowToken(string) (*model.Token, error)
}

TokenService interface

type UserService

type UserService interface {
	FindUserById(uint64) (*model.User, error)
	FindUser(string) (*model.User, error)
	//ShowUserByToken(string) (*model.User, error)
	CreateUser(*model.User) error
	//UpdateUser(*model.User) error
	DeleteUser(*model.User) error
}

UserService interface

Jump to

Keyboard shortcuts

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