Documentation
¶
Index ¶
- type Client
- func (c *Client) Delete(table string) *db.DeleteBuilder
- func (c *Client) From(table string) *db.SelectBuilder
- func (c *Client) GetUser(ctx context.Context) (user *auth.User, err error)
- func (c *Client) Insert(table string) *db.InsertBuilder
- func (c *Client) RefreshToken(ctx context.Context) (err error)
- func (c *Client) SignIn(ctx context.Context, email string, password string) (err error)
- func (c *Client) SignInWithMagicLink(ctx context.Context, email string) (err error)
- func (c *Client) SignInWithToken(ctx context.Context, token string) (user *auth.User, err error)
- func (c *Client) SignOut(ctx context.Context) (err error)
- func (c *Client) SignUp(ctx context.Context, email string, password string) (user *auth.User, err error)
- func (c *Client) Update(table string) *db.UpdateBuilder
- func (c *Client) Upsert(table string) *db.InsertBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Delete ¶
func (c *Client) Delete(table string) *db.DeleteBuilder
DB: Creates a new delete query
func (*Client) From ¶
func (c *Client) From(table string) *db.SelectBuilder
DB: Creates a new select query
func (*Client) Insert ¶
func (c *Client) Insert(table string) *db.InsertBuilder
DB: Creates a new insert query
func (*Client) RefreshToken ¶
AUTH: Refresh the access token
func (*Client) SignInWithMagicLink ¶
AUTH: Send a magic link to the given email address
func (*Client) SignInWithToken ¶
AUTH: Sign in with a token
func (*Client) SignUp ¶
func (c *Client) SignUp(ctx context.Context, email string, password string) (user *auth.User, err error)
AUTH: Sign up a new user with the given credentials
Click to show internal directories.
Click to hide internal directories.