grpc

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogArg

func LogArg(arg interface{}) string

func NewDocumentServer

func NewDocumentServer(docPlugin document.DocumentService) pb.DocumentServiceServer

func NewEventServiceServer

func NewEventServiceServer(eventsPlugin events.EventService) pb.EventServiceServer

func NewGrpcError

func NewGrpcError(operation string, err error) error

Provides GRPC error reporting

func NewPluginNotRegisteredError

func NewPluginNotRegisteredError(plugin string) error

Provides generic error for unregistered plugins

func NewQueueServiceServer

func NewQueueServiceServer(plugin queue.QueueService) pb.QueueServiceServer

func NewResourcesServiceServer added in v0.13.0

func NewResourcesServiceServer() v1.ResourceServiceServer

func NewSecretServer

func NewSecretServer(secretPlugin secret.SecretService) pb.SecretServiceServer

func NewStorageServiceServer

func NewStorageServiceServer(storagePlugin storage.StorageService) pb.StorageServiceServer

func NewTopicServiceServer

func NewTopicServiceServer(eventService events.EventService) pb.TopicServiceServer

Types

type DocumentServiceServer

type DocumentServiceServer struct {
	pb.UnimplementedDocumentServiceServer
	// contains filtered or unexported fields
}

DocumentServiceServer - GRPC Interface for registered Nitric Document Plugin

func (*DocumentServiceServer) Delete

func (*DocumentServiceServer) Get

func (*DocumentServiceServer) Query

func (*DocumentServiceServer) QueryStream

func (*DocumentServiceServer) Set

type EventServiceServer

type EventServiceServer struct {
	pb.UnimplementedEventServiceServer
	// contains filtered or unexported fields
}

GRPC Interface for registered Nitric events Plugins

func (*EventServiceServer) Publish

type FaasServer

type FaasServer struct {
	pb.UnimplementedFaasServiceServer
	// contains filtered or unexported fields
}

func NewFaasServer

func NewFaasServer(workerPool worker.WorkerPool) *FaasServer

func (*FaasServer) TriggerStream

func (s *FaasServer) TriggerStream(stream pb.FaasService_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 QueueServiceServer

type QueueServiceServer struct {
	pb.UnimplementedQueueServiceServer
	// contains filtered or unexported fields
}

GRPC Interface for registered Nitric Storage Plugins

func (*QueueServiceServer) Complete

func (*QueueServiceServer) Receive

func (*QueueServiceServer) Send

func (*QueueServiceServer) SendBatch

type ResourcesServiceServer added in v0.13.0

type ResourcesServiceServer struct {
	v1.UnimplementedResourceServiceServer
}

func (*ResourcesServiceServer) Declare added in v0.13.0

type SecretServer

type SecretServer struct {
	pb.UnimplementedSecretServiceServer
	// contains filtered or unexported fields
}

GRPC Interface for registered Nitric Secret Plugins

func (*SecretServer) Access

func (*SecretServer) Put

type StorageServiceServer

type StorageServiceServer struct {
	pb.UnimplementedStorageServiceServer
	// contains filtered or unexported fields
}

GRPC Interface for registered Nitric Storage Plugins

func (*StorageServiceServer) Delete

func (*StorageServiceServer) PreSignUrl

func (*StorageServiceServer) Read

func (*StorageServiceServer) Write

type TopicServiceServer

type TopicServiceServer struct {
	pb.UnimplementedTopicServiceServer
	// contains filtered or unexported fields
}

func (*TopicServiceServer) List

Jump to

Keyboard shortcuts

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