demo

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package demo is the public OpenVaultDB client for bounded local application demos. It has no private-backend dependency and keeps control-plane credentials out of the database protocol client.

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
}

Client calls the public Cloudflare control-plane facade.

func NewClient

func NewClient(baseURL string, options ...Option) (*Client, error)

func (*Client) CreateSession

func (c *Client) CreateSession(ctx context.Context, accessToken string, request CreateSessionRequest) (Session, error)

CreateSession creates a one-hour-or-less Listus demo session. The caller supplies a device token that has the demo:write scope.

func (*Client) EndSession

func (c *Client) EndSession(ctx context.Context, accessToken, sessionID string) error

EndSession ends the caller's session. It is safe to retry after success.

func (*Client) GetSession

func (c *Client) GetSession(ctx context.Context, accessToken, spaceID string) (SessionMetadata, error)

GetSession returns only safe active-session metadata for the owner.

type CreateSessionRequest

type CreateSessionRequest = cloud.CreateDemoSessionRequest

type Option

type Option = cloud.Option

type Session

type Session = cloud.DemoSession

type SessionMetadata

type SessionMetadata = cloud.DemoSessionMetadata

Jump to

Keyboard shortcuts

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