repository

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountRepository

type AccountRepository interface {
	FindByID(ID string) (*model.User, error)
	RegisterUserAccount(*model.User) error
	GetUserName(staticID string) (string, error)
	EditUserProfile(*model.User) (*model.User, error)
}

type ActionsRepository

type ActionsRepository interface {
	Like(userStaticID, staticID string) error
	Retweet(userStaticID, staticID string) error
	Reply(reply *model.Reply) error
	GetLikeUser(toTweetID string) ([]*model.LikedUser, error)
	GetRetweetUser(toTweetID string) ([]*model.RetweetedUser, error)
	GetReply(toTweetID string) ([]*model.Reply, error)
}

type TweetRepository

type TweetRepository interface {
	RegisterTweet(tweet *model.Tweet) error
	GetTweetByID(staticID string) (*model.Tweet, error)
	GetTweetByIDs(ids []int64) ([]*model.Tweet, error)
	DeleteTweetByID(id int64) error
}

Jump to

Keyboard shortcuts

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