tenant

package
v1.99.5 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGotrueVersion

func GetGotrueVersion(ctx context.Context, projectRef string) (string, error)

func GetJsonResponse

func GetJsonResponse[T any](ctx context.Context, url, apiKey string) (*T, error)

func GetPostgrestVersion

func GetPostgrestVersion(ctx context.Context, projectRef string) (string, error)

Types

type ApiKey

type ApiKey struct {
	Anon        string
	ServiceRole string
}

func GetApiKeys

func GetApiKeys(ctx context.Context, projectRef string) (ApiKey, error)

func (ApiKey) IsEmpty added in v1.99.0

func (a ApiKey) IsEmpty() bool

type HealthResponse

type HealthResponse struct {
	Version     string `json:"version"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

type SwaggerInfo

type SwaggerInfo struct {
	Title       string `json:"title"`
	Description string `json:"description"`
	Version     string `json:"version"`
}

type SwaggerResponse

type SwaggerResponse struct {
	Swagger string      `json:"swagger"`
	Info    SwaggerInfo `json:"info"`
}

Jump to

Keyboard shortcuts

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