application

package
v0.0.0-...-b2f7ccc Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatApplication

type ChatApplication interface {
	ListRoom(ctx context.Context, userID string, p *firestore.Params) (chat.Rooms, error)
	GetRoom(ctx context.Context, roomID string, userID string) (*chat.Room, error)
	CreateRoom(ctx context.Context, cr *chat.Room) error
	CreateMessage(ctx context.Context, cr *chat.Room, cm *chat.Message) error
	UploadImage(ctx context.Context, cr *chat.Room, image []byte) (string, error)
}

ChatApplication - Chatアプリケーションのインターフェース

func NewChatApplication

func NewChatApplication(cdv chat.Validation, cr chat.Repository, cu chat.Uploader) ChatApplication

NewChatApplication - ChatApplicationの生成

type UserApplication

type UserApplication interface {
	Authentication(ctx context.Context) (*user.User, error)
	List(ctx context.Context, q *database.ListQuery) (user.Users, int, error)
	ListAdmin(ctx context.Context, q *database.ListQuery) (user.Users, int, error)
	ListFollow(ctx context.Context, userID, targetID string, limit, offset int) (user.Follows, int, error)
	ListFollower(ctx context.Context, userID, targetID string, limit, offset int) (user.Followers, int, error)
	MultiGet(ctx context.Context, userIDs []string) (user.Users, error)
	Get(ctx context.Context, userID string) (*user.User, error)
	GetAdmin(ctx context.Context, userID string) (*user.User, error)
	GetUserProfile(ctx context.Context, userID, targetID string) (*user.User, error)
	Create(ctx context.Context, u *user.User) error
	Update(ctx context.Context, u *user.User) error
	UpdatePassword(ctx context.Context, u *user.User) error
	Delete(ctx context.Context, u *user.User) error
	DeleteAdmin(ctx context.Context, u *user.User) error
	Follow(ctx context.Context, userID, followerID string) (*user.User, error)
	Unfollow(ctx context.Context, userID, followerID string) (*user.User, error)
	UploadThumbnail(ctx context.Context, userID string, thumbnail []byte) (string, error)
}

UserApplication - Userアプリケーションのインターフェース

func NewUserApplication

func NewUserApplication(udv user.Validation, ur user.Repository, uu user.Uploader) UserApplication

NewUserApplication - UserApplicationの生成

Jump to

Keyboard shortcuts

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