client

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 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.
pkce
Package PKCE implements Proof Key for Code Exchange by OAuth Public Clients.
Package PKCE implements Proof Key for Code Exchange by OAuth Public Clients.

Jump to

Keyboard shortcuts

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