service

package
v0.8.23 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 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 BookService

BookService contain logic for Book Controller [mock]

func NewBookService

func NewBookService(impl BookServiceImpl) BookService

NewBookService return new instance of BookService [constructor]

type BookServiceImpl

type BookServiceImpl struct {
	dig.In
	repository.BookRepo

	Redis *redis.Client
}

BookServiceImpl is implementation of BookService

func (*BookServiceImpl) Find

func (r *BookServiceImpl) Find(ctx context.Context, opts ...dbkit.FindOption) (list []*repository.Book, err error)

Find books

func (*BookServiceImpl) FindOne

func (r *BookServiceImpl) FindOne(ctx context.Context, id int64) (book *repository.Book, err error)

FindOne book

Jump to

Keyboard shortcuts

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