service

package
v0.0.0-...-4aa8526 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FollowUserService

type FollowUserService interface {
	Execute(followerID int64, followedID int64) (username string, err error)
}

func NewFollowUserService

func NewFollowUserService(db database.Database) FollowUserService

type ListFollowersOutput

type ListFollowersOutput struct {
	ID     int64  `json:"id"`
	UserID int64  `json:"user_id"`
	Name   string `json:"string"`
}

type ListFollowersService

type ListFollowersService interface {
	Execute(userID int64) ([]ListFollowersOutput, error)
}

func NewListFollowersService

func NewListFollowersService(db database.Database) ListFollowersService

type ListFollowingsOutput

type ListFollowingsOutput struct {
	ID     int64  `json:"id"`
	UserID int64  `json:"user_id"`
	Name   string `json:"string"`
}

type ListFollowingsService

type ListFollowingsService interface {
	Execute(userID int64) ([]ListFollowingsOutput, error)
}

func NewListFollowingsService

func NewListFollowingsService(db database.Database) ListFollowingsService

type UnfollowUserService

type UnfollowUserService interface {
	Execute(followerID int64, followedID int64) (username string, err error)
}

func NewUnfollowUserService

func NewUnfollowUserService(db database.Database) UnfollowUserService

Jump to

Keyboard shortcuts

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