Documentation
¶
Index ¶
- Variables
- func Configure()
- func GetEnvVariable(key string, path string) string
- type Account
- func (a *Account) GetLikedTwits(userId *account.AccountUUID, stream account.AccountService_GetLikedTwitsServer) error
- func (a *Account) GetRetwitedTwits(userId *account.AccountUUID, ...) error
- func (a *Account) GetUserTwits(userId *account.AccountUUID, stream account.AccountService_GetUserTwitsServer) error
- type List
- func (l *List) AddUserToCustomList(c context.Context, user *lists.UserWithList) (*lists.ListResponse, error)
- func (l *List) CreateCustomList(c context.Context, name *lists.ListName) (*lists.ListResponse, error)
- func (l *List) DeleteCustomList(c context.Context, id *lists.ListUUID) (*lists.ListResponse, error)
- func (l *List) GetListUsers(c context.Context, id *lists.ListUUID) (*lists.ListResponse, error)
- func (l *List) GetLists(userId *lists.UsersUUID, stream lists.ListService_GetListsServer) error
- func (l *List) GetUsersTwitsFromCustomList(id *lists.ListUUID, stream lists.ListService_GetUsersTwitsFromCustomListServer) error
- func (l *List) RemoveUserFromCustomList(c context.Context, user *lists.UserWithList) (*lists.ListResponse, error)
- type Reaction
- func (r *Reaction) GetTwitReactions(c context.Context, id *reactions.ReactionUUID) (*reactions.ActionResult, error)
- func (r *Reaction) ReactToTwit(c context.Context, action *reactions.UsersAction) (*reactions.ResponseReaction, error)
- func (r *Reaction) UnreactToTwit(c context.Context, action *reactions.UsersAction) (*reactions.ResponseReaction, error)
- type Twit
- func (t *Twit) DeleteTwit(c context.Context, id *twit.TwitUUID) (*twit.ResponseTwit, error)
- func (t *Twit) GetTwit(c context.Context, id *twit.TwitUUID) (*twit.Twit, error)
- func (t *Twit) GetTwits(n *emptypb.Empty, stream twit.TwitService_GetTwitsServer) error
- func (t *Twit) WriteTwit(c context.Context, input *twit.Twit) (*twit.ResponseTwit, error)
- type User
- func (u *User) CreateUser(c context.Context, input *user.User) (*user.UserResponse, error)
- func (u *User) DeleteUser(c context.Context, userid *user.UserUUID) (*user.UserResponse, error)
- func (u *User) GetUser(c context.Context, id *user.UserUUID) (*user.User, error)
- func (u *User) GetUsers(n *emptypb.Empty, stream user.UserService_GetUsersServer) error
- func (u *User) UpdateUser(c context.Context, newUser *user.User) (*user.User, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Client *mongo.Client
View Source
var MongoCtx context.Context
Functions ¶
func GetEnvVariable ¶
Types ¶
type Account ¶
type Account struct {
account.UnimplementedAccountServiceServer
}
func (*Account) GetLikedTwits ¶
func (a *Account) GetLikedTwits(userId *account.AccountUUID, stream account.AccountService_GetLikedTwitsServer) error
func (*Account) GetRetwitedTwits ¶
func (a *Account) GetRetwitedTwits(userId *account.AccountUUID, stream account.AccountService_GetRetwitedTwitsServer) error
func (*Account) GetUserTwits ¶
func (a *Account) GetUserTwits(userId *account.AccountUUID, stream account.AccountService_GetUserTwitsServer) error
type List ¶
type List struct {
lists.UnimplementedListServiceServer
}
func (*List) AddUserToCustomList ¶
func (l *List) AddUserToCustomList(c context.Context, user *lists.UserWithList) (*lists.ListResponse, error)
func (*List) CreateCustomList ¶
func (*List) DeleteCustomList ¶
func (*List) GetListUsers ¶
func (*List) GetUsersTwitsFromCustomList ¶
func (*List) RemoveUserFromCustomList ¶
func (l *List) RemoveUserFromCustomList(c context.Context, user *lists.UserWithList) (*lists.ListResponse, error)
type Reaction ¶
type Reaction struct {
reactions.UnimplementedReactionServiceServer
}
func (*Reaction) GetTwitReactions ¶
func (r *Reaction) GetTwitReactions(c context.Context, id *reactions.ReactionUUID) (*reactions.ActionResult, error)
func (*Reaction) ReactToTwit ¶
func (r *Reaction) ReactToTwit(c context.Context, action *reactions.UsersAction) (*reactions.ResponseReaction, error)
func (*Reaction) UnreactToTwit ¶
func (r *Reaction) UnreactToTwit(c context.Context, action *reactions.UsersAction) (*reactions.ResponseReaction, error)
type Twit ¶
type Twit struct {
twit.UnimplementedTwitServiceServer
}
func (*Twit) DeleteTwit ¶
type User ¶
type User struct {
user.UnimplementedUserServiceServer
}
func (*User) CreateUser ¶
func (*User) DeleteUser ¶
Click to show internal directories.
Click to hide internal directories.