syncplanev1connect

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AdminServiceRegisterProcedure is the fully-qualified name of the AdminService's Register RPC.
	AdminServiceRegisterProcedure = "/syncplane.v1.AdminService/Register"
	// AdminServiceGetSchemaProcedure is the fully-qualified name of the AdminService's GetSchema RPC.
	AdminServiceGetSchemaProcedure = "/syncplane.v1.AdminService/GetSchema"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// BlobServiceBeginUploadProcedure is the fully-qualified name of the BlobService's BeginUpload RPC.
	BlobServiceBeginUploadProcedure = "/syncplane.v1.BlobService/BeginUpload"
	// BlobServicePutChunkProcedure is the fully-qualified name of the BlobService's PutChunk RPC.
	BlobServicePutChunkProcedure = "/syncplane.v1.BlobService/PutChunk"
	// BlobServiceStatBlobsProcedure is the fully-qualified name of the BlobService's StatBlobs RPC.
	BlobServiceStatBlobsProcedure = "/syncplane.v1.BlobService/StatBlobs"
	// BlobServiceGetChunkProcedure is the fully-qualified name of the BlobService's GetChunk RPC.
	BlobServiceGetChunkProcedure = "/syncplane.v1.BlobService/GetChunk"
	// BlobServiceWatchBlobsProcedure is the fully-qualified name of the BlobService's WatchBlobs RPC.
	BlobServiceWatchBlobsProcedure = "/syncplane.v1.BlobService/WatchBlobs"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// PresenceServiceWatchProcedure is the fully-qualified name of the PresenceService's Watch RPC.
	PresenceServiceWatchProcedure = "/syncplane.v1.PresenceService/Watch"
	// PresenceServicePublishProcedure is the fully-qualified name of the PresenceService's Publish RPC.
	PresenceServicePublishProcedure = "/syncplane.v1.PresenceService/Publish"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// SyncServicePushProcedure is the fully-qualified name of the SyncService's Push RPC.
	SyncServicePushProcedure = "/syncplane.v1.SyncService/Push"
	// SyncServicePullProcedure is the fully-qualified name of the SyncService's Pull RPC.
	SyncServicePullProcedure = "/syncplane.v1.SyncService/Pull"
	// SyncServiceBootstrapProcedure is the fully-qualified name of the SyncService's Bootstrap RPC.
	SyncServiceBootstrapProcedure = "/syncplane.v1.SyncService/Bootstrap"
	// SyncServiceSubscribeProcedure is the fully-qualified name of the SyncService's Subscribe RPC.
	SyncServiceSubscribeProcedure = "/syncplane.v1.SyncService/Subscribe"
	// SyncServiceQueryProcedure is the fully-qualified name of the SyncService's Query RPC.
	SyncServiceQueryProcedure = "/syncplane.v1.SyncService/Query"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// AdminServiceName is the fully-qualified name of the AdminService service.
	AdminServiceName = "syncplane.v1.AdminService"
)
View Source
const (
	// BlobServiceName is the fully-qualified name of the BlobService service.
	BlobServiceName = "syncplane.v1.BlobService"
)
View Source
const (
	// PresenceServiceName is the fully-qualified name of the PresenceService service.
	PresenceServiceName = "syncplane.v1.PresenceService"
)
View Source
const (
	// SyncServiceName is the fully-qualified name of the SyncService service.
	SyncServiceName = "syncplane.v1.SyncService"
)

Variables

This section is empty.

Functions

func NewAdminServiceHandler

func NewAdminServiceHandler(svc AdminServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewAdminServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewBlobServiceHandler added in v0.4.0

func NewBlobServiceHandler(svc BlobServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewBlobServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewPresenceServiceHandler

func NewPresenceServiceHandler(svc PresenceServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewPresenceServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewSyncServiceHandler

func NewSyncServiceHandler(svc SyncServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewSyncServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

Types

type AdminServiceClient

type AdminServiceClient interface {
	// Registers or evolves an application schema for CRUD synchronization.
	//
	// This operation is idempotent:
	//   - Registering an application that was not registered before returns
	//     `REGISTER_STATUS_CREATED`.
	//   - Submitting an additive evolution returns `REGISTER_STATUS_UPDATED`.
	//   - Submitting an identical schema returns `REGISTER_STATUS_UNCHANGED`.
	//
	// The server rejects conflicting schema changes. If `expected_revision` is
	// set and does not match the current application revision, the server
	// rejects the call with `FAILED_PRECONDITION`.
	Register(context.Context, *connect.Request[v1.RegisterRequest]) (*connect.Response[v1.RegisterResponse], error)
	// Retrieves the persisted descriptor set for an application.
	//
	// If the application is unknown, the server returns a response with
	// `found` set to `false` and an empty `descriptor_set`.
	GetSchema(context.Context, *connect.Request[v1.GetSchemaRequest]) (*connect.Response[v1.GetSchemaResponse], error)
}

AdminServiceClient is a client for the syncplane.v1.AdminService service.

func NewAdminServiceClient

func NewAdminServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AdminServiceClient

NewAdminServiceClient constructs a client for the syncplane.v1.AdminService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type AdminServiceHandler

type AdminServiceHandler interface {
	// Registers or evolves an application schema for CRUD synchronization.
	//
	// This operation is idempotent:
	//   - Registering an application that was not registered before returns
	//     `REGISTER_STATUS_CREATED`.
	//   - Submitting an additive evolution returns `REGISTER_STATUS_UPDATED`.
	//   - Submitting an identical schema returns `REGISTER_STATUS_UNCHANGED`.
	//
	// The server rejects conflicting schema changes. If `expected_revision` is
	// set and does not match the current application revision, the server
	// rejects the call with `FAILED_PRECONDITION`.
	Register(context.Context, *connect.Request[v1.RegisterRequest]) (*connect.Response[v1.RegisterResponse], error)
	// Retrieves the persisted descriptor set for an application.
	//
	// If the application is unknown, the server returns a response with
	// `found` set to `false` and an empty `descriptor_set`.
	GetSchema(context.Context, *connect.Request[v1.GetSchemaRequest]) (*connect.Response[v1.GetSchemaResponse], error)
}

AdminServiceHandler is an implementation of the syncplane.v1.AdminService service.

type BlobServiceClient added in v0.4.0

type BlobServiceClient interface {
	// Starts or resumes the upload of one blob.
	//
	// The caller must have access to the workspace. Calling it again for the
	// same digest is safe and returns the current state. A blob that is
	// already complete returns `BLOB_STATE_COMPLETE` and no missing chunks.
	//
	// Fails with `invalid_argument` when the digest is malformed, when the
	// number of chunk hashes does not match the size, or when the chunk hashes
	// do not produce the digest. Fails with `resource_exhausted` when the size
	// is above the server's blob size limit. Fails with `permission_denied`
	// when the server's upload policy refuses the caller.
	//
	// The answer for a complete blob tells the caller that the server stores
	// it. A caller learns that only by sending every chunk hash, which only a
	// holder of the bytes, or a reader of the blob, has.
	BeginUpload(context.Context, *connect.Request[v1.BeginUploadRequest]) (*connect.Response[v1.BeginUploadResponse], error)
	// Stores one chunk of a blob whose upload `BeginUpload` started.
	//
	// The server checks the chunk against its hash from `BeginUpload` and
	// fails with `invalid_argument` when they differ. Storing a chunk that is
	// already stored is safe. The response reports `BLOB_STATE_COMPLETE` once
	// the blob has every chunk. Fails with `failed_precondition` when no
	// upload of the digest was started, or when the upload expired.
	//
	// When no upload is staged but the blob is complete, the response is
	// `BLOB_STATE_COMPLETE` only when the chunk matches the blob. Otherwise
	// it fails with `failed_precondition`, exactly as for a digest the server
	// does not have, so the call does not tell whether the server stores a
	// blob. Fails with `invalid_argument` when the digest is malformed.
	PutChunk(context.Context, *connect.Request[v1.PutChunkRequest]) (*connect.Response[v1.PutChunkResponse], error)
	// Reports the state of blobs.
	//
	// The caller learns the state only of a blob that a row it can read
	// refers to. Every other digest reports `BLOB_STATE_MISSING`, whether or
	// not the server stores it.
	//
	// Fails with `invalid_argument` when a digest is malformed, or when the
	// request names more than 256 digests.
	StatBlobs(context.Context, *connect.Request[v1.StatBlobsRequest]) (*connect.Response[v1.StatBlobsResponse], error)
	// Returns one chunk of a complete blob.
	//
	// Fails with `not_found` when no row the caller can read refers to the
	// blob, or when the blob is not complete yet. Fails with `out_of_range`
	// when the index is past the last chunk. Fails with `invalid_argument`
	// when the digest is malformed.
	GetChunk(context.Context, *connect.Request[v1.GetChunkRequest]) (*connect.Response[v1.GetChunkResponse], error)
	// Streams the state of blobs the caller waits for, so a client learns that
	// an upload from another device is complete without polling.
	//
	// The first message holds the state of every requested digest, in request
	// order, as `StatBlobs` reports it. After that, the server checks the
	// digests again when the workspace changes or an upload into it
	// completes, and sends a message that holds only the digests whose state
	// changed. A digest can skip a state: it can go from `BLOB_STATE_MISSING`
	// to `BLOB_STATE_COMPLETE` with no `BLOB_STATE_UPLOADING` message.
	// The same read rule as `StatBlobs` applies at every message: a digest the
	// caller cannot read stays `BLOB_STATE_MISSING`, and becomes
	// `BLOB_STATE_COMPLETE` when the blob is complete and a row the caller can
	// read refers to it. A message with no blobs is a keepalive.
	//
	// The server checks the caller's workspace access again at each
	// keepalive and ends the stream with the gate's error when the access is
	// gone, for example `permission_denied` tagged
	// `workspace_access_revoked`.
	//
	// The server ends the stream with OK after it has reported every digest
	// as `BLOB_STATE_COMPLETE`. To watch a different set of digests, close
	// the stream and open a new one.
	//
	// Fails with `invalid_argument` when a digest is malformed, when the
	// request names no digests, or when it names more than 256.
	WatchBlobs(context.Context, *connect.Request[v1.WatchBlobsRequest]) (*connect.ServerStreamForClient[v1.WatchBlobsResponse], error)
}

BlobServiceClient is a client for the syncplane.v1.BlobService service.

func NewBlobServiceClient added in v0.4.0

func NewBlobServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) BlobServiceClient

NewBlobServiceClient constructs a client for the syncplane.v1.BlobService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type BlobServiceHandler added in v0.4.0

type BlobServiceHandler interface {
	// Starts or resumes the upload of one blob.
	//
	// The caller must have access to the workspace. Calling it again for the
	// same digest is safe and returns the current state. A blob that is
	// already complete returns `BLOB_STATE_COMPLETE` and no missing chunks.
	//
	// Fails with `invalid_argument` when the digest is malformed, when the
	// number of chunk hashes does not match the size, or when the chunk hashes
	// do not produce the digest. Fails with `resource_exhausted` when the size
	// is above the server's blob size limit. Fails with `permission_denied`
	// when the server's upload policy refuses the caller.
	//
	// The answer for a complete blob tells the caller that the server stores
	// it. A caller learns that only by sending every chunk hash, which only a
	// holder of the bytes, or a reader of the blob, has.
	BeginUpload(context.Context, *connect.Request[v1.BeginUploadRequest]) (*connect.Response[v1.BeginUploadResponse], error)
	// Stores one chunk of a blob whose upload `BeginUpload` started.
	//
	// The server checks the chunk against its hash from `BeginUpload` and
	// fails with `invalid_argument` when they differ. Storing a chunk that is
	// already stored is safe. The response reports `BLOB_STATE_COMPLETE` once
	// the blob has every chunk. Fails with `failed_precondition` when no
	// upload of the digest was started, or when the upload expired.
	//
	// When no upload is staged but the blob is complete, the response is
	// `BLOB_STATE_COMPLETE` only when the chunk matches the blob. Otherwise
	// it fails with `failed_precondition`, exactly as for a digest the server
	// does not have, so the call does not tell whether the server stores a
	// blob. Fails with `invalid_argument` when the digest is malformed.
	PutChunk(context.Context, *connect.Request[v1.PutChunkRequest]) (*connect.Response[v1.PutChunkResponse], error)
	// Reports the state of blobs.
	//
	// The caller learns the state only of a blob that a row it can read
	// refers to. Every other digest reports `BLOB_STATE_MISSING`, whether or
	// not the server stores it.
	//
	// Fails with `invalid_argument` when a digest is malformed, or when the
	// request names more than 256 digests.
	StatBlobs(context.Context, *connect.Request[v1.StatBlobsRequest]) (*connect.Response[v1.StatBlobsResponse], error)
	// Returns one chunk of a complete blob.
	//
	// Fails with `not_found` when no row the caller can read refers to the
	// blob, or when the blob is not complete yet. Fails with `out_of_range`
	// when the index is past the last chunk. Fails with `invalid_argument`
	// when the digest is malformed.
	GetChunk(context.Context, *connect.Request[v1.GetChunkRequest]) (*connect.Response[v1.GetChunkResponse], error)
	// Streams the state of blobs the caller waits for, so a client learns that
	// an upload from another device is complete without polling.
	//
	// The first message holds the state of every requested digest, in request
	// order, as `StatBlobs` reports it. After that, the server checks the
	// digests again when the workspace changes or an upload into it
	// completes, and sends a message that holds only the digests whose state
	// changed. A digest can skip a state: it can go from `BLOB_STATE_MISSING`
	// to `BLOB_STATE_COMPLETE` with no `BLOB_STATE_UPLOADING` message.
	// The same read rule as `StatBlobs` applies at every message: a digest the
	// caller cannot read stays `BLOB_STATE_MISSING`, and becomes
	// `BLOB_STATE_COMPLETE` when the blob is complete and a row the caller can
	// read refers to it. A message with no blobs is a keepalive.
	//
	// The server checks the caller's workspace access again at each
	// keepalive and ends the stream with the gate's error when the access is
	// gone, for example `permission_denied` tagged
	// `workspace_access_revoked`.
	//
	// The server ends the stream with OK after it has reported every digest
	// as `BLOB_STATE_COMPLETE`. To watch a different set of digests, close
	// the stream and open a new one.
	//
	// Fails with `invalid_argument` when a digest is malformed, when the
	// request names no digests, or when it names more than 256.
	WatchBlobs(context.Context, *connect.Request[v1.WatchBlobsRequest], *connect.ServerStream[v1.WatchBlobsResponse]) error
}

BlobServiceHandler is an implementation of the syncplane.v1.BlobService service.

type PresenceServiceClient

type PresenceServiceClient interface {
	// Streams presence updates and broadcast messages for a fixed set of
	// topics.
	//
	// The stream first sends a `RoomSnapshot` for each watched topic, followed
	// by participant updates, departures, and broadcast messages as they
	// occur. The set of watched topics is fixed for the lifetime of the
	// stream. To change topics, close and reopen the stream.
	//
	// Delivery is at-most-once and unordered across topics. Dropped presence
	// updates are corrected by periodic re-announcements, but dropped
	// broadcast messages are not replayed.
	Watch(context.Context, *connect.Request[v1.WatchRequest]) (*connect.ServerStreamForClient[v1.WatchResponse], error)
	// Publishes presence state updates, broadcast messages, or departure
	// notices for a session.
	//
	// The server assigns the participant identity from the request principal.
	// The request payload cannot specify or override the sender identity.
	Publish(context.Context, *connect.Request[v1.PublishRequest]) (*connect.Response[v1.PublishResponse], error)
}

PresenceServiceClient is a client for the syncplane.v1.PresenceService service.

func NewPresenceServiceClient

func NewPresenceServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) PresenceServiceClient

NewPresenceServiceClient constructs a client for the syncplane.v1.PresenceService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type PresenceServiceHandler

type PresenceServiceHandler interface {
	// Streams presence updates and broadcast messages for a fixed set of
	// topics.
	//
	// The stream first sends a `RoomSnapshot` for each watched topic, followed
	// by participant updates, departures, and broadcast messages as they
	// occur. The set of watched topics is fixed for the lifetime of the
	// stream. To change topics, close and reopen the stream.
	//
	// Delivery is at-most-once and unordered across topics. Dropped presence
	// updates are corrected by periodic re-announcements, but dropped
	// broadcast messages are not replayed.
	Watch(context.Context, *connect.Request[v1.WatchRequest], *connect.ServerStream[v1.WatchResponse]) error
	// Publishes presence state updates, broadcast messages, or departure
	// notices for a session.
	//
	// The server assigns the participant identity from the request principal.
	// The request payload cannot specify or override the sender identity.
	Publish(context.Context, *connect.Request[v1.PublishRequest]) (*connect.Response[v1.PublishResponse], error)
}

PresenceServiceHandler is an implementation of the syncplane.v1.PresenceService service.

type SyncServiceClient

type SyncServiceClient interface {
	// Applies batches of client mutations, using one write transaction per
	// workspace.
	//
	// Business rejections return as `MutationResult` messages, not RPC errors.
	// The server reports a failure scoped to one workspace (such as a mutation
	// ID gap or a revoked workspace) in that workspace's results without
	// failing the request.
	Push(context.Context, *connect.Request[v1.PushRequest]) (*connect.Response[v1.PushResponse], error)
	// Returns row changes for one workspace since the specified cursor.
	Pull(context.Context, *connect.Request[v1.PullRequest]) (*connect.Response[v1.PullResponse], error)
	// Streams a full snapshot of one workspace in sequence: `Begin`, zero or
	// more `Chunk` messages, and `End`.
	Bootstrap(context.Context, *connect.Request[v1.BootstrapRequest]) (*connect.ServerStreamForClient[v1.BootstrapResponse], error)
	// Streams row changes across a set of workspaces.
	//
	// Catches up each workspace scope from its cursor, then sends row changes
	// as those workspaces update. Every frame identifies the workspace that it
	// concerns. The stream carries change payloads and must never silently
	// drop a patch.
	//
	// The set of workspace scopes is fixed for the life of the stream. To add
	// or remove a workspace, or to change a subscription set, close and reopen
	// the stream. Clients reconnect with backoff and fall back to `Pull`
	// polling.
	Subscribe(context.Context, *connect.Request[v1.SubscribeRequest]) (*connect.ServerStreamForClient[v1.SubscribeResponse], error)
	// Runs a one-shot predicate query against current server state for data
	// outside the synced subset.
	//
	// Results are snapshots. They are not merged with local optimistic state
	// and are not stored.
	//
	// A declared secondary index serves the query when one covers the query
	// predicate and ordering. Without a covering index, the query scans and
	// decodes every visible row of the entity per request, running in
	// O(entity) time regardless of limit.
	//
	// Memory is bounded to the page. Prefer selective predicates over deep
	// pagination, and paginate with `after` or `before` rather than `offset`.
	Query(context.Context, *connect.Request[v1.QueryRequest]) (*connect.Response[v1.QueryResponse], error)
}

SyncServiceClient is a client for the syncplane.v1.SyncService service.

func NewSyncServiceClient

func NewSyncServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SyncServiceClient

NewSyncServiceClient constructs a client for the syncplane.v1.SyncService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type SyncServiceHandler

type SyncServiceHandler interface {
	// Applies batches of client mutations, using one write transaction per
	// workspace.
	//
	// Business rejections return as `MutationResult` messages, not RPC errors.
	// The server reports a failure scoped to one workspace (such as a mutation
	// ID gap or a revoked workspace) in that workspace's results without
	// failing the request.
	Push(context.Context, *connect.Request[v1.PushRequest]) (*connect.Response[v1.PushResponse], error)
	// Returns row changes for one workspace since the specified cursor.
	Pull(context.Context, *connect.Request[v1.PullRequest]) (*connect.Response[v1.PullResponse], error)
	// Streams a full snapshot of one workspace in sequence: `Begin`, zero or
	// more `Chunk` messages, and `End`.
	Bootstrap(context.Context, *connect.Request[v1.BootstrapRequest], *connect.ServerStream[v1.BootstrapResponse]) error
	// Streams row changes across a set of workspaces.
	//
	// Catches up each workspace scope from its cursor, then sends row changes
	// as those workspaces update. Every frame identifies the workspace that it
	// concerns. The stream carries change payloads and must never silently
	// drop a patch.
	//
	// The set of workspace scopes is fixed for the life of the stream. To add
	// or remove a workspace, or to change a subscription set, close and reopen
	// the stream. Clients reconnect with backoff and fall back to `Pull`
	// polling.
	Subscribe(context.Context, *connect.Request[v1.SubscribeRequest], *connect.ServerStream[v1.SubscribeResponse]) error
	// Runs a one-shot predicate query against current server state for data
	// outside the synced subset.
	//
	// Results are snapshots. They are not merged with local optimistic state
	// and are not stored.
	//
	// A declared secondary index serves the query when one covers the query
	// predicate and ordering. Without a covering index, the query scans and
	// decodes every visible row of the entity per request, running in
	// O(entity) time regardless of limit.
	//
	// Memory is bounded to the page. Prefer selective predicates over deep
	// pagination, and paginate with `after` or `before` rather than `offset`.
	Query(context.Context, *connect.Request[v1.QueryRequest]) (*connect.Response[v1.QueryResponse], error)
}

SyncServiceHandler is an implementation of the syncplane.v1.SyncService service.

type UnimplementedAdminServiceHandler

type UnimplementedAdminServiceHandler struct{}

UnimplementedAdminServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedBlobServiceHandler added in v0.4.0

type UnimplementedBlobServiceHandler struct{}

UnimplementedBlobServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedBlobServiceHandler) BeginUpload added in v0.4.0

func (UnimplementedBlobServiceHandler) GetChunk added in v0.4.0

func (UnimplementedBlobServiceHandler) PutChunk added in v0.4.0

func (UnimplementedBlobServiceHandler) StatBlobs added in v0.4.0

func (UnimplementedBlobServiceHandler) WatchBlobs added in v0.4.0

type UnimplementedPresenceServiceHandler

type UnimplementedPresenceServiceHandler struct{}

UnimplementedPresenceServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedSyncServiceHandler

type UnimplementedSyncServiceHandler struct{}

UnimplementedSyncServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedSyncServiceHandler) Pull

func (UnimplementedSyncServiceHandler) Push

Jump to

Keyboard shortcuts

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