Documentation ¶
Index ¶
- Constants
- Variables
- func GetNextIdRequest2ComponentRequest(req *runtimev1pb.GetNextIdRequest) (*sequencer.GetNextIdRequest, error)
- func NewGrpcAPI(ac *grpc_api.ApplicationContext) grpc_api.GrpcAPI
- func TryLockRequest2ComponentRequest(req *runtimev1pb.TryLockRequest) *lock.TryLockRequest
- func TryLockResponse2GrpcResponse(compResponse *lock.TryLockResponse) *runtimev1pb.TryLockResponse
- func UnlockComp2GrpcResponse(compResp *lock.UnlockResponse) *runtimev1pb.UnlockResponse
- func UnlockGrpc2ComponentRequest(req *runtimev1pb.UnlockRequest) *lock.UnlockRequest
- type API
- type Details
- type TopicSubscriptions
Constants ¶
View Source
const (
Metadata_key_pubsubName = "pubsubName"
)
Variables ¶
View Source
var ( FileErrMap2GrpcErr = map[error]codes.Code{ file.ErrInvalid: codes.InvalidArgument, file.ErrNotExist: codes.NotFound, file.ErrExist: codes.AlreadyExists, file.ErrExpired: codes.DataLoss, file.ErrPermission: codes.PermissionDenied, } )
Functions ¶
func GetNextIdRequest2ComponentRequest ¶
func GetNextIdRequest2ComponentRequest(req *runtimev1pb.GetNextIdRequest) (*sequencer.GetNextIdRequest, error)
func NewGrpcAPI ¶
func NewGrpcAPI(ac *grpc_api.ApplicationContext) grpc_api.GrpcAPI
func TryLockRequest2ComponentRequest ¶
func TryLockRequest2ComponentRequest(req *runtimev1pb.TryLockRequest) *lock.TryLockRequest
func TryLockResponse2GrpcResponse ¶
func TryLockResponse2GrpcResponse(compResponse *lock.TryLockResponse) *runtimev1pb.TryLockResponse
func UnlockComp2GrpcResponse ¶
func UnlockComp2GrpcResponse(compResp *lock.UnlockResponse) *runtimev1pb.UnlockResponse
func UnlockGrpc2ComponentRequest ¶
func UnlockGrpc2ComponentRequest(req *runtimev1pb.UnlockRequest) *lock.UnlockRequest
Types ¶
type API ¶
type API interface { SayHello(ctx context.Context, in *runtimev1pb.SayHelloRequest) (*runtimev1pb.SayHelloResponse, error) // InvokeService do rpc calls. InvokeService(ctx context.Context, in *runtimev1pb.InvokeServiceRequest) (*runtimev1pb.InvokeResponse, error) // GetConfiguration gets configuration from configuration store. GetConfiguration(context.Context, *runtimev1pb.GetConfigurationRequest) (*runtimev1pb.GetConfigurationResponse, error) // SaveConfiguration saves configuration into configuration store. SaveConfiguration(context.Context, *runtimev1pb.SaveConfigurationRequest) (*emptypb.Empty, error) // DeleteConfiguration deletes configuration from configuration store. DeleteConfiguration(context.Context, *runtimev1pb.DeleteConfigurationRequest) (*emptypb.Empty, error) // SubscribeConfiguration gets configuration from configuration store and subscribe the updates. SubscribeConfiguration(runtimev1pb.Runtime_SubscribeConfigurationServer) error // Publishes events to the specific topic. PublishEvent(context.Context, *runtimev1pb.PublishEventRequest) (*emptypb.Empty, error) // State GetState(ctx context.Context, in *runtimev1pb.GetStateRequest) (*runtimev1pb.GetStateResponse, error) // Get a batch of state data GetBulkState(ctx context.Context, in *runtimev1pb.GetBulkStateRequest) (*runtimev1pb.GetBulkStateResponse, error) SaveState(ctx context.Context, in *runtimev1pb.SaveStateRequest) (*emptypb.Empty, error) DeleteState(ctx context.Context, in *runtimev1pb.DeleteStateRequest) (*emptypb.Empty, error) DeleteBulkState(ctx context.Context, in *runtimev1pb.DeleteBulkStateRequest) (*emptypb.Empty, error) ExecuteStateTransaction(ctx context.Context, in *runtimev1pb.ExecuteStateTransactionRequest) (*emptypb.Empty, error) // Get File GetFile(*runtimev1pb.GetFileRequest, runtimev1pb.Runtime_GetFileServer) error // Put file with stream. PutFile(runtimev1pb.Runtime_PutFileServer) error // List all files ListFile(ctx context.Context, in *runtimev1pb.ListFileRequest) (*runtimev1pb.ListFileResp, error) //Delete specific file DelFile(ctx context.Context, in *runtimev1pb.DelFileRequest) (*emptypb.Empty, error) // Get file meta data, if file not exist,return code.NotFound error GetFileMeta(ctx context.Context, in *runtimev1pb.GetFileMetaRequest) (*runtimev1pb.GetFileMetaResponse, error) // Distributed Lock API TryLock(context.Context, *runtimev1pb.TryLockRequest) (*runtimev1pb.TryLockResponse, error) Unlock(context.Context, *runtimev1pb.UnlockRequest) (*runtimev1pb.UnlockResponse, error) // Sequencer API GetNextId(context.Context, *runtimev1pb.GetNextIdRequest) (*runtimev1pb.GetNextIdResponse, error) // InvokeBinding Binding API InvokeBinding(context.Context, *runtimev1pb.InvokeBindingRequest) (*runtimev1pb.InvokeBindingResponse, error) // Gets secrets from secret stores. GetSecret(context.Context, *runtimev1pb.GetSecretRequest) (*runtimev1pb.GetSecretResponse, error) // Gets a bulk of secrets GetBulkSecret(context.Context, *runtimev1pb.GetBulkSecretRequest) (*runtimev1pb.GetBulkSecretResponse, error) // GrpcAPI related grpc_api.GrpcAPI }
func NewAPI ¶
func NewAPI( appId string, hellos map[string]hello.HelloService, configStores map[string]configstores.Store, rpcs map[string]rpc.Invoker, pubSubs map[string]pubsub.PubSub, stateStores map[string]state.Store, files map[string]file.File, lockStores map[string]lock.LockStore, sequencers map[string]sequencer.Store, sendToOutputBindingFn func(name string, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error), secretStores map[string]secretstores.SecretStore, ) API
type TopicSubscriptions ¶
type TopicSubscriptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.