Documentation ¶
Index ¶
- func FollowEndpoint(s realworld.UserService) endpoint.Endpoint
- func GetEndpoint(s realworld.UserService) endpoint.Endpoint
- func GetProfileEndpoint(s realworld.UserService) endpoint.Endpoint
- func LoginEndpoint(s realworld.UserService) endpoint.Endpoint
- func RegisterEndpoint(s realworld.UserService) endpoint.Endpoint
- func UnfollowEndpoint(s realworld.UserService) endpoint.Endpoint
- func UpdateEndpoint(s realworld.UserService) endpoint.Endpoint
- type GetRequest
- type LoginRequest
- type ProfileRequest
- type ProfileResponse
- type RegisterRequest
- type Response
- type Service
- func (s Service) Follow(req realworld.FollowRequest) (*realworld.User, error)
- func (s Service) Get(u realworld.User) (*realworld.User, error)
- func (s Service) GetProfile(user realworld.User) (*realworld.User, error)
- func (s Service) Login(u realworld.User) (*realworld.User, error)
- func (s Service) Register(u realworld.User) (*realworld.User, error)
- func (s Service) Unfollow(req realworld.FollowRequest) (*realworld.User, error)
- func (s Service) Update(u realworld.User) (*realworld.User, error)
- type UpdateRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FollowEndpoint ¶
func FollowEndpoint(s realworld.UserService) endpoint.Endpoint
func GetEndpoint ¶
func GetEndpoint(s realworld.UserService) endpoint.Endpoint
func GetProfileEndpoint ¶
func GetProfileEndpoint(s realworld.UserService) endpoint.Endpoint
func LoginEndpoint ¶
func LoginEndpoint(s realworld.UserService) endpoint.Endpoint
func RegisterEndpoint ¶
func RegisterEndpoint(s realworld.UserService) endpoint.Endpoint
func UnfollowEndpoint ¶
func UnfollowEndpoint(s realworld.UserService) endpoint.Endpoint
func UpdateEndpoint ¶
func UpdateEndpoint(s realworld.UserService) endpoint.Endpoint
Types ¶
type GetRequest ¶
type GetRequest struct {
ID int64
}
type LoginRequest ¶
type ProfileRequest ¶
type ProfileResponse ¶
type ProfileResponse struct { ID int64 Username string Bio realworld.Bio Image realworld.Image Following bool Err error }
func NewProfileResponse ¶
func NewProfileResponse(u *realworld.User, viewerID int64, err error) ProfileResponse
func (ProfileResponse) Failed ¶
func (r ProfileResponse) Failed() error
type RegisterRequest ¶
type Response ¶
Click to show internal directories.
Click to hide internal directories.