Documentation ¶
Index ¶
- type IpPost
- type IpPostRepo
- type IpPostUsecase
- func (ivu *IpPostUsecase) CreateIpPost(ctx context.Context, ipPost *IpPost) (*IpPost, error)
- func (ivu *IpPostUsecase) DeleteIpPost(ctx context.Context, name string) (*emptypb.Empty, error)
- func (ivu *IpPostUsecase) GetIpPost(ctx context.Context, name string) (*IpPost, error)
- func (ivu *IpPostUsecase) ListIpPosts(ctx context.Context, parent string) (*IpPosts, error)
- func (ivu *IpPostUsecase) UpdateIpPost(ctx context.Context, ipPost *IpPost) (*IpPost, error)
- type IpPosts
- type IpVote
- type IpVoteRepo
- type IpVoteUsecase
- func (ivu *IpVoteUsecase) CreateIpVote(ctx context.Context, ipVote *IpVote) (*IpVote, error)
- func (ivu *IpVoteUsecase) DeleteIpVote(ctx context.Context, name string) (*emptypb.Empty, error)
- func (ivu *IpVoteUsecase) GetIpVote(ctx context.Context, name string) (*IpVote, error)
- func (ivu *IpVoteUsecase) ListIpVotes(ctx context.Context, parent string) (*IpVotes, error)
- func (ivu *IpVoteUsecase) UpdateIpVote(ctx context.Context, ipVote *IpVote) (*IpVote, error)
- type IpVotes
- type PidVids
- type Post
- type PostRepo
- type PostUsecase
- func (pu *PostUsecase) CreatePost(ctx context.Context, post *Post) (*Post, error)
- func (pu *PostUsecase) DeletePost(ctx context.Context, name string) (*emptypb.Empty, error)
- func (pu *PostUsecase) GetPost(ctx context.Context, name string) (*Post, error)
- func (pu *PostUsecase) ListPosts(ctx context.Context, parent string) (*Posts, error)
- func (pu *PostUsecase) SearchPosts(ctx context.Context, name string) (*Posts, error)
- func (pu *PostUsecase) UpdatePost(ctx context.Context, post *Post) (*Post, error)
- type PostVote
- type PostVoteRepo
- type PostVoteUsecase
- func (pvu *PostVoteUsecase) CreatePostVote(ctx context.Context, postVote *PostVote) (*PostVote, error)
- func (pvu *PostVoteUsecase) DeletePostVote(ctx context.Context, name string) (*emptypb.Empty, error)
- func (pvu *PostVoteUsecase) GetByPidVid(ctx context.Context, name string) (*PostVote, error)
- func (pvu *PostVoteUsecase) GetPostVote(ctx context.Context, name string) (*PostVote, error)
- func (pvu *PostVoteUsecase) ListPostVotes(ctx context.Context, parent string) (*PostVotes, error)
- func (pvu *PostVoteUsecase) ListVidsByPid(ctx context.Context, name string) (*PidVids, error)
- func (pvu *PostVoteUsecase) UpdatePostVote(ctx context.Context, postVote *PostVote) (*PostVote, error)
- type PostVotes
- type Posts
- type User
- type UserRepo
- type UserUsecase
- func (uu *UserUsecase) CreateUser(ctx context.Context, user *User) (*User, error)
- func (uu *UserUsecase) DeleteUser(ctx context.Context, name string) (*emptypb.Empty, error)
- func (uu *UserUsecase) GetUser(ctx context.Context, name string) (*User, error)
- func (uu *UserUsecase) ListUsers(ctx context.Context, parent string) (*Users, error)
- func (uu *UserUsecase) PermanentlyDeleteUser(ctx context.Context, name string) (*emptypb.Empty, error)
- func (uu *UserUsecase) SearchUsers(ctx context.Context, name string) (*Users, error)
- func (uu *UserUsecase) UndeleteUser(ctx context.Context, name string) (*emptypb.Empty, error)
- func (uu *UserUsecase) UpdateUser(ctx context.Context, user *User) (*User, error)
- type Users
- type Vote
- type VoteRepo
- type VoteUsecase
- func (pu *VoteUsecase) CreateVote(ctx context.Context, vote *Vote) (*Vote, error)
- func (pu *VoteUsecase) DeleteVote(ctx context.Context, name string) (*emptypb.Empty, error)
- func (pu *VoteUsecase) GetVote(ctx context.Context, name string) (*Vote, error)
- func (pu *VoteUsecase) ListVotes(ctx context.Context, parent string) (*Votes, error)
- func (pu *VoteUsecase) SearchVotes(ctx context.Context, name string) (*Votes, error)
- func (pu *VoteUsecase) UpdateVote(ctx context.Context, vote *Vote) (*Vote, error)
- type Votes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IpPostRepo ¶
type IpPostRepo interface { ListIpPosts(ctx context.Context, parent string) (*IpPosts, error) GetIpPost(ctx context.Context, name string) (*IpPost, error) CreateIpPost(ctx context.Context, ipPost *IpPost) (*IpPost, error) UpdateIpPost(ctx context.Context, ipPost *IpPost) (*IpPost, error) DeleteIpPost(ctx context.Context, name string) (*emptypb.Empty, error) }
type IpPostUsecase ¶
type IpPostUsecase struct {
// contains filtered or unexported fields
}
func NewIpPostUsecase ¶
func NewIpPostUsecase(repo IpPostRepo, logger log.Logger) *IpPostUsecase
func (*IpPostUsecase) CreateIpPost ¶
func (*IpPostUsecase) DeleteIpPost ¶
func (*IpPostUsecase) ListIpPosts ¶
func (*IpPostUsecase) UpdateIpPost ¶
type IpVoteRepo ¶
type IpVoteRepo interface { ListIpVotes(ctx context.Context, parent string) (*IpVotes, error) GetIpVote(ctx context.Context, name string) (*IpVote, error) CreateIpVote(ctx context.Context, ipVote *IpVote) (*IpVote, error) UpdateIpVote(ctx context.Context, ipVote *IpVote) (*IpVote, error) DeleteIpVote(ctx context.Context, name string) (*emptypb.Empty, error) }
type IpVoteUsecase ¶
type IpVoteUsecase struct {
// contains filtered or unexported fields
}
func NewIpVoteUsecase ¶
func NewIpVoteUsecase(repo IpVoteRepo, logger log.Logger) *IpVoteUsecase
func (*IpVoteUsecase) CreateIpVote ¶
func (*IpVoteUsecase) DeleteIpVote ¶
func (*IpVoteUsecase) ListIpVotes ¶
func (*IpVoteUsecase) UpdateIpVote ¶
type PostRepo ¶
type PostRepo interface { ListPosts(ctx context.Context, parent string) (*Posts, error) GetPost(ctx context.Context, name string) (*Post, error) SearchPosts(ctx context.Context, name string) (*Posts, error) CreatePost(ctx context.Context, post *Post) (*Post, error) UpdatePost(ctx context.Context, post *Post) (*Post, error) DeletePost(ctx context.Context, name string) (*emptypb.Empty, error) }
type PostUsecase ¶
type PostUsecase struct {
// contains filtered or unexported fields
}
func NewPostUsecase ¶
func NewPostUsecase(repo PostRepo, logger log.Logger) *PostUsecase
func (*PostUsecase) CreatePost ¶
func (*PostUsecase) DeletePost ¶
func (*PostUsecase) SearchPosts ¶
func (*PostUsecase) UpdatePost ¶
type PostVoteRepo ¶
type PostVoteRepo interface { ListPostVotes(ctx context.Context, parent string) (*PostVotes, error) GetPostVote(ctx context.Context, name string) (*PostVote, error) GetByPidVid(ctx context.Context, name string) (*PostVote, error) ListVidsByPid(ctx context.Context, name string) (*PidVids, error) CreatePostVote(ctx context.Context, postVote *PostVote) (*PostVote, error) UpdatePostVote(ctx context.Context, postVote *PostVote) (*PostVote, error) DeletePostVote(ctx context.Context, name string) (*emptypb.Empty, error) }
type PostVoteUsecase ¶
type PostVoteUsecase struct {
// contains filtered or unexported fields
}
func NewPostVoteUsecase ¶
func NewPostVoteUsecase(repo PostVoteRepo, logger log.Logger) *PostVoteUsecase
func (*PostVoteUsecase) CreatePostVote ¶
func (*PostVoteUsecase) DeletePostVote ¶
func (*PostVoteUsecase) GetByPidVid ¶
func (*PostVoteUsecase) GetPostVote ¶
func (*PostVoteUsecase) ListPostVotes ¶
func (*PostVoteUsecase) ListVidsByPid ¶
func (*PostVoteUsecase) UpdatePostVote ¶
type UserRepo ¶
type UserRepo interface { ListUsers(ctx context.Context, parent string) (*Users, error) GetUser(ctx context.Context, name string) (*User, error) SearchUsers(ctx context.Context, name string) (*Users, error) CreateUser(ctx context.Context, user *User) (*User, error) UpdateUser(ctx context.Context, user *User) (*User, error) DeleteUser(ctx context.Context, name string) (*emptypb.Empty, error) UndeleteUser(ctx context.Context, name string) (*emptypb.Empty, error) PermanentlyDeleteUser(ctx context.Context, name string) (*emptypb.Empty, error) }
type UserUsecase ¶
type UserUsecase struct {
// contains filtered or unexported fields
}
func NewUserUsecase ¶
func NewUserUsecase(repo UserRepo, logger log.Logger) *UserUsecase
func (*UserUsecase) CreateUser ¶
func (*UserUsecase) DeleteUser ¶
func (*UserUsecase) PermanentlyDeleteUser ¶
func (*UserUsecase) SearchUsers ¶
func (*UserUsecase) UndeleteUser ¶
func (*UserUsecase) UpdateUser ¶
type VoteRepo ¶
type VoteRepo interface { ListVotes(ctx context.Context, parent string) (*Votes, error) GetVote(ctx context.Context, name string) (*Vote, error) SearchVotes(ctx context.Context, name string) (*Votes, error) CreateVote(ctx context.Context, vote *Vote) (*Vote, error) UpdateVote(ctx context.Context, vote *Vote) (*Vote, error) DeleteVote(ctx context.Context, name string) (*emptypb.Empty, error) }
type VoteUsecase ¶
type VoteUsecase struct {
// contains filtered or unexported fields
}
func NewVoteUsecase ¶
func NewVoteUsecase(repo VoteRepo, logger log.Logger) *VoteUsecase
func (*VoteUsecase) CreateVote ¶
func (*VoteUsecase) DeleteVote ¶
func (*VoteUsecase) SearchVotes ¶
func (*VoteUsecase) UpdateVote ¶
Click to show internal directories.
Click to hide internal directories.