resolvers

package
v0.0.0-...-a1c7362 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2019 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

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

type Resolvers struct {
	*db.DB
}

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

type SignInResponse struct {
	Status bool
	Msg    *string
	Token  *string
}

SignInResponse is the response type

func (*SignInResponse) Error

func (r *SignInResponse) Error() *string

Error for SignUpResponse

func (*SignInResponse) Ok

func (r *SignInResponse) Ok() bool

Ok for SignUpResponse

type SignUpResponse

type SignUpResponse struct {
	Status bool
	Msg    *string
	User   *UserResponse
}

SignUpResponse is the response type

func (*SignUpResponse) Error

func (r *SignUpResponse) Error() *string

Error for SignUpResponse

func (*SignUpResponse) Ok

func (r *SignUpResponse) Ok() bool

Ok for SignUpResponse

type UserResponse

type UserResponse struct {
	// contains filtered or unexported fields
}

UserResponse is the user response type

func (*UserResponse) Avatar

func (r *UserResponse) Avatar() *string

Avatar for UserResponse

func (*UserResponse) Bio

func (r *UserResponse) Bio() *string

Bio for UserResponse

func (*UserResponse) CreatedAt

func (r *UserResponse) CreatedAt() string

CreatedAt for UserResponse

func (*UserResponse) Email

func (r *UserResponse) Email() string

Email for UserResponse

func (*UserResponse) FirstName

func (r *UserResponse) FirstName() string

FirstName for UserResponse

func (*UserResponse) ID

func (r *UserResponse) ID() graphql.ID

ID for UserResponse

func (*UserResponse) LastName

func (r *UserResponse) LastName() string

LastName for UserResponse

func (*UserResponse) Password

func (r *UserResponse) Password() string

Password for UserResponse

func (*UserResponse) UpdatedAt

func (r *UserResponse) UpdatedAt() string

UpdatedAt for UserResponse

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL