demo

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 2 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{}

Client is a demo client that returns realistic demo data for screenshots and demos. It implements the ports.NylasClient interface without requiring any credentials.

func New

func New() *Client

New creates a new demo client.

func (*Client) BuildAuthURL

func (d *Client) BuildAuthURL(provider domain.Provider, redirectURI string) string

BuildAuthURL returns a mock auth URL.

func (*Client) ExchangeCode

func (d *Client) ExchangeCode(ctx context.Context, code, redirectURI string) (*domain.Grant, error)

ExchangeCode returns a mock grant.

func (*Client) SetCredentials

func (d *Client) SetCredentials(clientID, clientSecret, apiKey string)

SetCredentials is a no-op for demo client.

func (*Client) SetRegion

func (d *Client) SetRegion(region string)

SetRegion is a no-op for demo client.

Jump to

Keyboard shortcuts

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