service

package
v0.0.0-...-4c45443 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 License: Apache-2.0 Imports: 9 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 {
	CheckToken(ctx echo.Context, token string) (dao.Node, error)
	Create(ctx echo.Context, create nodeDTO.CreateDTO) (dao.Node, error)
	All(ctx echo.Context, params nodeDTO.AllRequestParamsDTO) (dao.Nodes, error)
	Count(ctx echo.Context) (int64, error)
	GetByID(ctx echo.Context, nodeID uint64) (dao.Node, error)
}

func New

func New(resource resource.Resource, repository repository.Repository) (Service, error)

Jump to

Keyboard shortcuts

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