application

package
v0.0.0-...-d941976 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthApplication

type AuthApplication interface {
	Authentication(ctx context.Context) (string, error)
}

AuthApplication - Authアプリケーションのインターフェース

func NewAuthApplication

func NewAuthApplication(as auth.Service) AuthApplication

NewAuthApplication - AuthApplicationの生成

type BookApplication

type BookApplication interface {
	ListByBookIDs(ctx context.Context, in *input.ListBookByBookIDs) ([]*book.Book, error)
	ListBookshelf(ctx context.Context, in *input.ListBookshelf) ([]*book.Bookshelf, *output.ListQuery, error)
	ListBookReview(ctx context.Context, in *input.ListBookReview) ([]*book.Review, *output.ListQuery, error)
	ListUserReview(ctx context.Context, in *input.ListUserReview) ([]*book.Review, *output.ListQuery, error)
	Show(ctx context.Context, id int) (*book.Book, error)
	ShowByIsbn(ctx context.Context, isbn string) (*book.Book, error)
	ShowBookshelf(ctx context.Context, userID string, bookID int) (*book.Bookshelf, error)
	ShowReview(ctx context.Context, reviewID int) (*book.Review, error)
	Create(ctx context.Context, in *input.Book) (*book.Book, error)
	Update(ctx context.Context, in *input.Book) (*book.Book, error)
	CreateOrUpdateBookshelf(ctx context.Context, in *input.Bookshelf) (*book.Bookshelf, error)
	Delete(ctx context.Context, bookID int) error
	DeleteBookshelf(ctx context.Context, bookID int, uid string) error
}

BookApplication - Bookアプリケーションのインターフェース

func NewBookApplication

func NewBookApplication(brv validation.BookRequestValidation, bs book.Service) BookApplication

NewBookApplication - BookApplicationの生成

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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