service

package
v0.0.0-...-18998a6 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 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 BoardService

type BoardService interface {
	Index(ctx context.Context, groupID string) ([]*domain.Board, error)
	Show(ctx context.Context, groupID string, boardID string) (*domain.Board, error)
	Create(ctx context.Context, b *domain.Board) (*domain.Board, error)
	UploadThumbnail(ctx context.Context, data []byte) (string, error)
	Exists(ctx context.Context, groupID string, boardID string) bool
	ShowBoardList(ctx context.Context, groupID string, boardID string, boardListID string) (*domain.BoardList, error)
	CreateBoardList(ctx context.Context, groupID string, boardID string, bl *domain.BoardList) (*domain.BoardList, error)
	UpdateBoardList(ctx context.Context, groupID string, boardID string, bl *domain.BoardList) (*domain.BoardList, error)
	ExistsBoardList(ctx context.Context, groupID string, boardID string, boardListID string) bool
	UpdateKanban(ctx context.Context, groupID string, boardID string, b *domain.Board) error
}

BoardService - BoardServiceインターフェース

func NewBoardService

NewBoardService - BoardServiceの生成

type GroupService

type GroupService interface {
	Index(ctx context.Context, u *domain.User) ([]*domain.Group, error)
	Show(ctx context.Context, groupID string) (*domain.Group, error)
	Create(ctx context.Context, u *domain.User, g *domain.Group) (*domain.Group, error)
	Update(ctx context.Context, g *domain.Group) error
	InviteUsers(ctx context.Context, g *domain.Group) error
	Join(ctx context.Context, g *domain.Group) error
	IsContainInUserIDs(ctx context.Context, userID string, g *domain.Group) bool
	IsContainInInvitedEmails(ctx context.Context, email string, g *domain.Group) bool
}

GroupService - GroupServiceインターフェース

func NewGroupService

NewGroupService - GroupServiceの生成

type TaskService

type TaskService interface {
	Show(ctx context.Context, taskID string) (*domain.Task, error)
	Create(ctx context.Context, groupID string, boardID string, boardListID string, t *domain.Task) (*domain.Task, error)
}

TaskService - TaskServiceインターフェース

func NewTaskService

NewTaskService - TaskServiceの生成

type UserService

type UserService interface {
	Authentication(ctx context.Context) (*domain.User, error)
	IsContainInGroupIDs(ctx context.Context, groupID string, u *domain.User) bool
}

UserService - UserServiceインターフェース

func NewUserService

func NewUserService(ur repository.UserRepository) UserService

NewUserService - UserServiceの生成

Jump to

Keyboard shortcuts

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