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 ¶
- type Client
- func (c *Client) CreateSession(ctx context.Context, accessToken string, request CreateSessionRequest) (Session, error)
- func (c *Client) EndSession(ctx context.Context, accessToken, sessionID string) error
- func (c *Client) GetSession(ctx context.Context, accessToken, spaceID string) (SessionMetadata, error)
- type CreateSessionRequest
- type Option
- type Session
- type SessionMetadata
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 (*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 ¶
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 Session ¶
type Session = cloud.DemoSession
type SessionMetadata ¶
type SessionMetadata = cloud.DemoSessionMetadata
Click to show internal directories.
Click to hide internal directories.