Documentation ¶
Index ¶
- func Schemas() []string
- type DB
- type Post
- type PostService
- type User
- func (u *User) CreateUser(user *app.User) error
- func (u *User) DeleteUser(id int64) error
- func (u *User) GenerateAuthToken(user *app.User) (string, error)
- func (u *User) GetUserPosts(userID int64) ([]*app.UserPosts, error)
- func (u *User) Login(email, password string) (*app.User, error)
- func (u *User) UpdateUser(user *app.User) error
- func (u *User) User(id int64) (*app.User, error)
- func (u *User) UserByEmail(email string) (*app.User, error)
- func (u *User) Users() ([]*app.User, error)
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PostService ¶
type PostService interface { app.PostService }
PostService implements the app.UserService
func NewPostSQLService ¶
func NewPostSQLService(db *sqlx.DB) PostService
NewPostSQLService returns the interface that implements the app.PostService
type User ¶
User implements the UserService interface
func (*User) GenerateAuthToken ¶
GenerateAuthToken ...
func (*User) GetUserPosts ¶
GetUserPosts returns a slice to pointer of UserPosts.
func (*User) UserByEmail ¶
UserByEmail ...
type UserService ¶
type UserService interface { app.UserService }
UserService implements the app.UserService
func NewUserSQLService ¶
func NewUserSQLService(db *sqlx.DB, jwtService *jwtservice.JWT) UserService
NewUserSQLService returns the interface that implements the app.UserService
Click to show internal directories.
Click to hide internal directories.