Documentation ¶
Index ¶
- type AccountUseCase
- func (a *AccountUseCase) AcceptFollower(ctx context.Context, AccountID, FromAccount int64) (api.BasicResponse, error)
- func (a *AccountUseCase) DeleteQueue(ctx context.Context, AccountID, FromAccount int64) (api.BasicResponse, error)
- func (a *AccountUseCase) FollowAccount(ctx context.Context, FromAccount, AccountID int64) (api.BasicResponse, error)
- func (a *AccountUseCase) GetAccount(ctx context.Context, AccountID int64) (*db2.Account, error)
- func (a *AccountUseCase) ListAccount(ctx context.Context, param *GetAccountParams) (*[]db2.Account, error)
- func (a *AccountUseCase) ListQueuedAccount(ctx context.Context, param *GetAccountParams) (*[]db2.ListQueueRow, error)
- func (a *AccountUseCase) PrivateAccount(ctx context.Context, AccountID int64) (api.BasicResponse, error)
- func (a *AccountUseCase) UnFollowAccount(ctx context.Context, FromAccount, AccountID int64) (api.BasicResponse, error)
- type GetAccountParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountUseCase ¶
type AccountUseCase struct {
// contains filtered or unexported fields
}
func NewAccountUseCase ¶
func NewAccountUseCase(postgre postgres.PostgresStore, redis redis.Store, cfg util.Config, gcpClient gcp.GCPService) *AccountUseCase
func (*AccountUseCase) AcceptFollower ¶
func (a *AccountUseCase) AcceptFollower(ctx context.Context, AccountID, FromAccount int64) (api.BasicResponse, error)
func (*AccountUseCase) DeleteQueue ¶
func (a *AccountUseCase) DeleteQueue(ctx context.Context, AccountID, FromAccount int64) (api.BasicResponse, error)
func (*AccountUseCase) FollowAccount ¶
func (a *AccountUseCase) FollowAccount(ctx context.Context, FromAccount, AccountID int64) (api.BasicResponse, error)
func (*AccountUseCase) GetAccount ¶
func (*AccountUseCase) ListAccount ¶
func (a *AccountUseCase) ListAccount(ctx context.Context, param *GetAccountParams) (*[]db2.Account, error)
func (*AccountUseCase) ListQueuedAccount ¶
func (a *AccountUseCase) ListQueuedAccount(ctx context.Context, param *GetAccountParams) (*[]db2.ListQueueRow, error)
func (*AccountUseCase) PrivateAccount ¶
func (a *AccountUseCase) PrivateAccount(ctx context.Context, AccountID int64) (api.BasicResponse, error)
func (*AccountUseCase) UnFollowAccount ¶
func (a *AccountUseCase) UnFollowAccount(ctx context.Context, FromAccount, AccountID int64) (api.BasicResponse, error)
Click to show internal directories.
Click to hide internal directories.