Documentation ¶
Index ¶
- type ChangePasswordResponse
- type ChangeProfileResponse
- type GetMyProfileResponse
- type Resolvers
- func (r *Resolvers) ChangePassword(ctx context.Context, args changePasswordMutationArgs) (*ChangePasswordResponse, error)
- func (r *Resolvers) ChangeProfile(ctx context.Context, args changeProfileMutationArgs) (*ChangeProfileResponse, error)
- func (r *Resolvers) GetMyProfile(ctx context.Context) (*GetMyProfileResponse, error)
- func (r *Resolvers) SignIn(args signInMutationArgs) (*SignInResponse, error)
- func (r *Resolvers) SignUp(args signUpMutationArgs) (*SignUpResponse, error)
- type SignInResponse
- type SignUpResponse
- type UserResponse
- func (r *UserResponse) Avatar() *string
- func (r *UserResponse) Bio() *string
- func (r *UserResponse) CreatedAt() string
- func (r *UserResponse) Email() string
- func (r *UserResponse) FirstName() string
- func (r *UserResponse) ID() graphql.ID
- func (r *UserResponse) LastName() string
- func (r *UserResponse) Password() string
- func (r *UserResponse) UpdatedAt() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangePasswordResponse ¶
type ChangePasswordResponse struct { Status bool Msg *string User *UserResponse }
ChangePasswordResponse is the response type
func (*ChangePasswordResponse) Error ¶
func (r *ChangePasswordResponse) Error() *string
Error for ChangePasswordResponse
func (*ChangePasswordResponse) Ok ¶
func (r *ChangePasswordResponse) Ok() bool
Ok for ChangePasswordResponse
type ChangeProfileResponse ¶
type ChangeProfileResponse struct { Status bool Msg *string User *UserResponse }
ChangeProfileResponse is the response type
func (*ChangeProfileResponse) Error ¶
func (r *ChangeProfileResponse) Error() *string
Error for ChangeProfileResponse
func (*ChangeProfileResponse) Ok ¶
func (r *ChangeProfileResponse) Ok() bool
Ok for ChangeProfileResponse
type GetMyProfileResponse ¶
type GetMyProfileResponse struct { Status bool Msg *string User *UserResponse }
GetMyProfileResponse is the response type
func (*GetMyProfileResponse) Error ¶
func (r *GetMyProfileResponse) Error() *string
Error for GetMyProfileResponse
func (*GetMyProfileResponse) Ok ¶
func (r *GetMyProfileResponse) Ok() bool
Ok for GetMyProfileResponse
type Resolvers ¶
Resolvers including query and mutation
func (*Resolvers) ChangePassword ¶
func (r *Resolvers) ChangePassword(ctx context.Context, args changePasswordMutationArgs) (*ChangePasswordResponse, error)
ChangePassword mutation change password
func (*Resolvers) ChangeProfile ¶
func (r *Resolvers) ChangeProfile(ctx context.Context, args changeProfileMutationArgs) (*ChangeProfileResponse, error)
ChangeProfile mutation change profile
func (*Resolvers) GetMyProfile ¶
func (r *Resolvers) GetMyProfile(ctx context.Context) (*GetMyProfileResponse, error)
GetMyProfile resolver
func (*Resolvers) SignIn ¶
func (r *Resolvers) SignIn(args signInMutationArgs) (*SignInResponse, error)
SignIn mutation creates user
func (*Resolvers) SignUp ¶
func (r *Resolvers) SignUp(args signUpMutationArgs) (*SignUpResponse, error)
SignUp mutation creates user
type SignInResponse ¶
SignInResponse is the response type
type SignUpResponse ¶
type SignUpResponse struct { Status bool Msg *string User *UserResponse }
SignUpResponse is the response type
type UserResponse ¶
type UserResponse struct {
// contains filtered or unexported fields
}
UserResponse is the user response type
func (*UserResponse) CreatedAt ¶
func (r *UserResponse) CreatedAt() string
CreatedAt for UserResponse
func (*UserResponse) FirstName ¶
func (r *UserResponse) FirstName() string
FirstName for UserResponse
func (*UserResponse) UpdatedAt ¶
func (r *UserResponse) UpdatedAt() string
UpdatedAt for UserResponse