app

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(ctx context.Context, root, apiBaseURL, deviceID string, w config.Workspace) error

func Run

func Run(ctx context.Context, root string, senders SenderFactory) error

Types

type Sender

type Sender interface {
	Send(context.Context, string, []byte) error
}

type SenderFactory

type SenderFactory func(context.Context, config.Backend) (Sender, error)

SenderFactory builds the publisher for one backend. A profile holds one per distinct backend, so the credential a factory reads is the one stored for that backend's device identity.

func NewHostedSenders

func NewHostedSenders() SenderFactory

NewHostedSenders is the production publisher factory: one client per backend, each authenticated as the device identity this profile enrolled with that backend. A profile holding a local Project and a team Project therefore holds two credentials and two clients, and neither can be used against the other's server.

type Service

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

Jump to

Keyboard shortcuts

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