Documentation ¶
Index ¶
- func NewDocumentServer(docPlugin sdk.DocumentService) pb.DocumentServiceServer
- func NewEventServer(eventingPlugin sdk.EventService) pb.EventServer
- func NewKeyValueServer(kvPlugin sdk.KeyValueService) pb.KeyValueServer
- func NewQueueServer(plugin sdk.QueueService) pb.QueueServer
- func NewStorageServer(storagePlugin sdk.StorageService) pb.StorageServer
- func NewTopicServer(eventService sdk.EventService) pb.TopicServer
- type DocumentServer
- func (s *DocumentServer) Delete(ctx context.Context, req *pb.DocumentDeleteRequest) (*pb.DocumentDeleteResponse, error)
- func (s *DocumentServer) Get(ctx context.Context, req *pb.DocumentGetRequest) (*pb.DocumentGetResponse, error)
- func (s *DocumentServer) Query(ctx context.Context, req *pb.DocumentQueryRequest) (*pb.DocumentQueryResponse, error)
- func (s *DocumentServer) Set(ctx context.Context, req *pb.DocumentSetRequest) (*pb.DocumentSetResponse, error)
- type EventServer
- type FaasServer
- type KeyValueServer
- func (s *KeyValueServer) Delete(ctx context.Context, req *pb.KeyValueDeleteRequest) (*pb.KeyValueDeleteResponse, error)
- func (s *KeyValueServer) Get(ctx context.Context, req *pb.KeyValueGetRequest) (*pb.KeyValueGetResponse, error)
- func (s *KeyValueServer) Put(ctx context.Context, req *pb.KeyValuePutRequest) (*pb.KeyValuePutResponse, error)
- type QueueServer
- func (s *QueueServer) Complete(ctx context.Context, req *pb.QueueCompleteRequest) (*pb.QueueCompleteResponse, error)
- func (s *QueueServer) Receive(ctx context.Context, req *pb.QueueReceiveRequest) (*pb.QueueReceiveResponse, error)
- func (s *QueueServer) Send(ctx context.Context, req *pb.QueueSendRequest) (*pb.QueueSendResponse, error)
- func (s *QueueServer) SendBatch(ctx context.Context, req *pb.QueueSendBatchRequest) (*pb.QueueSendBatchResponse, error)
- type StorageServer
- func (s *StorageServer) Delete(ctx context.Context, req *pb.StorageDeleteRequest) (*pb.StorageDeleteResponse, error)
- func (s *StorageServer) Read(ctx context.Context, req *pb.StorageReadRequest) (*pb.StorageReadResponse, error)
- func (s *StorageServer) Write(ctx context.Context, req *pb.StorageWriteRequest) (*pb.StorageWriteResponse, error)
- type TopicServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDocumentServer ¶
func NewDocumentServer(docPlugin sdk.DocumentService) pb.DocumentServiceServer
func NewEventServer ¶
func NewEventServer(eventingPlugin sdk.EventService) pb.EventServer
func NewKeyValueServer ¶
func NewKeyValueServer(kvPlugin sdk.KeyValueService) pb.KeyValueServer
func NewQueueServer ¶
func NewQueueServer(plugin sdk.QueueService) pb.QueueServer
func NewStorageServer ¶
func NewStorageServer(storagePlugin sdk.StorageService) pb.StorageServer
func NewTopicServer ¶
func NewTopicServer(eventService sdk.EventService) pb.TopicServer
Types ¶
type DocumentServer ¶
type DocumentServer struct { pb.UnimplementedDocumentServiceServer // contains filtered or unexported fields }
DocumentServer - GRPC Interface for registered Nitric Document Plugin
func (*DocumentServer) Delete ¶
func (s *DocumentServer) Delete(ctx context.Context, req *pb.DocumentDeleteRequest) (*pb.DocumentDeleteResponse, error)
func (*DocumentServer) Get ¶
func (s *DocumentServer) Get(ctx context.Context, req *pb.DocumentGetRequest) (*pb.DocumentGetResponse, error)
func (*DocumentServer) Query ¶
func (s *DocumentServer) Query(ctx context.Context, req *pb.DocumentQueryRequest) (*pb.DocumentQueryResponse, error)
func (*DocumentServer) Set ¶
func (s *DocumentServer) Set(ctx context.Context, req *pb.DocumentSetRequest) (*pb.DocumentSetResponse, error)
type EventServer ¶
type EventServer struct { pb.UnimplementedEventServer // contains filtered or unexported fields }
GRPC Interface for registered Nitric Eventing Plugins
func (*EventServer) Publish ¶
func (s *EventServer) Publish(ctx context.Context, req *pb.EventPublishRequest) (*pb.EventPublishResponse, error)
type FaasServer ¶
type FaasServer struct { pb.UnimplementedFaasServer // contains filtered or unexported fields }
func NewFaasServer ¶
func NewFaasServer(workerPool worker2.WorkerPool) *FaasServer
func (*FaasServer) TriggerStream ¶
func (s *FaasServer) TriggerStream(stream pb.Faas_TriggerStreamServer) error
Starts a new stream A reference to this stream will be passed on to a new worker instance This represents a new server that is ready to begin processing
type KeyValueServer ¶
type KeyValueServer struct { pb.UnimplementedKeyValueServer // contains filtered or unexported fields }
GRPC Interface for registered Nitric KV Plugin
func (*KeyValueServer) Delete ¶
func (s *KeyValueServer) Delete(ctx context.Context, req *pb.KeyValueDeleteRequest) (*pb.KeyValueDeleteResponse, error)
func (*KeyValueServer) Get ¶
func (s *KeyValueServer) Get(ctx context.Context, req *pb.KeyValueGetRequest) (*pb.KeyValueGetResponse, error)
func (*KeyValueServer) Put ¶
func (s *KeyValueServer) Put(ctx context.Context, req *pb.KeyValuePutRequest) (*pb.KeyValuePutResponse, error)
type QueueServer ¶
type QueueServer struct { pb.UnimplementedQueueServer // contains filtered or unexported fields }
GRPC Interface for registered Nitric Storage Plugins
func (*QueueServer) Complete ¶
func (s *QueueServer) Complete(ctx context.Context, req *pb.QueueCompleteRequest) (*pb.QueueCompleteResponse, error)
func (*QueueServer) Receive ¶
func (s *QueueServer) Receive(ctx context.Context, req *pb.QueueReceiveRequest) (*pb.QueueReceiveResponse, error)
func (*QueueServer) Send ¶
func (s *QueueServer) Send(ctx context.Context, req *pb.QueueSendRequest) (*pb.QueueSendResponse, error)
func (*QueueServer) SendBatch ¶
func (s *QueueServer) SendBatch(ctx context.Context, req *pb.QueueSendBatchRequest) (*pb.QueueSendBatchResponse, error)
type StorageServer ¶
type StorageServer struct { pb.UnimplementedStorageServer // contains filtered or unexported fields }
GRPC Interface for registered Nitric Storage Plugins
func (*StorageServer) Delete ¶
func (s *StorageServer) Delete(ctx context.Context, req *pb.StorageDeleteRequest) (*pb.StorageDeleteResponse, error)
func (*StorageServer) Read ¶
func (s *StorageServer) Read(ctx context.Context, req *pb.StorageReadRequest) (*pb.StorageReadResponse, error)
func (*StorageServer) Write ¶
func (s *StorageServer) Write(ctx context.Context, req *pb.StorageWriteRequest) (*pb.StorageWriteResponse, error)
type TopicServer ¶
type TopicServer struct { pb.UnimplementedTopicServer // contains filtered or unexported fields }
func (*TopicServer) List ¶
func (s *TopicServer) List(context.Context, *pb.TopicListRequest) (*pb.TopicListResponse, error)
Click to show internal directories.
Click to hide internal directories.