client

package
v0.1.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(
	apiKey string,
	projectID string,
	environment string,
	clientID string,
	clientSecret string,
	allowedOrigins []string,
	connectURL string,
	restURL string,
) *Client

func (*Client) APIKey

func (c *Client) APIKey() string

func (*Client) AcquireAccessToken

func (c *Client) AcquireAccessToken() error

func (*Client) AllowedOrigins

func (c *Client) AllowedOrigins() []string

func (*Client) ClientID

func (c *Client) ClientID() string

func (*Client) ClientSecret

func (c *Client) ClientSecret() string

func (*Client) ConnectURL

func (c *Client) ConnectURL() *url.URL

func (*Client) Environment

func (c *Client) Environment() string

func (*Client) HTTPClient

func (c *Client) HTTPClient() *http.Client

func (*Client) ProjectID

func (c *Client) ProjectID() string

func (*Client) RestURL

func (c *Client) RestURL() *url.URL

func (*Client) Token

func (c *Client) Token() *Token

type Token

type Token struct {
	AccessToken string `json:"access_token"`
	TokenType   string `json:"token_type,omitempty"`
	ExpiresIn   int    `json:"expires_in,omitempty"`
	CreatedAt   int    `json:"created_at,omitempty"`
	ExpiresAt   time.Time
}

Jump to

Keyboard shortcuts

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