generated

package
v0.0.0-...-c013c52 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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 DeletePost(
	ctx context.Context,
	client graphql.Client,
	id ksuid.KSUID,
) (*DeletePostResponse, error)

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 DeleteSession(
	ctx context.Context,
	client graphql.Client,
	id ksuid.KSUID,
) (*DeleteSessionResponse, error)

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

type GetMeResponse struct {
	// Getting me.
	Me types.User `json:"me"`
}

GetMeResponse is returned by GetMe on success.

func GetMe

func GetMe(
	ctx context.Context,
	client graphql.Client,
) (*GetMeResponse, error)

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

type GetPostResponse struct {
	// Getting user post.
	Post *types.Post `json:"post"`
}

GetPostResponse is returned by GetPost on success.

func GetPost

func GetPost(
	ctx context.Context,
	client graphql.Client,
	id ksuid.KSUID,
) (*GetPostResponse, error)

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

type GetSessionResponse struct {
	// Getting user session.
	Session *types.Session `json:"session"`
}

GetSessionResponse is returned by GetSession on success.

func GetSession

func GetSession(
	ctx context.Context,
	client graphql.Client,
	id ksuid.KSUID,
) (*GetSessionResponse, error)

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 GetSessionsEdges(
	ctx context.Context,
	client graphql.Client,
	first *int,
	last *int,
	before *string,
	after *string,
) (*GetSessionsEdgesResponse, error)

func (*GetSessionsEdgesResponse) GetSessions

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 GetSessionsNodes(
	ctx context.Context,
	client graphql.Client,
	first *int,
	last *int,
	before *string,
	after *string,
) (*GetSessionsNodesResponse, error)

func (*GetSessionsNodesResponse) GetSessions

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 GetTotalSessionsCount(
	ctx context.Context,
	client graphql.Client,
) (*GetTotalSessionsCountResponse, error)

func (*GetTotalSessionsCountResponse) GetSessions

GetSessions returns GetTotalSessionsCountResponse.Sessions, and is useful for accessing the field via an interface.

type GetTotalUserPostsCountResponse

type GetTotalUserPostsCountResponse struct {
	// Getting user.
	User *types.User `json:"user"`
}

GetTotalUserPostsCountResponse is returned by GetTotalUserPostsCount on success.

func GetTotalUserPostsCount

func GetTotalUserPostsCount(
	ctx context.Context,
	client graphql.Client,
	userId ksuid.KSUID,
) (*GetTotalUserPostsCountResponse, error)

func (*GetTotalUserPostsCountResponse) GetUser

GetUser returns GetTotalUserPostsCountResponse.User, and is useful for accessing the field via an interface.

type GetUserPostsEdgesResponse

type GetUserPostsEdgesResponse struct {
	// Getting user.
	User *types.User `json:"user"`
}

GetUserPostsEdgesResponse is returned by GetUserPostsEdges on success.

func GetUserPostsEdges

func GetUserPostsEdges(
	ctx context.Context,
	client graphql.Client,
	userId ksuid.KSUID,
	first *int,
	last *int,
	before *string,
	after *string,
) (*GetUserPostsEdgesResponse, error)

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

type GetUserPostsNodesResponse struct {
	// Getting user.
	User *types.User `json:"user"`
}

GetUserPostsNodesResponse is returned by GetUserPostsNodes on success.

func GetUserPostsNodes

func GetUserPostsNodes(
	ctx context.Context,
	client graphql.Client,
	userId ksuid.KSUID,
	first *int,
	last *int,
	before *string,
	after *string,
) (*GetUserPostsNodesResponse, error)

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

type GetUserResponse struct {
	// Getting user.
	User *types.User `json:"user"`
}

GetUserResponse is returned by GetUser on success.

func GetUser

func GetUser(
	ctx context.Context,
	client graphql.Client,
	id ksuid.KSUID,
) (*GetUserResponse, error)

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

type SignInResponse struct {
	// User Sign In.
	SignIn types.Tokens `json:"signIn"`
}

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

type SignUpResponse struct {
	// User Sign Up.
	SignUp types.Tokens `json:"signUp"`
}

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.

Jump to

Keyboard shortcuts

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