service

package
v0.0.0-...-1c0d007 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 UserService

type UserService interface {
	Authentication(ctx context.Context) (*domain.User, error)
}

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