Documentation ¶
Index ¶
- type CreatePostResponse
- type DeletePostResponse
- type DeleteSessionResponse
- type ForgotPasswordResponse
- type GetMeResponse
- type GetPostResponse
- type GetSessionResponse
- type GetSessionsEdgesResponse
- type GetSessionsNodesResponse
- type GetTotalSessionsCountResponse
- type GetTotalUserPostsCountResponse
- type GetUserPostsEdgesResponse
- type GetUserPostsNodesResponse
- type GetUserResponse
- type RefreshTokenResponse
- type SignInResponse
- type SignUpResponse
- type UpdatePostResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreatePostResponse ¶
type CreatePostResponse struct { // Create a new user post. CreatePost ksuid.KSUID `json:"createPost"` }
CreatePostResponse is returned by CreatePost on success.
func CreatePost ¶
func CreatePost( ctx context.Context, client graphql.Client, input types.CreatePostInput, ) (*CreatePostResponse, error)
func (*CreatePostResponse) GetCreatePost ¶
func (v *CreatePostResponse) GetCreatePost() ksuid.KSUID
GetCreatePost returns CreatePostResponse.CreatePost, and is useful for accessing the field via an interface.
type DeletePostResponse ¶
type DeletePostResponse struct { // Delete user post. DeletePost bool `json:"deletePost"` }
DeletePostResponse is returned by DeletePost on success.
func DeletePost ¶
func (*DeletePostResponse) GetDeletePost ¶
func (v *DeletePostResponse) GetDeletePost() bool
GetDeletePost returns DeletePostResponse.DeletePost, and is useful for accessing the field via an interface.
type DeleteSessionResponse ¶
type DeleteSessionResponse struct { // Delete user session. DeleteSession bool `json:"deleteSession"` }
DeleteSessionResponse is returned by DeleteSession on success.
func DeleteSession ¶
func (*DeleteSessionResponse) GetDeleteSession ¶
func (v *DeleteSessionResponse) GetDeleteSession() bool
GetDeleteSession returns DeleteSessionResponse.DeleteSession, and is useful for accessing the field via an interface.
type ForgotPasswordResponse ¶
type ForgotPasswordResponse struct { // Forgot user password. ForgotPassword bool `json:"forgotPassword"` }
ForgotPasswordResponse is returned by ForgotPassword on success.
func ForgotPassword ¶
func ForgotPassword( ctx context.Context, client graphql.Client, input types.ForgotPasswordInput, ) (*ForgotPasswordResponse, error)
func (*ForgotPasswordResponse) GetForgotPassword ¶
func (v *ForgotPasswordResponse) GetForgotPassword() bool
GetForgotPassword returns ForgotPasswordResponse.ForgotPassword, and is useful for accessing the field via an interface.
type GetMeResponse ¶
GetMeResponse is returned by GetMe on success.
func (*GetMeResponse) GetMe ¶
func (v *GetMeResponse) GetMe() types.User
GetMe returns GetMeResponse.Me, and is useful for accessing the field via an interface.
type GetPostResponse ¶
GetPostResponse is returned by GetPost on success.
func (*GetPostResponse) GetPost ¶
func (v *GetPostResponse) GetPost() *types.Post
GetPost returns GetPostResponse.Post, and is useful for accessing the field via an interface.
type GetSessionResponse ¶
GetSessionResponse is returned by GetSession on success.
func GetSession ¶
func (*GetSessionResponse) GetSession ¶
func (v *GetSessionResponse) GetSession() *types.Session
GetSession returns GetSessionResponse.Session, and is useful for accessing the field via an interface.
type GetSessionsEdgesResponse ¶
type GetSessionsEdgesResponse struct { // Getting user sessions. Sessions types.SessionConnection `json:"sessions"` }
GetSessionsEdgesResponse is returned by GetSessionsEdges on success.
func GetSessionsEdges ¶
func (*GetSessionsEdgesResponse) GetSessions ¶
func (v *GetSessionsEdgesResponse) GetSessions() types.SessionConnection
GetSessions returns GetSessionsEdgesResponse.Sessions, and is useful for accessing the field via an interface.
type GetSessionsNodesResponse ¶
type GetSessionsNodesResponse struct { // Getting user sessions. Sessions types.SessionConnection `json:"sessions"` }
GetSessionsNodesResponse is returned by GetSessionsNodes on success.
func GetSessionsNodes ¶
func (*GetSessionsNodesResponse) GetSessions ¶
func (v *GetSessionsNodesResponse) GetSessions() types.SessionConnection
GetSessions returns GetSessionsNodesResponse.Sessions, and is useful for accessing the field via an interface.
type GetTotalSessionsCountResponse ¶
type GetTotalSessionsCountResponse struct { // Getting user sessions. Sessions types.SessionConnection `json:"sessions"` }
GetTotalSessionsCountResponse is returned by GetTotalSessionsCount on success.
func GetTotalSessionsCount ¶
func (*GetTotalSessionsCountResponse) GetSessions ¶
func (v *GetTotalSessionsCountResponse) GetSessions() types.SessionConnection
GetSessions returns GetTotalSessionsCountResponse.Sessions, and is useful for accessing the field via an interface.
type GetTotalUserPostsCountResponse ¶
GetTotalUserPostsCountResponse is returned by GetTotalUserPostsCount on success.
func GetTotalUserPostsCount ¶
func (*GetTotalUserPostsCountResponse) GetUser ¶
func (v *GetTotalUserPostsCountResponse) GetUser() *types.User
GetUser returns GetTotalUserPostsCountResponse.User, and is useful for accessing the field via an interface.
type GetUserPostsEdgesResponse ¶
GetUserPostsEdgesResponse is returned by GetUserPostsEdges on success.
func GetUserPostsEdges ¶
func (*GetUserPostsEdgesResponse) GetUser ¶
func (v *GetUserPostsEdgesResponse) GetUser() *types.User
GetUser returns GetUserPostsEdgesResponse.User, and is useful for accessing the field via an interface.
type GetUserPostsNodesResponse ¶
GetUserPostsNodesResponse is returned by GetUserPostsNodes on success.
func GetUserPostsNodes ¶
func (*GetUserPostsNodesResponse) GetUser ¶
func (v *GetUserPostsNodesResponse) GetUser() *types.User
GetUser returns GetUserPostsNodesResponse.User, and is useful for accessing the field via an interface.
type GetUserResponse ¶
GetUserResponse is returned by GetUser on success.
func (*GetUserResponse) GetUser ¶
func (v *GetUserResponse) GetUser() *types.User
GetUser returns GetUserResponse.User, and is useful for accessing the field via an interface.
type RefreshTokenResponse ¶
type RefreshTokenResponse struct { // Refresh authorization token. RefreshToken string `json:"refreshToken"` }
RefreshTokenResponse is returned by RefreshToken on success.
func RefreshToken ¶
func RefreshToken( ctx context.Context, client graphql.Client, input types.SessionCredInput, ) (*RefreshTokenResponse, error)
func (*RefreshTokenResponse) GetRefreshToken ¶
func (v *RefreshTokenResponse) GetRefreshToken() string
GetRefreshToken returns RefreshTokenResponse.RefreshToken, and is useful for accessing the field via an interface.
type SignInResponse ¶
SignInResponse is returned by SignIn on success.
func SignIn ¶
func SignIn( ctx context.Context, client graphql.Client, input types.SignInInput, ) (*SignInResponse, error)
func (*SignInResponse) GetSignIn ¶
func (v *SignInResponse) GetSignIn() types.Tokens
GetSignIn returns SignInResponse.SignIn, and is useful for accessing the field via an interface.
type SignUpResponse ¶
SignUpResponse is returned by SignUp on success.
func SignUp ¶
func SignUp( ctx context.Context, client graphql.Client, input types.SignUpInput, ) (*SignUpResponse, error)
func (*SignUpResponse) GetSignUp ¶
func (v *SignUpResponse) GetSignUp() types.Tokens
GetSignUp returns SignUpResponse.SignUp, and is useful for accessing the field via an interface.
type UpdatePostResponse ¶
type UpdatePostResponse struct { // Update user post. UpdatePost bool `json:"updatePost"` }
UpdatePostResponse is returned by UpdatePost on success.
func UpdatePost ¶
func UpdatePost( ctx context.Context, client graphql.Client, input types.UpdatePostInput, ) (*UpdatePostResponse, error)
func (*UpdatePostResponse) GetUpdatePost ¶
func (v *UpdatePostResponse) GetUpdatePost() bool
GetUpdatePost returns UpdatePostResponse.UpdatePost, and is useful for accessing the field via an interface.