Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) EnableTokenAutoRefresh(session types.Session)
- func (c *Client) From(table string) *postgrest.QueryBuilder
- func (c *Client) RefreshToken(refreshToken string) (types.Session, error)
- func (c *Client) Rpc(name, count string, rpcBody interface{}) string
- func (c *Client) SignInWithEmailPassword(email, password string) (types.Session, error)
- func (c *Client) SignInWithPhonePassword(phone, password string) (types.Session, error)
- func (c *Client) UpdateAuthSession(session types.Session)
- type ClientOptions
Constants ¶
View Source
const ( REST_URL = "/rest/v1" STORGAGE_URL = "/storage/v1" AUTH_URL = "/auth/v1" FUNCTIONS_URL = "/functions/v1" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Storage *storage_go.Client // Auth is an interface. We don't need a pointer to an interface. Auth gotrue.Client Functions *functions.Client // contains filtered or unexported fields }
func NewClient ¶
func NewClient(url, key string, options *ClientOptions) (*Client, error)
NewClient creates a new Supabase client. url is the Supabase URL. key is the Supabase API key. options is the Supabase client options.
func (*Client) EnableTokenAutoRefresh ¶ added in v0.0.2
func (*Client) From ¶
func (c *Client) From(table string) *postgrest.QueryBuilder
Wrap postgrest From method From returns a QueryBuilder for the specified table.
func (*Client) RefreshToken ¶ added in v0.0.2
func (*Client) SignInWithEmailPassword ¶ added in v0.0.2
func (*Client) SignInWithPhonePassword ¶ added in v0.0.2
func (*Client) UpdateAuthSession ¶ added in v0.0.2
type ClientOptions ¶
Click to show internal directories.
Click to hide internal directories.