api

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	API_PREFIX string = "api"
)

Variables

This section is empty.

Functions

func DeriveAppUrl

func DeriveAppUrl(canonicalUrl string) (string, error)

func DeriveSubdomainUrl

func DeriveSubdomainUrl(canonicalUrl string, subdomain string) (string, error)

func GetCanonicalApiUrl

func GetCanonicalApiUrl(url url.URL) (string, error)

func GetCanonicalApiUrlFromString

func GetCanonicalApiUrlFromString(userDefinedUrl string) (string, error)

Types

type ApiClient

type ApiClient interface {
	GetDefaultOrgId() (orgID string, err error)
	GetOrgIdFromSlug(slugName string) (string, error)
	Init(url string, client *http.Client)
}

func NewApi

func NewApi(url string, httpClient *http.Client) ApiClient

func NewApiInstance

func NewApiInstance() ApiClient

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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