account

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 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 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 (a *AccountUseCase) GetAccount(ctx context.Context, AccountID int64) (*db2.Account, error)

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)

type GetAccountParams

type GetAccountParams struct {
	Offset      int32
	ToAccountID int64
	Limit       int32
	Username    string
}

Jump to

Keyboard shortcuts

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