Documentation
¶
Index ¶
- Constants
- func NewInputBindingHandler(svc InputBindingHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewOutputBindingHandler(svc OutputBindingHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewPubSubHandler(svc PubSubHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewQueriableStateStoreHandler(svc QueriableStateStoreHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewSecretStoreHandler(svc SecretStoreHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewStateStoreHandler(svc StateStoreHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewTransactionalStateStoreHandler(svc TransactionalStateStoreHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewTransactionalStoreMultiMaxSizeHandler(svc TransactionalStoreMultiMaxSizeHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type InputBindingClient
- type InputBindingHandler
- type OutputBindingClient
- type OutputBindingHandler
- type PubSubClient
- type PubSubHandler
- type QueriableStateStoreClient
- type QueriableStateStoreHandler
- type SecretStoreClient
- type SecretStoreHandler
- type StateStoreClient
- type StateStoreHandler
- type TransactionalStateStoreClient
- type TransactionalStateStoreHandler
- type TransactionalStoreMultiMaxSizeClient
- type TransactionalStoreMultiMaxSizeHandler
- type UnimplementedInputBindingHandler
- func (UnimplementedInputBindingHandler) Init(context.Context, *connect.Request[v1.InputBindingInitRequest]) (*connect.Response[v1.InputBindingInitResponse], error)
- func (UnimplementedInputBindingHandler) Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
- func (UnimplementedInputBindingHandler) Read(context.Context, *connect.BidiStream[v1.ReadRequest, v1.ReadResponse]) error
- type UnimplementedOutputBindingHandler
- func (UnimplementedOutputBindingHandler) Init(context.Context, *connect.Request[v1.OutputBindingInitRequest]) (*connect.Response[v1.OutputBindingInitResponse], error)
- func (UnimplementedOutputBindingHandler) Invoke(context.Context, *connect.Request[v1.InvokeRequest]) (*connect.Response[v1.InvokeResponse], error)
- func (UnimplementedOutputBindingHandler) ListOperations(context.Context, *connect.Request[v1.ListOperationsRequest]) (*connect.Response[v1.ListOperationsResponse], error)
- func (UnimplementedOutputBindingHandler) Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
- type UnimplementedPubSubHandler
- func (UnimplementedPubSubHandler) BulkPublish(context.Context, *connect.Request[v1.BulkPublishRequest]) (*connect.Response[v1.BulkPublishResponse], error)
- func (UnimplementedPubSubHandler) Features(context.Context, *connect.Request[v1.FeaturesRequest]) (*connect.Response[v1.FeaturesResponse], error)
- func (UnimplementedPubSubHandler) Init(context.Context, *connect.Request[v1.PubSubInitRequest]) (*connect.Response[v1.PubSubInitResponse], error)
- func (UnimplementedPubSubHandler) Pause(context.Context, *connect.Request[v1.PauseRequest]) (*connect.Response[v1.PauseResponse], error)
- func (UnimplementedPubSubHandler) Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
- func (UnimplementedPubSubHandler) Publish(context.Context, *connect.Request[v1.PublishRequest]) (*connect.Response[v1.PublishResponse], error)
- func (UnimplementedPubSubHandler) PullMessages(context.Context, ...) error
- func (UnimplementedPubSubHandler) Resume(context.Context, *connect.Request[v1.ResumeRequest]) (*connect.Response[v1.ResumeResponse], error)
- type UnimplementedQueriableStateStoreHandler
- type UnimplementedSecretStoreHandler
- func (UnimplementedSecretStoreHandler) BulkGet(context.Context, *connect.Request[v1.BulkGetSecretRequest]) (*connect.Response[v1.BulkGetSecretResponse], error)
- func (UnimplementedSecretStoreHandler) Features(context.Context, *connect.Request[v1.FeaturesRequest]) (*connect.Response[v1.FeaturesResponse], error)
- func (UnimplementedSecretStoreHandler) Get(context.Context, *connect.Request[v1.GetSecretRequest]) (*connect.Response[v1.GetSecretResponse], error)
- func (UnimplementedSecretStoreHandler) Init(context.Context, *connect.Request[v1.SecretStoreInitRequest]) (*connect.Response[v1.SecretStoreInitResponse], error)
- func (UnimplementedSecretStoreHandler) Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
- type UnimplementedStateStoreHandler
- func (UnimplementedStateStoreHandler) BulkDelete(context.Context, *connect.Request[v1.BulkDeleteRequest]) (*connect.Response[v1.BulkDeleteResponse], error)
- func (UnimplementedStateStoreHandler) BulkGet(context.Context, *connect.Request[v1.BulkGetRequest]) (*connect.Response[v1.BulkGetResponse], error)
- func (UnimplementedStateStoreHandler) BulkSet(context.Context, *connect.Request[v1.BulkSetRequest]) (*connect.Response[v1.BulkSetResponse], error)
- func (UnimplementedStateStoreHandler) Delete(context.Context, *connect.Request[v1.DeleteRequest]) (*connect.Response[v1.DeleteResponse], error)
- func (UnimplementedStateStoreHandler) Features(context.Context, *connect.Request[v1.FeaturesRequest]) (*connect.Response[v1.FeaturesResponse], error)
- func (UnimplementedStateStoreHandler) Get(context.Context, *connect.Request[v1.GetRequest]) (*connect.Response[v1.GetResponse], error)
- func (UnimplementedStateStoreHandler) Init(context.Context, *connect.Request[v1.InitRequest]) (*connect.Response[v1.InitResponse], error)
- func (UnimplementedStateStoreHandler) Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
- func (UnimplementedStateStoreHandler) Set(context.Context, *connect.Request[v1.SetRequest]) (*connect.Response[v1.SetResponse], error)
- type UnimplementedTransactionalStateStoreHandler
- type UnimplementedTransactionalStoreMultiMaxSizeHandler
Constants ¶
const ( // InputBindingName is the fully-qualified name of the InputBinding service. InputBindingName = "dapr.proto.components.v1.InputBinding" // OutputBindingName is the fully-qualified name of the OutputBinding service. OutputBindingName = "dapr.proto.components.v1.OutputBinding" )
const ( // InputBindingInitProcedure is the fully-qualified name of the InputBinding's Init RPC. InputBindingInitProcedure = "/dapr.proto.components.v1.InputBinding/Init" // InputBindingReadProcedure is the fully-qualified name of the InputBinding's Read RPC. InputBindingReadProcedure = "/dapr.proto.components.v1.InputBinding/Read" // InputBindingPingProcedure is the fully-qualified name of the InputBinding's Ping RPC. InputBindingPingProcedure = "/dapr.proto.components.v1.InputBinding/Ping" // OutputBindingInitProcedure is the fully-qualified name of the OutputBinding's Init RPC. OutputBindingInitProcedure = "/dapr.proto.components.v1.OutputBinding/Init" // OutputBindingInvokeProcedure is the fully-qualified name of the OutputBinding's Invoke RPC. OutputBindingInvokeProcedure = "/dapr.proto.components.v1.OutputBinding/Invoke" // OutputBindingListOperationsProcedure is the fully-qualified name of the OutputBinding's // ListOperations RPC. OutputBindingListOperationsProcedure = "/dapr.proto.components.v1.OutputBinding/ListOperations" // OutputBindingPingProcedure is the fully-qualified name of the OutputBinding's Ping RPC. OutputBindingPingProcedure = "/dapr.proto.components.v1.OutputBinding/Ping" )
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.
const ( // PubSubInitProcedure is the fully-qualified name of the PubSub's Init RPC. PubSubInitProcedure = "/dapr.proto.components.v1.PubSub/Init" // PubSubFeaturesProcedure is the fully-qualified name of the PubSub's Features RPC. PubSubFeaturesProcedure = "/dapr.proto.components.v1.PubSub/Features" // PubSubPublishProcedure is the fully-qualified name of the PubSub's Publish RPC. PubSubPublishProcedure = "/dapr.proto.components.v1.PubSub/Publish" // PubSubBulkPublishProcedure is the fully-qualified name of the PubSub's BulkPublish RPC. PubSubBulkPublishProcedure = "/dapr.proto.components.v1.PubSub/BulkPublish" // PubSubPullMessagesProcedure is the fully-qualified name of the PubSub's PullMessages RPC. PubSubPullMessagesProcedure = "/dapr.proto.components.v1.PubSub/PullMessages" // PubSubPauseProcedure is the fully-qualified name of the PubSub's Pause RPC. PubSubPauseProcedure = "/dapr.proto.components.v1.PubSub/Pause" // PubSubResumeProcedure is the fully-qualified name of the PubSub's Resume RPC. PubSubResumeProcedure = "/dapr.proto.components.v1.PubSub/Resume" // PubSubPingProcedure is the fully-qualified name of the PubSub's Ping RPC. PubSubPingProcedure = "/dapr.proto.components.v1.PubSub/Ping" )
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.
const ( // SecretStoreInitProcedure is the fully-qualified name of the SecretStore's Init RPC. SecretStoreInitProcedure = "/dapr.proto.components.v1.SecretStore/Init" // SecretStoreFeaturesProcedure is the fully-qualified name of the SecretStore's Features RPC. SecretStoreFeaturesProcedure = "/dapr.proto.components.v1.SecretStore/Features" // SecretStoreGetProcedure is the fully-qualified name of the SecretStore's Get RPC. SecretStoreGetProcedure = "/dapr.proto.components.v1.SecretStore/Get" // SecretStoreBulkGetProcedure is the fully-qualified name of the SecretStore's BulkGet RPC. SecretStoreBulkGetProcedure = "/dapr.proto.components.v1.SecretStore/BulkGet" // SecretStorePingProcedure is the fully-qualified name of the SecretStore's Ping RPC. SecretStorePingProcedure = "/dapr.proto.components.v1.SecretStore/Ping" )
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.
const ( // QueriableStateStoreName is the fully-qualified name of the QueriableStateStore service. QueriableStateStoreName = "dapr.proto.components.v1.QueriableStateStore" // TransactionalStateStoreName is the fully-qualified name of the TransactionalStateStore service. TransactionalStateStoreName = "dapr.proto.components.v1.TransactionalStateStore" // StateStoreName is the fully-qualified name of the StateStore service. StateStoreName = "dapr.proto.components.v1.StateStore" // TransactionalStoreMultiMaxSizeName is the fully-qualified name of the // TransactionalStoreMultiMaxSize service. TransactionalStoreMultiMaxSizeName = "dapr.proto.components.v1.TransactionalStoreMultiMaxSize" )
const ( // QueriableStateStoreQueryProcedure is the fully-qualified name of the QueriableStateStore's Query // RPC. QueriableStateStoreQueryProcedure = "/dapr.proto.components.v1.QueriableStateStore/Query" // TransactionalStateStoreTransactProcedure is the fully-qualified name of the // TransactionalStateStore's Transact RPC. TransactionalStateStoreTransactProcedure = "/dapr.proto.components.v1.TransactionalStateStore/Transact" // StateStoreInitProcedure is the fully-qualified name of the StateStore's Init RPC. StateStoreInitProcedure = "/dapr.proto.components.v1.StateStore/Init" // StateStoreFeaturesProcedure is the fully-qualified name of the StateStore's Features RPC. StateStoreFeaturesProcedure = "/dapr.proto.components.v1.StateStore/Features" // StateStoreDeleteProcedure is the fully-qualified name of the StateStore's Delete RPC. StateStoreDeleteProcedure = "/dapr.proto.components.v1.StateStore/Delete" // StateStoreGetProcedure is the fully-qualified name of the StateStore's Get RPC. StateStoreGetProcedure = "/dapr.proto.components.v1.StateStore/Get" // StateStoreSetProcedure is the fully-qualified name of the StateStore's Set RPC. StateStoreSetProcedure = "/dapr.proto.components.v1.StateStore/Set" // StateStorePingProcedure is the fully-qualified name of the StateStore's Ping RPC. StateStorePingProcedure = "/dapr.proto.components.v1.StateStore/Ping" // StateStoreBulkDeleteProcedure is the fully-qualified name of the StateStore's BulkDelete RPC. StateStoreBulkDeleteProcedure = "/dapr.proto.components.v1.StateStore/BulkDelete" // StateStoreBulkGetProcedure is the fully-qualified name of the StateStore's BulkGet RPC. StateStoreBulkGetProcedure = "/dapr.proto.components.v1.StateStore/BulkGet" // StateStoreBulkSetProcedure is the fully-qualified name of the StateStore's BulkSet RPC. StateStoreBulkSetProcedure = "/dapr.proto.components.v1.StateStore/BulkSet" // TransactionalStoreMultiMaxSizeMultiMaxSizeProcedure is the fully-qualified name of the // TransactionalStoreMultiMaxSize's MultiMaxSize RPC. TransactionalStoreMultiMaxSizeMultiMaxSizeProcedure = "/dapr.proto.components.v1.TransactionalStoreMultiMaxSize/MultiMaxSize" )
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.
const (
// PubSubName is the fully-qualified name of the PubSub service.
PubSubName = "dapr.proto.components.v1.PubSub"
)
const (
// SecretStoreName is the fully-qualified name of the SecretStore service.
SecretStoreName = "dapr.proto.components.v1.SecretStore"
)
Variables ¶
This section is empty.
Functions ¶
func NewInputBindingHandler ¶
func NewInputBindingHandler(svc InputBindingHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewInputBindingHandler 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 NewOutputBindingHandler ¶
func NewOutputBindingHandler(svc OutputBindingHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewOutputBindingHandler 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 NewPubSubHandler ¶
func NewPubSubHandler(svc PubSubHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewPubSubHandler 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 NewQueriableStateStoreHandler ¶
func NewQueriableStateStoreHandler(svc QueriableStateStoreHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewQueriableStateStoreHandler 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 NewSecretStoreHandler ¶
func NewSecretStoreHandler(svc SecretStoreHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewSecretStoreHandler 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 NewStateStoreHandler ¶
func NewStateStoreHandler(svc StateStoreHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewStateStoreHandler 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 NewTransactionalStateStoreHandler ¶
func NewTransactionalStateStoreHandler(svc TransactionalStateStoreHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewTransactionalStateStoreHandler 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 NewTransactionalStoreMultiMaxSizeHandler ¶
func NewTransactionalStoreMultiMaxSizeHandler(svc TransactionalStoreMultiMaxSizeHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewTransactionalStoreMultiMaxSizeHandler 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 InputBindingClient ¶
type InputBindingClient interface {
// Initializes the inputbinding component component with the given metadata.
Init(context.Context, *connect.Request[v1.InputBindingInitRequest]) (*connect.Response[v1.InputBindingInitResponse], error)
// Establishes a stream with the server, which sends messages down to the
// client. The client streams acknowledgements back to the server. The server
// will close the stream and return the status on any error. In case of closed
// connection, the client should re-establish the stream.
Read(context.Context) *connect.BidiStreamForClient[v1.ReadRequest, v1.ReadResponse]
// Ping the InputBinding. Used for liveness porpuses.
Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
}
InputBindingClient is a client for the dapr.proto.components.v1.InputBinding service.
func NewInputBindingClient ¶
func NewInputBindingClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) InputBindingClient
NewInputBindingClient constructs a client for the dapr.proto.components.v1.InputBinding 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 InputBindingHandler ¶
type InputBindingHandler interface {
// Initializes the inputbinding component component with the given metadata.
Init(context.Context, *connect.Request[v1.InputBindingInitRequest]) (*connect.Response[v1.InputBindingInitResponse], error)
// Establishes a stream with the server, which sends messages down to the
// client. The client streams acknowledgements back to the server. The server
// will close the stream and return the status on any error. In case of closed
// connection, the client should re-establish the stream.
Read(context.Context, *connect.BidiStream[v1.ReadRequest, v1.ReadResponse]) error
// Ping the InputBinding. Used for liveness porpuses.
Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
}
InputBindingHandler is an implementation of the dapr.proto.components.v1.InputBinding service.
type OutputBindingClient ¶
type OutputBindingClient interface {
// Initializes the outputbinding component component with the given metadata.
Init(context.Context, *connect.Request[v1.OutputBindingInitRequest]) (*connect.Response[v1.OutputBindingInitResponse], error)
// Invoke remote systems with optional payloads.
Invoke(context.Context, *connect.Request[v1.InvokeRequest]) (*connect.Response[v1.InvokeResponse], error)
// ListOperations list system supported operations.
ListOperations(context.Context, *connect.Request[v1.ListOperationsRequest]) (*connect.Response[v1.ListOperationsResponse], error)
// Ping the OutputBinding. Used for liveness porpuses.
Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
}
OutputBindingClient is a client for the dapr.proto.components.v1.OutputBinding service.
func NewOutputBindingClient ¶
func NewOutputBindingClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) OutputBindingClient
NewOutputBindingClient constructs a client for the dapr.proto.components.v1.OutputBinding 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 OutputBindingHandler ¶
type OutputBindingHandler interface {
// Initializes the outputbinding component component with the given metadata.
Init(context.Context, *connect.Request[v1.OutputBindingInitRequest]) (*connect.Response[v1.OutputBindingInitResponse], error)
// Invoke remote systems with optional payloads.
Invoke(context.Context, *connect.Request[v1.InvokeRequest]) (*connect.Response[v1.InvokeResponse], error)
// ListOperations list system supported operations.
ListOperations(context.Context, *connect.Request[v1.ListOperationsRequest]) (*connect.Response[v1.ListOperationsResponse], error)
// Ping the OutputBinding. Used for liveness porpuses.
Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
}
OutputBindingHandler is an implementation of the dapr.proto.components.v1.OutputBinding service.
type PubSubClient ¶
type PubSubClient interface {
// Initializes the pubsub component with the given metadata.
Init(context.Context, *connect.Request[v1.PubSubInitRequest]) (*connect.Response[v1.PubSubInitResponse], error)
// Returns a list of implemented pubsub features.
Features(context.Context, *connect.Request[v1.FeaturesRequest]) (*connect.Response[v1.FeaturesResponse], error)
// Publish publishes a new message for the given topic.
Publish(context.Context, *connect.Request[v1.PublishRequest]) (*connect.Response[v1.PublishResponse], error)
BulkPublish(context.Context, *connect.Request[v1.BulkPublishRequest]) (*connect.Response[v1.BulkPublishResponse], error)
// Establishes a stream with the server (PubSub component), which sends
// messages down to the client (daprd). The client streams acknowledgements
// back to the server. The server will close the stream and return the status
// on any error. In case of closed connection, the client should re-establish
// the stream. The first message MUST contain a `topic` attribute on it that
// should be used for the entire streaming pull.
PullMessages(context.Context) *connect.BidiStreamForClient[v1.PullMessagesRequest, v1.PullMessagesResponse]
// Pause stops the component from delivering new messages to daprd while
// keeping existing subscription state alive. Servers MAY return
// UNIMPLEMENTED if they do not support pause-and-drain semantics; daprd
// will fall back to close-first shutdown in that case. Idempotent.
Pause(context.Context, *connect.Request[v1.PauseRequest]) (*connect.Response[v1.PauseResponse], error)
// Resume reverses a prior Pause. Servers MAY return UNIMPLEMENTED.
// Idempotent.
Resume(context.Context, *connect.Request[v1.ResumeRequest]) (*connect.Response[v1.ResumeResponse], error)
// Ping the pubsub. Used for liveness porpuses.
Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
}
PubSubClient is a client for the dapr.proto.components.v1.PubSub service.
func NewPubSubClient ¶
func NewPubSubClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) PubSubClient
NewPubSubClient constructs a client for the dapr.proto.components.v1.PubSub 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 PubSubHandler ¶
type PubSubHandler interface {
// Initializes the pubsub component with the given metadata.
Init(context.Context, *connect.Request[v1.PubSubInitRequest]) (*connect.Response[v1.PubSubInitResponse], error)
// Returns a list of implemented pubsub features.
Features(context.Context, *connect.Request[v1.FeaturesRequest]) (*connect.Response[v1.FeaturesResponse], error)
// Publish publishes a new message for the given topic.
Publish(context.Context, *connect.Request[v1.PublishRequest]) (*connect.Response[v1.PublishResponse], error)
BulkPublish(context.Context, *connect.Request[v1.BulkPublishRequest]) (*connect.Response[v1.BulkPublishResponse], error)
// Establishes a stream with the server (PubSub component), which sends
// messages down to the client (daprd). The client streams acknowledgements
// back to the server. The server will close the stream and return the status
// on any error. In case of closed connection, the client should re-establish
// the stream. The first message MUST contain a `topic` attribute on it that
// should be used for the entire streaming pull.
PullMessages(context.Context, *connect.BidiStream[v1.PullMessagesRequest, v1.PullMessagesResponse]) error
// Pause stops the component from delivering new messages to daprd while
// keeping existing subscription state alive. Servers MAY return
// UNIMPLEMENTED if they do not support pause-and-drain semantics; daprd
// will fall back to close-first shutdown in that case. Idempotent.
Pause(context.Context, *connect.Request[v1.PauseRequest]) (*connect.Response[v1.PauseResponse], error)
// Resume reverses a prior Pause. Servers MAY return UNIMPLEMENTED.
// Idempotent.
Resume(context.Context, *connect.Request[v1.ResumeRequest]) (*connect.Response[v1.ResumeResponse], error)
// Ping the pubsub. Used for liveness porpuses.
Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
}
PubSubHandler is an implementation of the dapr.proto.components.v1.PubSub service.
type QueriableStateStoreClient ¶
type QueriableStateStoreClient interface {
// Query performs a query request on the statestore.
Query(context.Context, *connect.Request[v1.QueryRequest]) (*connect.Response[v1.QueryResponse], error)
}
QueriableStateStoreClient is a client for the dapr.proto.components.v1.QueriableStateStore service.
func NewQueriableStateStoreClient ¶
func NewQueriableStateStoreClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) QueriableStateStoreClient
NewQueriableStateStoreClient constructs a client for the dapr.proto.components.v1.QueriableStateStore 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 QueriableStateStoreHandler ¶
type QueriableStateStoreHandler interface {
// Query performs a query request on the statestore.
Query(context.Context, *connect.Request[v1.QueryRequest]) (*connect.Response[v1.QueryResponse], error)
}
QueriableStateStoreHandler is an implementation of the dapr.proto.components.v1.QueriableStateStore service.
type SecretStoreClient ¶
type SecretStoreClient interface {
// Initializes the secret store with the given metadata.
Init(context.Context, *connect.Request[v1.SecretStoreInitRequest]) (*connect.Response[v1.SecretStoreInitResponse], error)
// Returns a list of implemented secret store features.
Features(context.Context, *connect.Request[v1.FeaturesRequest]) (*connect.Response[v1.FeaturesResponse], error)
// Get an individual secret from the store.
Get(context.Context, *connect.Request[v1.GetSecretRequest]) (*connect.Response[v1.GetSecretResponse], error)
// Get all secrets from the store.
BulkGet(context.Context, *connect.Request[v1.BulkGetSecretRequest]) (*connect.Response[v1.BulkGetSecretResponse], error)
// Ping the pubsub. Used for liveness porpuses.
Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
}
SecretStoreClient is a client for the dapr.proto.components.v1.SecretStore service.
func NewSecretStoreClient ¶
func NewSecretStoreClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SecretStoreClient
NewSecretStoreClient constructs a client for the dapr.proto.components.v1.SecretStore 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 SecretStoreHandler ¶
type SecretStoreHandler interface {
// Initializes the secret store with the given metadata.
Init(context.Context, *connect.Request[v1.SecretStoreInitRequest]) (*connect.Response[v1.SecretStoreInitResponse], error)
// Returns a list of implemented secret store features.
Features(context.Context, *connect.Request[v1.FeaturesRequest]) (*connect.Response[v1.FeaturesResponse], error)
// Get an individual secret from the store.
Get(context.Context, *connect.Request[v1.GetSecretRequest]) (*connect.Response[v1.GetSecretResponse], error)
// Get all secrets from the store.
BulkGet(context.Context, *connect.Request[v1.BulkGetSecretRequest]) (*connect.Response[v1.BulkGetSecretResponse], error)
// Ping the pubsub. Used for liveness porpuses.
Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
}
SecretStoreHandler is an implementation of the dapr.proto.components.v1.SecretStore service.
type StateStoreClient ¶
type StateStoreClient interface {
// Initializes the state store component with the given metadata.
Init(context.Context, *connect.Request[v1.InitRequest]) (*connect.Response[v1.InitResponse], error)
// Returns a list of implemented state store features.
Features(context.Context, *connect.Request[v1.FeaturesRequest]) (*connect.Response[v1.FeaturesResponse], error)
// Deletes the specified key from the state store.
Delete(context.Context, *connect.Request[v1.DeleteRequest]) (*connect.Response[v1.DeleteResponse], error)
// Get data from the given key.
Get(context.Context, *connect.Request[v1.GetRequest]) (*connect.Response[v1.GetResponse], error)
// Sets the value of the specified key.
Set(context.Context, *connect.Request[v1.SetRequest]) (*connect.Response[v1.SetResponse], error)
// Ping the state store. Used for liveness porpuses.
Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
// Deletes many keys at once.
BulkDelete(context.Context, *connect.Request[v1.BulkDeleteRequest]) (*connect.Response[v1.BulkDeleteResponse], error)
// Retrieves many keys at once.
BulkGet(context.Context, *connect.Request[v1.BulkGetRequest]) (*connect.Response[v1.BulkGetResponse], error)
// Set the value of many keys at once.
BulkSet(context.Context, *connect.Request[v1.BulkSetRequest]) (*connect.Response[v1.BulkSetResponse], error)
}
StateStoreClient is a client for the dapr.proto.components.v1.StateStore service.
func NewStateStoreClient ¶
func NewStateStoreClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) StateStoreClient
NewStateStoreClient constructs a client for the dapr.proto.components.v1.StateStore 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 StateStoreHandler ¶
type StateStoreHandler interface {
// Initializes the state store component with the given metadata.
Init(context.Context, *connect.Request[v1.InitRequest]) (*connect.Response[v1.InitResponse], error)
// Returns a list of implemented state store features.
Features(context.Context, *connect.Request[v1.FeaturesRequest]) (*connect.Response[v1.FeaturesResponse], error)
// Deletes the specified key from the state store.
Delete(context.Context, *connect.Request[v1.DeleteRequest]) (*connect.Response[v1.DeleteResponse], error)
// Get data from the given key.
Get(context.Context, *connect.Request[v1.GetRequest]) (*connect.Response[v1.GetResponse], error)
// Sets the value of the specified key.
Set(context.Context, *connect.Request[v1.SetRequest]) (*connect.Response[v1.SetResponse], error)
// Ping the state store. Used for liveness porpuses.
Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
// Deletes many keys at once.
BulkDelete(context.Context, *connect.Request[v1.BulkDeleteRequest]) (*connect.Response[v1.BulkDeleteResponse], error)
// Retrieves many keys at once.
BulkGet(context.Context, *connect.Request[v1.BulkGetRequest]) (*connect.Response[v1.BulkGetResponse], error)
// Set the value of many keys at once.
BulkSet(context.Context, *connect.Request[v1.BulkSetRequest]) (*connect.Response[v1.BulkSetResponse], error)
}
StateStoreHandler is an implementation of the dapr.proto.components.v1.StateStore service.
type TransactionalStateStoreClient ¶
type TransactionalStateStoreClient interface {
// Transact executes multiples operation in a transactional environment.
Transact(context.Context, *connect.Request[v1.TransactionalStateRequest]) (*connect.Response[v1.TransactionalStateResponse], error)
}
TransactionalStateStoreClient is a client for the dapr.proto.components.v1.TransactionalStateStore service.
func NewTransactionalStateStoreClient ¶
func NewTransactionalStateStoreClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) TransactionalStateStoreClient
NewTransactionalStateStoreClient constructs a client for the dapr.proto.components.v1.TransactionalStateStore 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 TransactionalStateStoreHandler ¶
type TransactionalStateStoreHandler interface {
// Transact executes multiples operation in a transactional environment.
Transact(context.Context, *connect.Request[v1.TransactionalStateRequest]) (*connect.Response[v1.TransactionalStateResponse], error)
}
TransactionalStateStoreHandler is an implementation of the dapr.proto.components.v1.TransactionalStateStore service.
type TransactionalStoreMultiMaxSizeClient ¶
type TransactionalStoreMultiMaxSizeClient interface {
// MultiMaxSize returns the maximum number of operations that can be performed
// in a single transaction.
MultiMaxSize(context.Context, *connect.Request[v1.MultiMaxSizeRequest]) (*connect.Response[v1.MultiMaxSizeResponse], error)
}
TransactionalStoreMultiMaxSizeClient is a client for the dapr.proto.components.v1.TransactionalStoreMultiMaxSize service.
func NewTransactionalStoreMultiMaxSizeClient ¶
func NewTransactionalStoreMultiMaxSizeClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) TransactionalStoreMultiMaxSizeClient
NewTransactionalStoreMultiMaxSizeClient constructs a client for the dapr.proto.components.v1.TransactionalStoreMultiMaxSize 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 TransactionalStoreMultiMaxSizeHandler ¶
type TransactionalStoreMultiMaxSizeHandler interface {
// MultiMaxSize returns the maximum number of operations that can be performed
// in a single transaction.
MultiMaxSize(context.Context, *connect.Request[v1.MultiMaxSizeRequest]) (*connect.Response[v1.MultiMaxSizeResponse], error)
}
TransactionalStoreMultiMaxSizeHandler is an implementation of the dapr.proto.components.v1.TransactionalStoreMultiMaxSize service.
type UnimplementedInputBindingHandler ¶
type UnimplementedInputBindingHandler struct{}
UnimplementedInputBindingHandler returns CodeUnimplemented from all methods.
func (UnimplementedInputBindingHandler) Ping ¶
func (UnimplementedInputBindingHandler) Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
func (UnimplementedInputBindingHandler) Read ¶
func (UnimplementedInputBindingHandler) Read(context.Context, *connect.BidiStream[v1.ReadRequest, v1.ReadResponse]) error
type UnimplementedOutputBindingHandler ¶
type UnimplementedOutputBindingHandler struct{}
UnimplementedOutputBindingHandler returns CodeUnimplemented from all methods.
func (UnimplementedOutputBindingHandler) Invoke ¶
func (UnimplementedOutputBindingHandler) Invoke(context.Context, *connect.Request[v1.InvokeRequest]) (*connect.Response[v1.InvokeResponse], error)
func (UnimplementedOutputBindingHandler) ListOperations ¶
func (UnimplementedOutputBindingHandler) ListOperations(context.Context, *connect.Request[v1.ListOperationsRequest]) (*connect.Response[v1.ListOperationsResponse], error)
func (UnimplementedOutputBindingHandler) Ping ¶
func (UnimplementedOutputBindingHandler) Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
type UnimplementedPubSubHandler ¶
type UnimplementedPubSubHandler struct{}
UnimplementedPubSubHandler returns CodeUnimplemented from all methods.
func (UnimplementedPubSubHandler) BulkPublish ¶
func (UnimplementedPubSubHandler) BulkPublish(context.Context, *connect.Request[v1.BulkPublishRequest]) (*connect.Response[v1.BulkPublishResponse], error)
func (UnimplementedPubSubHandler) Features ¶
func (UnimplementedPubSubHandler) Features(context.Context, *connect.Request[v1.FeaturesRequest]) (*connect.Response[v1.FeaturesResponse], error)
func (UnimplementedPubSubHandler) Init ¶
func (UnimplementedPubSubHandler) Init(context.Context, *connect.Request[v1.PubSubInitRequest]) (*connect.Response[v1.PubSubInitResponse], error)
func (UnimplementedPubSubHandler) Pause ¶ added in v1.17.7
func (UnimplementedPubSubHandler) Pause(context.Context, *connect.Request[v1.PauseRequest]) (*connect.Response[v1.PauseResponse], error)
func (UnimplementedPubSubHandler) Ping ¶
func (UnimplementedPubSubHandler) Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
func (UnimplementedPubSubHandler) Publish ¶
func (UnimplementedPubSubHandler) Publish(context.Context, *connect.Request[v1.PublishRequest]) (*connect.Response[v1.PublishResponse], error)
func (UnimplementedPubSubHandler) PullMessages ¶
func (UnimplementedPubSubHandler) PullMessages(context.Context, *connect.BidiStream[v1.PullMessagesRequest, v1.PullMessagesResponse]) error
func (UnimplementedPubSubHandler) Resume ¶ added in v1.17.7
func (UnimplementedPubSubHandler) Resume(context.Context, *connect.Request[v1.ResumeRequest]) (*connect.Response[v1.ResumeResponse], error)
type UnimplementedQueriableStateStoreHandler ¶
type UnimplementedQueriableStateStoreHandler struct{}
UnimplementedQueriableStateStoreHandler returns CodeUnimplemented from all methods.
func (UnimplementedQueriableStateStoreHandler) Query ¶
func (UnimplementedQueriableStateStoreHandler) Query(context.Context, *connect.Request[v1.QueryRequest]) (*connect.Response[v1.QueryResponse], error)
type UnimplementedSecretStoreHandler ¶
type UnimplementedSecretStoreHandler struct{}
UnimplementedSecretStoreHandler returns CodeUnimplemented from all methods.
func (UnimplementedSecretStoreHandler) BulkGet ¶
func (UnimplementedSecretStoreHandler) BulkGet(context.Context, *connect.Request[v1.BulkGetSecretRequest]) (*connect.Response[v1.BulkGetSecretResponse], error)
func (UnimplementedSecretStoreHandler) Features ¶
func (UnimplementedSecretStoreHandler) Features(context.Context, *connect.Request[v1.FeaturesRequest]) (*connect.Response[v1.FeaturesResponse], error)
func (UnimplementedSecretStoreHandler) Get ¶
func (UnimplementedSecretStoreHandler) Get(context.Context, *connect.Request[v1.GetSecretRequest]) (*connect.Response[v1.GetSecretResponse], error)
func (UnimplementedSecretStoreHandler) Init ¶
func (UnimplementedSecretStoreHandler) Init(context.Context, *connect.Request[v1.SecretStoreInitRequest]) (*connect.Response[v1.SecretStoreInitResponse], error)
func (UnimplementedSecretStoreHandler) Ping ¶
func (UnimplementedSecretStoreHandler) Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
type UnimplementedStateStoreHandler ¶
type UnimplementedStateStoreHandler struct{}
UnimplementedStateStoreHandler returns CodeUnimplemented from all methods.
func (UnimplementedStateStoreHandler) BulkDelete ¶
func (UnimplementedStateStoreHandler) BulkDelete(context.Context, *connect.Request[v1.BulkDeleteRequest]) (*connect.Response[v1.BulkDeleteResponse], error)
func (UnimplementedStateStoreHandler) BulkGet ¶
func (UnimplementedStateStoreHandler) BulkGet(context.Context, *connect.Request[v1.BulkGetRequest]) (*connect.Response[v1.BulkGetResponse], error)
func (UnimplementedStateStoreHandler) BulkSet ¶
func (UnimplementedStateStoreHandler) BulkSet(context.Context, *connect.Request[v1.BulkSetRequest]) (*connect.Response[v1.BulkSetResponse], error)
func (UnimplementedStateStoreHandler) Delete ¶
func (UnimplementedStateStoreHandler) Delete(context.Context, *connect.Request[v1.DeleteRequest]) (*connect.Response[v1.DeleteResponse], error)
func (UnimplementedStateStoreHandler) Features ¶
func (UnimplementedStateStoreHandler) Features(context.Context, *connect.Request[v1.FeaturesRequest]) (*connect.Response[v1.FeaturesResponse], error)
func (UnimplementedStateStoreHandler) Get ¶
func (UnimplementedStateStoreHandler) Get(context.Context, *connect.Request[v1.GetRequest]) (*connect.Response[v1.GetResponse], error)
func (UnimplementedStateStoreHandler) Init ¶
func (UnimplementedStateStoreHandler) Init(context.Context, *connect.Request[v1.InitRequest]) (*connect.Response[v1.InitResponse], error)
func (UnimplementedStateStoreHandler) Ping ¶
func (UnimplementedStateStoreHandler) Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
func (UnimplementedStateStoreHandler) Set ¶
func (UnimplementedStateStoreHandler) Set(context.Context, *connect.Request[v1.SetRequest]) (*connect.Response[v1.SetResponse], error)
type UnimplementedTransactionalStateStoreHandler ¶
type UnimplementedTransactionalStateStoreHandler struct{}
UnimplementedTransactionalStateStoreHandler returns CodeUnimplemented from all methods.
type UnimplementedTransactionalStoreMultiMaxSizeHandler ¶
type UnimplementedTransactionalStoreMultiMaxSizeHandler struct{}
UnimplementedTransactionalStoreMultiMaxSizeHandler returns CodeUnimplemented from all methods.
func (UnimplementedTransactionalStoreMultiMaxSizeHandler) MultiMaxSize ¶
func (UnimplementedTransactionalStoreMultiMaxSizeHandler) MultiMaxSize(context.Context, *connect.Request[v1.MultiMaxSizeRequest]) (*connect.Response[v1.MultiMaxSizeResponse], error)