client

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseURL = "https://axiom.co"

	AppURL   = "https://app.axiom.co"
	APIURL   = "https://api.axiom.co"
	LoginURL = "https://login.axiom.co"
)

URLs of the hosted Axiom deployment.

Variables

This section is empty.

Functions

func GetAPIURL added in v0.9.0

func GetAPIURL(baseURL string) (string, error)

GetAPIURL returns the api URL for the given deployment URL.

func GetAppURL added in v0.9.0

func GetAppURL(baseURL string) (string, error)

GetAppURL returns the app URL for the given deployment URL.

func GetLoginURL added in v0.9.0

func GetLoginURL(baseURL string) (string, error)

GetLoginURL returns the login URL for the given deployment URL.

func IsPersonalToken added in v0.2.0

func IsPersonalToken(token string) bool

IsPersonalToken returns true if the given token is a personal token.

func New

func New(ctx context.Context, baseURL, accessToken, orgID string, insecure bool) (*axiom.Client, error)

New returns a new Axiom client.

Types

This section is empty.

Directories

Path Synopsis
Package auth implements the authentication flow to login to Axiom by visiting a URL.
Package auth implements the authentication flow to login to Axiom by visiting a URL.
assets
Package assets contains assets for the auth package.
Package assets contains assets for the auth package.

Jump to

Keyboard shortcuts

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