v1

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DocumentService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "nitric.document.v1.DocumentService",
	HandlerType: (*DocumentServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _DocumentService_Get_Handler,
		},
		{
			MethodName: "Set",
			Handler:    _DocumentService_Set_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _DocumentService_Delete_Handler,
		},
		{
			MethodName: "Query",
			Handler:    _DocumentService_Query_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "QueryStream",
			Handler:       _DocumentService_QueryStream_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "document/v1/document.proto",
}

DocumentService_ServiceDesc is the grpc.ServiceDesc for DocumentService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var EventService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "nitric.event.v1.EventService",
	HandlerType: (*EventServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Publish",
			Handler:    _EventService_Publish_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "event/v1/event.proto",
}

EventService_ServiceDesc is the grpc.ServiceDesc for EventService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var FaasService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "nitric.faas.v1.FaasService",
	HandlerType: (*FaasServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "TriggerStream",
			Handler:       _FaasService_TriggerStream_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "faas/v1/faas.proto",
}

FaasService_ServiceDesc is the grpc.ServiceDesc for FaasService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_document_v1_document_proto protoreflect.FileDescriptor
View Source
var File_event_v1_event_proto protoreflect.FileDescriptor
View Source
var File_faas_v1_faas_proto protoreflect.FileDescriptor
View Source
var File_queue_v1_queue_proto protoreflect.FileDescriptor
View Source
var File_secret_v1_secret_proto protoreflect.FileDescriptor
View Source
var File_storage_v1_storage_proto protoreflect.FileDescriptor
View Source
var QueueService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "nitric.queue.v1.QueueService",
	HandlerType: (*QueueServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Send",
			Handler:    _QueueService_Send_Handler,
		},
		{
			MethodName: "SendBatch",
			Handler:    _QueueService_SendBatch_Handler,
		},
		{
			MethodName: "Receive",
			Handler:    _QueueService_Receive_Handler,
		},
		{
			MethodName: "Complete",
			Handler:    _QueueService_Complete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "queue/v1/queue.proto",
}

QueueService_ServiceDesc is the grpc.ServiceDesc for QueueService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var SecretService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "nitric.secret.v1.SecretService",
	HandlerType: (*SecretServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Put",
			Handler:    _SecretService_Put_Handler,
		},
		{
			MethodName: "Access",
			Handler:    _SecretService_Access_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "secret/v1/secret.proto",
}

SecretService_ServiceDesc is the grpc.ServiceDesc for SecretService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var StorageService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "nitric.storage.v1.StorageService",
	HandlerType: (*StorageServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Read",
			Handler:    _StorageService_Read_Handler,
		},
		{
			MethodName: "Write",
			Handler:    _StorageService_Write_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _StorageService_Delete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "storage/v1/storage.proto",
}

StorageService_ServiceDesc is the grpc.ServiceDesc for StorageService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var TopicService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "nitric.event.v1.TopicService",
	HandlerType: (*TopicServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _TopicService_List_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "event/v1/event.proto",
}

TopicService_ServiceDesc is the grpc.ServiceDesc for TopicService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterDocumentServiceServer added in v0.4.0

func RegisterDocumentServiceServer(s grpc.ServiceRegistrar, srv DocumentServiceServer)

func RegisterEventServiceServer added in v0.4.0

func RegisterEventServiceServer(s grpc.ServiceRegistrar, srv EventServiceServer)

func RegisterFaasServiceServer added in v0.4.0

func RegisterFaasServiceServer(s grpc.ServiceRegistrar, srv FaasServiceServer)

func RegisterQueueServiceServer added in v0.4.0

func RegisterQueueServiceServer(s grpc.ServiceRegistrar, srv QueueServiceServer)

func RegisterSecretServiceServer added in v0.5.0

func RegisterSecretServiceServer(s grpc.ServiceRegistrar, srv SecretServiceServer)

func RegisterStorageServiceServer added in v0.4.0

func RegisterStorageServiceServer(s grpc.ServiceRegistrar, srv StorageServiceServer)

func RegisterTopicServiceServer added in v0.4.0

func RegisterTopicServiceServer(s grpc.ServiceRegistrar, srv TopicServiceServer)

Types

type ClientMessage added in v0.3.0

type ClientMessage struct {

	// Client message ID, used to pair requests/responses
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Types that are assignable to Content:
	//	*ClientMessage_InitRequest
	//	*ClientMessage_TriggerResponse
	Content isClientMessage_Content `protobuf_oneof:"content"`
	// contains filtered or unexported fields
}

Messages the client is able to send to the server

func (*ClientMessage) Descriptor deprecated added in v0.3.0

func (*ClientMessage) Descriptor() ([]byte, []int)

Deprecated: Use ClientMessage.ProtoReflect.Descriptor instead.

func (*ClientMessage) GetContent added in v0.3.0

func (m *ClientMessage) GetContent() isClientMessage_Content

func (*ClientMessage) GetId added in v0.3.0

func (x *ClientMessage) GetId() string

func (*ClientMessage) GetInitRequest added in v0.3.0

func (x *ClientMessage) GetInitRequest() *InitRequest

func (*ClientMessage) GetTriggerResponse added in v0.3.0

func (x *ClientMessage) GetTriggerResponse() *TriggerResponse

func (*ClientMessage) ProtoMessage added in v0.3.0

func (*ClientMessage) ProtoMessage()

func (*ClientMessage) ProtoReflect added in v0.3.0

func (x *ClientMessage) ProtoReflect() protoreflect.Message

func (*ClientMessage) Reset added in v0.3.0

func (x *ClientMessage) Reset()

func (*ClientMessage) String added in v0.3.0

func (x *ClientMessage) String() string

type ClientMessage_InitRequest added in v0.3.0

type ClientMessage_InitRequest struct {
	// Client initialisation request
	InitRequest *InitRequest `protobuf:"bytes,2,opt,name=init_request,json=initRequest,proto3,oneof"`
}

type ClientMessage_TriggerResponse added in v0.3.0

type ClientMessage_TriggerResponse struct {
	// Client responsding with result of
	// a trigger
	TriggerResponse *TriggerResponse `protobuf:"bytes,3,opt,name=trigger_response,json=triggerResponse,proto3,oneof"`
}

type Collection added in v0.4.0

type Collection struct {

	// The collection name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional parent key, required when the collection is a sub-collection of another document
	Parent *Key `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"`
	// contains filtered or unexported fields
}

func (*Collection) Descriptor deprecated added in v0.4.0

func (*Collection) Descriptor() ([]byte, []int)

Deprecated: Use Collection.ProtoReflect.Descriptor instead.

func (*Collection) GetName added in v0.4.0

func (x *Collection) GetName() string

func (*Collection) GetParent added in v0.4.0

func (x *Collection) GetParent() *Key

func (*Collection) ProtoMessage added in v0.4.0

func (*Collection) ProtoMessage()

func (*Collection) ProtoReflect added in v0.4.0

func (x *Collection) ProtoReflect() protoreflect.Message

func (*Collection) Reset added in v0.4.0

func (x *Collection) Reset()

func (*Collection) String added in v0.4.0

func (x *Collection) String() string

type Document added in v0.4.0

type Document struct {

	// The document content (JSON object)
	Content *structpb.Struct `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	// The document's unique key, including collection/sub-collections
	Key *Key `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

Provides a return document type

func (*Document) Descriptor deprecated added in v0.4.0

func (*Document) Descriptor() ([]byte, []int)

Deprecated: Use Document.ProtoReflect.Descriptor instead.

func (*Document) GetContent added in v0.4.0

func (x *Document) GetContent() *structpb.Struct

func (*Document) GetKey added in v0.4.0

func (x *Document) GetKey() *Key

func (*Document) ProtoMessage added in v0.4.0

func (*Document) ProtoMessage()

func (*Document) ProtoReflect added in v0.4.0

func (x *Document) ProtoReflect() protoreflect.Message

func (*Document) Reset added in v0.4.0

func (x *Document) Reset()

func (*Document) String added in v0.4.0

func (x *Document) String() string

type DocumentDeleteRequest added in v0.4.0

type DocumentDeleteRequest struct {

	// Key of the document to delete
	Key *Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*DocumentDeleteRequest) Descriptor deprecated added in v0.4.0

func (*DocumentDeleteRequest) Descriptor() ([]byte, []int)

Deprecated: Use DocumentDeleteRequest.ProtoReflect.Descriptor instead.

func (*DocumentDeleteRequest) GetKey added in v0.4.0

func (x *DocumentDeleteRequest) GetKey() *Key

func (*DocumentDeleteRequest) ProtoMessage added in v0.4.0

func (*DocumentDeleteRequest) ProtoMessage()

func (*DocumentDeleteRequest) ProtoReflect added in v0.4.0

func (x *DocumentDeleteRequest) ProtoReflect() protoreflect.Message

func (*DocumentDeleteRequest) Reset added in v0.4.0

func (x *DocumentDeleteRequest) Reset()

func (*DocumentDeleteRequest) String added in v0.4.0

func (x *DocumentDeleteRequest) String() string

type DocumentDeleteResponse added in v0.4.0

type DocumentDeleteResponse struct {
	// contains filtered or unexported fields
}

func (*DocumentDeleteResponse) Descriptor deprecated added in v0.4.0

func (*DocumentDeleteResponse) Descriptor() ([]byte, []int)

Deprecated: Use DocumentDeleteResponse.ProtoReflect.Descriptor instead.

func (*DocumentDeleteResponse) ProtoMessage added in v0.4.0

func (*DocumentDeleteResponse) ProtoMessage()

func (*DocumentDeleteResponse) ProtoReflect added in v0.4.0

func (x *DocumentDeleteResponse) ProtoReflect() protoreflect.Message

func (*DocumentDeleteResponse) Reset added in v0.4.0

func (x *DocumentDeleteResponse) Reset()

func (*DocumentDeleteResponse) String added in v0.4.0

func (x *DocumentDeleteResponse) String() string

type DocumentGetRequest added in v0.4.0

type DocumentGetRequest struct {

	// Key of the document to retrieve
	Key *Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*DocumentGetRequest) Descriptor deprecated added in v0.4.0

func (*DocumentGetRequest) Descriptor() ([]byte, []int)

Deprecated: Use DocumentGetRequest.ProtoReflect.Descriptor instead.

func (*DocumentGetRequest) GetKey added in v0.4.0

func (x *DocumentGetRequest) GetKey() *Key

func (*DocumentGetRequest) ProtoMessage added in v0.4.0

func (*DocumentGetRequest) ProtoMessage()

func (*DocumentGetRequest) ProtoReflect added in v0.4.0

func (x *DocumentGetRequest) ProtoReflect() protoreflect.Message

func (*DocumentGetRequest) Reset added in v0.4.0

func (x *DocumentGetRequest) Reset()

func (*DocumentGetRequest) String added in v0.4.0

func (x *DocumentGetRequest) String() string

type DocumentGetResponse added in v0.4.0

type DocumentGetResponse struct {

	// The retrieved value
	Document *Document `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"`
	// contains filtered or unexported fields
}

func (*DocumentGetResponse) Descriptor deprecated added in v0.4.0

func (*DocumentGetResponse) Descriptor() ([]byte, []int)

Deprecated: Use DocumentGetResponse.ProtoReflect.Descriptor instead.

func (*DocumentGetResponse) GetDocument added in v0.4.0

func (x *DocumentGetResponse) GetDocument() *Document

func (*DocumentGetResponse) ProtoMessage added in v0.4.0

func (*DocumentGetResponse) ProtoMessage()

func (*DocumentGetResponse) ProtoReflect added in v0.4.0

func (x *DocumentGetResponse) ProtoReflect() protoreflect.Message

func (*DocumentGetResponse) Reset added in v0.4.0

func (x *DocumentGetResponse) Reset()

func (*DocumentGetResponse) String added in v0.4.0

func (x *DocumentGetResponse) String() string

type DocumentQueryRequest added in v0.4.0

type DocumentQueryRequest struct {

	// The collection to query
	Collection *Collection `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"`
	// Optional query expressions
	Expressions []*Expression `protobuf:"bytes,3,rep,name=expressions,proto3" json:"expressions,omitempty"`
	// Optional query fetch limit
	Limit int32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
	// Optional query paging continuation token
	PagingToken map[string]string `` /* 182-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DocumentQueryRequest) Descriptor deprecated added in v0.4.0

func (*DocumentQueryRequest) Descriptor() ([]byte, []int)

Deprecated: Use DocumentQueryRequest.ProtoReflect.Descriptor instead.

func (*DocumentQueryRequest) GetCollection added in v0.4.0

func (x *DocumentQueryRequest) GetCollection() *Collection

func (*DocumentQueryRequest) GetExpressions added in v0.4.0

func (x *DocumentQueryRequest) GetExpressions() []*Expression

func (*DocumentQueryRequest) GetLimit added in v0.4.0

func (x *DocumentQueryRequest) GetLimit() int32

func (*DocumentQueryRequest) GetPagingToken added in v0.4.0

func (x *DocumentQueryRequest) GetPagingToken() map[string]string

func (*DocumentQueryRequest) ProtoMessage added in v0.4.0

func (*DocumentQueryRequest) ProtoMessage()

func (*DocumentQueryRequest) ProtoReflect added in v0.4.0

func (x *DocumentQueryRequest) ProtoReflect() protoreflect.Message

func (*DocumentQueryRequest) Reset added in v0.4.0

func (x *DocumentQueryRequest) Reset()

func (*DocumentQueryRequest) String added in v0.4.0

func (x *DocumentQueryRequest) String() string

type DocumentQueryResponse added in v0.4.0

type DocumentQueryResponse struct {

	// The retrieved values
	Documents []*Document `protobuf:"bytes,1,rep,name=documents,proto3" json:"documents,omitempty"`
	// The query paging continuation token, when empty no further results are available
	PagingToken map[string]string `` /* 182-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DocumentQueryResponse) Descriptor deprecated added in v0.4.0

func (*DocumentQueryResponse) Descriptor() ([]byte, []int)

Deprecated: Use DocumentQueryResponse.ProtoReflect.Descriptor instead.

func (*DocumentQueryResponse) GetDocuments added in v0.4.0

func (x *DocumentQueryResponse) GetDocuments() []*Document

func (*DocumentQueryResponse) GetPagingToken added in v0.4.0

func (x *DocumentQueryResponse) GetPagingToken() map[string]string

func (*DocumentQueryResponse) ProtoMessage added in v0.4.0

func (*DocumentQueryResponse) ProtoMessage()

func (*DocumentQueryResponse) ProtoReflect added in v0.4.0

func (x *DocumentQueryResponse) ProtoReflect() protoreflect.Message

func (*DocumentQueryResponse) Reset added in v0.4.0

func (x *DocumentQueryResponse) Reset()

func (*DocumentQueryResponse) String added in v0.4.0

func (x *DocumentQueryResponse) String() string

type DocumentQueryStreamRequest added in v0.4.0

type DocumentQueryStreamRequest struct {

	// The collection to query
	Collection *Collection `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"`
	// Optional query expressions
	Expressions []*Expression `protobuf:"bytes,3,rep,name=expressions,proto3" json:"expressions,omitempty"`
	// Optional query fetch limit
	Limit int32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*DocumentQueryStreamRequest) Descriptor deprecated added in v0.4.0

func (*DocumentQueryStreamRequest) Descriptor() ([]byte, []int)

Deprecated: Use DocumentQueryStreamRequest.ProtoReflect.Descriptor instead.

func (*DocumentQueryStreamRequest) GetCollection added in v0.4.0

func (x *DocumentQueryStreamRequest) GetCollection() *Collection

func (*DocumentQueryStreamRequest) GetExpressions added in v0.4.0

func (x *DocumentQueryStreamRequest) GetExpressions() []*Expression

func (*DocumentQueryStreamRequest) GetLimit added in v0.4.0

func (x *DocumentQueryStreamRequest) GetLimit() int32

func (*DocumentQueryStreamRequest) ProtoMessage added in v0.4.0

func (*DocumentQueryStreamRequest) ProtoMessage()

func (*DocumentQueryStreamRequest) ProtoReflect added in v0.4.0

func (*DocumentQueryStreamRequest) Reset added in v0.4.0

func (x *DocumentQueryStreamRequest) Reset()

func (*DocumentQueryStreamRequest) String added in v0.4.0

func (x *DocumentQueryStreamRequest) String() string

type DocumentQueryStreamResponse added in v0.4.0

type DocumentQueryStreamResponse struct {

	// The stream document
	Document *Document `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"`
	// contains filtered or unexported fields
}

func (*DocumentQueryStreamResponse) Descriptor deprecated added in v0.4.0

func (*DocumentQueryStreamResponse) Descriptor() ([]byte, []int)

Deprecated: Use DocumentQueryStreamResponse.ProtoReflect.Descriptor instead.

func (*DocumentQueryStreamResponse) GetDocument added in v0.4.0

func (x *DocumentQueryStreamResponse) GetDocument() *Document

func (*DocumentQueryStreamResponse) ProtoMessage added in v0.4.0

func (*DocumentQueryStreamResponse) ProtoMessage()

func (*DocumentQueryStreamResponse) ProtoReflect added in v0.4.0

func (*DocumentQueryStreamResponse) Reset added in v0.4.0

func (x *DocumentQueryStreamResponse) Reset()

func (*DocumentQueryStreamResponse) String added in v0.4.0

func (x *DocumentQueryStreamResponse) String() string

type DocumentServiceClient added in v0.4.0

type DocumentServiceClient interface {
	// Get an existing document
	Get(ctx context.Context, in *DocumentGetRequest, opts ...grpc.CallOption) (*DocumentGetResponse, error)
	// Create a new or overwrite an existing document
	Set(ctx context.Context, in *DocumentSetRequest, opts ...grpc.CallOption) (*DocumentSetResponse, error)
	// Delete an existing document
	Delete(ctx context.Context, in *DocumentDeleteRequest, opts ...grpc.CallOption) (*DocumentDeleteResponse, error)
	// Query the document collection (supports pagination)
	Query(ctx context.Context, in *DocumentQueryRequest, opts ...grpc.CallOption) (*DocumentQueryResponse, error)
	// Query the document collection (supports streaming)
	QueryStream(ctx context.Context, in *DocumentQueryStreamRequest, opts ...grpc.CallOption) (DocumentService_QueryStreamClient, error)
}

DocumentServiceClient is the client API for DocumentService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewDocumentServiceClient added in v0.4.0

func NewDocumentServiceClient(cc grpc.ClientConnInterface) DocumentServiceClient

type DocumentServiceServer added in v0.4.0

type DocumentServiceServer interface {
	// Get an existing document
	Get(context.Context, *DocumentGetRequest) (*DocumentGetResponse, error)
	// Create a new or overwrite an existing document
	Set(context.Context, *DocumentSetRequest) (*DocumentSetResponse, error)
	// Delete an existing document
	Delete(context.Context, *DocumentDeleteRequest) (*DocumentDeleteResponse, error)
	// Query the document collection (supports pagination)
	Query(context.Context, *DocumentQueryRequest) (*DocumentQueryResponse, error)
	// Query the document collection (supports streaming)
	QueryStream(*DocumentQueryStreamRequest, DocumentService_QueryStreamServer) error
}

DocumentServiceServer is the server API for DocumentService service. All implementations should embed UnimplementedDocumentServiceServer for forward compatibility

type DocumentService_QueryStreamClient added in v0.4.0

type DocumentService_QueryStreamClient interface {
	Recv() (*DocumentQueryStreamResponse, error)
	grpc.ClientStream
}

type DocumentService_QueryStreamServer added in v0.4.0

type DocumentService_QueryStreamServer interface {
	Send(*DocumentQueryStreamResponse) error
	grpc.ServerStream
}

type DocumentSetRequest added in v0.4.0

type DocumentSetRequest struct {

	// Key of the document to set
	Key *Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// The document content to store (JSON object)
	Content *structpb.Struct `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*DocumentSetRequest) Descriptor deprecated added in v0.4.0

func (*DocumentSetRequest) Descriptor() ([]byte, []int)

Deprecated: Use DocumentSetRequest.ProtoReflect.Descriptor instead.

func (*DocumentSetRequest) GetContent added in v0.4.0

func (x *DocumentSetRequest) GetContent() *structpb.Struct

func (*DocumentSetRequest) GetKey added in v0.4.0

func (x *DocumentSetRequest) GetKey() *Key

func (*DocumentSetRequest) ProtoMessage added in v0.4.0

func (*DocumentSetRequest) ProtoMessage()

func (*DocumentSetRequest) ProtoReflect added in v0.4.0

func (x *DocumentSetRequest) ProtoReflect() protoreflect.Message

func (*DocumentSetRequest) Reset added in v0.4.0

func (x *DocumentSetRequest) Reset()

func (*DocumentSetRequest) String added in v0.4.0

func (x *DocumentSetRequest) String() string

type DocumentSetResponse added in v0.4.0

type DocumentSetResponse struct {
	// contains filtered or unexported fields
}

func (*DocumentSetResponse) Descriptor deprecated added in v0.4.0

func (*DocumentSetResponse) Descriptor() ([]byte, []int)

Deprecated: Use DocumentSetResponse.ProtoReflect.Descriptor instead.

func (*DocumentSetResponse) ProtoMessage added in v0.4.0

func (*DocumentSetResponse) ProtoMessage()

func (*DocumentSetResponse) ProtoReflect added in v0.4.0

func (x *DocumentSetResponse) ProtoReflect() protoreflect.Message

func (*DocumentSetResponse) Reset added in v0.4.0

func (x *DocumentSetResponse) Reset()

func (*DocumentSetResponse) String added in v0.4.0

func (x *DocumentSetResponse) String() string

type EventPublishRequest

type EventPublishRequest struct {

	// The name of the topic to publish the event to
	Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	// The event to be published
	Event *NitricEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"`
	// contains filtered or unexported fields
}

Request to publish an event to a topic

func (*EventPublishRequest) Descriptor deprecated

func (*EventPublishRequest) Descriptor() ([]byte, []int)

Deprecated: Use EventPublishRequest.ProtoReflect.Descriptor instead.

func (*EventPublishRequest) GetEvent

func (x *EventPublishRequest) GetEvent() *NitricEvent

func (*EventPublishRequest) GetTopic

func (x *EventPublishRequest) GetTopic() string

func (*EventPublishRequest) ProtoMessage

func (*EventPublishRequest) ProtoMessage()

func (*EventPublishRequest) ProtoReflect

func (x *EventPublishRequest) ProtoReflect() protoreflect.Message

func (*EventPublishRequest) Reset

func (x *EventPublishRequest) Reset()

func (*EventPublishRequest) String

func (x *EventPublishRequest) String() string

type EventPublishResponse

type EventPublishResponse struct {

	// The id of the published message
	// When an id was not supplied
	// one should be automatically generated
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Result of publishing an event

func (*EventPublishResponse) Descriptor deprecated

func (*EventPublishResponse) Descriptor() ([]byte, []int)

Deprecated: Use EventPublishResponse.ProtoReflect.Descriptor instead.

func (*EventPublishResponse) GetId

func (x *EventPublishResponse) GetId() string

func (*EventPublishResponse) ProtoMessage

func (*EventPublishResponse) ProtoMessage()

func (*EventPublishResponse) ProtoReflect

func (x *EventPublishResponse) ProtoReflect() protoreflect.Message

func (*EventPublishResponse) Reset

func (x *EventPublishResponse) Reset()

func (*EventPublishResponse) String

func (x *EventPublishResponse) String() string

type EventServiceClient added in v0.4.0

type EventServiceClient interface {
	// Publishes an message to a given topic
	Publish(ctx context.Context, in *EventPublishRequest, opts ...grpc.CallOption) (*EventPublishResponse, error)
}

EventServiceClient is the client API for EventService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewEventServiceClient added in v0.4.0

func NewEventServiceClient(cc grpc.ClientConnInterface) EventServiceClient

type EventServiceServer added in v0.4.0

type EventServiceServer interface {
	// Publishes an message to a given topic
	Publish(context.Context, *EventPublishRequest) (*EventPublishResponse, error)
}

EventServiceServer is the server API for EventService service. All implementations should embed UnimplementedEventServiceServer for forward compatibility

type Expression added in v0.4.0

type Expression struct {

	// The query operand or attribute
	Operand string `protobuf:"bytes,1,opt,name=operand,proto3" json:"operand,omitempty"`
	// The query operator [ == | < | <= | > | >= | startsWith ]
	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
	// The query expression value
	Value *ExpressionValue `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Provides a query expression type

func (*Expression) Descriptor deprecated added in v0.4.0

func (*Expression) Descriptor() ([]byte, []int)

Deprecated: Use Expression.ProtoReflect.Descriptor instead.

func (*Expression) GetOperand added in v0.4.0

func (x *Expression) GetOperand() string

func (*Expression) GetOperator added in v0.4.0

func (x *Expression) GetOperator() string

func (*Expression) GetValue added in v0.4.0

func (x *Expression) GetValue() *ExpressionValue

func (*Expression) ProtoMessage added in v0.4.0

func (*Expression) ProtoMessage()

func (*Expression) ProtoReflect added in v0.4.0

func (x *Expression) ProtoReflect() protoreflect.Message

func (*Expression) Reset added in v0.4.0

func (x *Expression) Reset()

func (*Expression) String added in v0.4.0

func (x *Expression) String() string

type ExpressionValue added in v0.4.0

type ExpressionValue struct {

	// The kind of value.
	//
	// Types that are assignable to Kind:
	//	*ExpressionValue_IntValue
	//	*ExpressionValue_DoubleValue
	//	*ExpressionValue_StringValue
	//	*ExpressionValue_BoolValue
	Kind isExpressionValue_Kind `protobuf_oneof:"kind"`
	// contains filtered or unexported fields
}

func (*ExpressionValue) Descriptor deprecated added in v0.4.0

func (*ExpressionValue) Descriptor() ([]byte, []int)

Deprecated: Use ExpressionValue.ProtoReflect.Descriptor instead.

func (*ExpressionValue) GetBoolValue added in v0.4.0

func (x *ExpressionValue) GetBoolValue() bool

func (*ExpressionValue) GetDoubleValue added in v0.4.0

func (x *ExpressionValue) GetDoubleValue() float64

func (*ExpressionValue) GetIntValue added in v0.4.0

func (x *ExpressionValue) GetIntValue() int64

func (*ExpressionValue) GetKind added in v0.4.0

func (m *ExpressionValue) GetKind() isExpressionValue_Kind

func (*ExpressionValue) GetStringValue added in v0.4.0

func (x *ExpressionValue) GetStringValue() string

func (*ExpressionValue) ProtoMessage added in v0.4.0

func (*ExpressionValue) ProtoMessage()

func (*ExpressionValue) ProtoReflect added in v0.4.0

func (x *ExpressionValue) ProtoReflect() protoreflect.Message

func (*ExpressionValue) Reset added in v0.4.0

func (x *ExpressionValue) Reset()

func (*ExpressionValue) String added in v0.4.0

func (x *ExpressionValue) String() string

type ExpressionValue_BoolValue added in v0.4.0

type ExpressionValue_BoolValue struct {
	// Represents a boolean value.
	BoolValue bool `protobuf:"varint,4,opt,name=bool_value,json=boolValue,proto3,oneof"`
}

type ExpressionValue_DoubleValue added in v0.4.0

type ExpressionValue_DoubleValue struct {
	// Represents a double value.
	DoubleValue float64 `protobuf:"fixed64,2,opt,name=double_value,json=doubleValue,proto3,oneof"`
}

type ExpressionValue_IntValue added in v0.4.0

type ExpressionValue_IntValue struct {
	// Represents an integer value.
	IntValue int64 `protobuf:"varint,1,opt,name=int_value,json=intValue,proto3,oneof"`
}

type ExpressionValue_StringValue added in v0.4.0

type ExpressionValue_StringValue struct {
	// Represents a string value.
	StringValue string `protobuf:"bytes,3,opt,name=string_value,json=stringValue,proto3,oneof"`
}

type FaasServiceClient added in v0.4.0

type FaasServiceClient interface {
	// Begin streaming triggers/response to/from the membrane
	TriggerStream(ctx context.Context, opts ...grpc.CallOption) (FaasService_TriggerStreamClient, error)
}

FaasServiceClient is the client API for FaasService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewFaasServiceClient added in v0.4.0

func NewFaasServiceClient(cc grpc.ClientConnInterface) FaasServiceClient

type FaasServiceServer added in v0.4.0

type FaasServiceServer interface {
	// Begin streaming triggers/response to/from the membrane
	TriggerStream(FaasService_TriggerStreamServer) error
}

FaasServiceServer is the server API for FaasService service. All implementations should embed UnimplementedFaasServiceServer for forward compatibility

type FaasService_TriggerStreamClient added in v0.4.0

type FaasService_TriggerStreamClient interface {
	Send(*ClientMessage) error
	Recv() (*ServerMessage, error)
	grpc.ClientStream
}

type FaasService_TriggerStreamServer added in v0.4.0

type FaasService_TriggerStreamServer interface {
	Send(*ServerMessage) error
	Recv() (*ClientMessage, error)
	grpc.ServerStream
}

type FailedTask

type FailedTask struct {

	// The task that failed to be pushed
	Task *NitricTask `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
	// A message describing the failure
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*FailedTask) Descriptor deprecated

func (*FailedTask) Descriptor() ([]byte, []int)

Deprecated: Use FailedTask.ProtoReflect.Descriptor instead.

func (*FailedTask) GetMessage

func (x *FailedTask) GetMessage() string

func (*FailedTask) GetTask

func (x *FailedTask) GetTask() *NitricTask

func (*FailedTask) ProtoMessage

func (*FailedTask) ProtoMessage()

func (*FailedTask) ProtoReflect

func (x *FailedTask) ProtoReflect() protoreflect.Message

func (*FailedTask) Reset

func (x *FailedTask) Reset()

func (*FailedTask) String

func (x *FailedTask) String() string

type HttpResponseContext added in v0.3.0

type HttpResponseContext struct {

	// The request headers...
	Headers map[string]string `` /* 155-byte string literal not displayed */
	// The HTTP status of the request
	Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

Specific HttpResponse message Note this does not have to be handled by the User at all but they will have the option of control If they choose...

func (*HttpResponseContext) Descriptor deprecated added in v0.3.0

func (*HttpResponseContext) Descriptor() ([]byte, []int)

Deprecated: Use HttpResponseContext.ProtoReflect.Descriptor instead.

func (*HttpResponseContext) GetHeaders added in v0.3.0

func (x *HttpResponseContext) GetHeaders() map[string]string

func (*HttpResponseContext) GetStatus added in v0.3.0

func (x *HttpResponseContext) GetStatus() int32

func (*HttpResponseContext) ProtoMessage added in v0.3.0

func (*HttpResponseContext) ProtoMessage()

func (*HttpResponseContext) ProtoReflect added in v0.3.0

func (x *HttpResponseContext) ProtoReflect() protoreflect.Message

func (*HttpResponseContext) Reset added in v0.3.0

func (x *HttpResponseContext) Reset()

func (*HttpResponseContext) String added in v0.3.0

func (x *HttpResponseContext) String() string

type HttpTriggerContext added in v0.3.0

type HttpTriggerContext struct {

	// The request method
	Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
	// The path of the request
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// The request headers
	Headers map[string]string `` /* 155-byte string literal not displayed */
	// The query params (if parseable by the membrane)
	QueryParams map[string]string `` /* 182-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*HttpTriggerContext) Descriptor deprecated added in v0.3.0

func (*HttpTriggerContext) Descriptor() ([]byte, []int)

Deprecated: Use HttpTriggerContext.ProtoReflect.Descriptor instead.

func (*HttpTriggerContext) GetHeaders added in v0.3.0

func (x *HttpTriggerContext) GetHeaders() map[string]string

func (*HttpTriggerContext) GetMethod added in v0.3.0

func (x *HttpTriggerContext) GetMethod() string

func (*HttpTriggerContext) GetPath added in v0.3.0

func (x *HttpTriggerContext) GetPath() string

func (*HttpTriggerContext) GetQueryParams added in v0.3.0

func (x *HttpTriggerContext) GetQueryParams() map[string]string

func (*HttpTriggerContext) ProtoMessage added in v0.3.0

func (*HttpTriggerContext) ProtoMessage()

func (*HttpTriggerContext) ProtoReflect added in v0.3.0

func (x *HttpTriggerContext) ProtoReflect() protoreflect.Message

func (*HttpTriggerContext) Reset added in v0.3.0

func (x *HttpTriggerContext) Reset()

func (*HttpTriggerContext) String added in v0.3.0

func (x *HttpTriggerContext) String() string

type InitRequest added in v0.3.0

type InitRequest struct {
	// contains filtered or unexported fields
}

Placeholder message

func (*InitRequest) Descriptor deprecated added in v0.3.0

func (*InitRequest) Descriptor() ([]byte, []int)

Deprecated: Use InitRequest.ProtoReflect.Descriptor instead.

func (*InitRequest) ProtoMessage added in v0.3.0

func (*InitRequest) ProtoMessage()

func (*InitRequest) ProtoReflect added in v0.3.0

func (x *InitRequest) ProtoReflect() protoreflect.Message

func (*InitRequest) Reset added in v0.3.0

func (x *InitRequest) Reset()

func (*InitRequest) String added in v0.3.0

func (x *InitRequest) String() string

type InitResponse added in v0.3.0

type InitResponse struct {
	// contains filtered or unexported fields
}

Placeholder message

func (*InitResponse) Descriptor deprecated added in v0.3.0

func (*InitResponse) Descriptor() ([]byte, []int)

Deprecated: Use InitResponse.ProtoReflect.Descriptor instead.

func (*InitResponse) ProtoMessage added in v0.3.0

func (*InitResponse) ProtoMessage()

func (*InitResponse) ProtoReflect added in v0.3.0

func (x *InitResponse) ProtoReflect() protoreflect.Message

func (*InitResponse) Reset added in v0.3.0

func (x *InitResponse) Reset()

func (*InitResponse) String added in v0.3.0

func (x *InitResponse) String() string

type Key added in v0.4.0

type Key struct {

	// The item collection
	Collection *Collection `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"`
	// The items unique id
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Provides a document identifying key type

func (*Key) Descriptor deprecated added in v0.4.0

func (*Key) Descriptor() ([]byte, []int)

Deprecated: Use Key.ProtoReflect.Descriptor instead.

func (*Key) GetCollection added in v0.4.0

func (x *Key) GetCollection() *Collection

func (*Key) GetId added in v0.4.0

func (x *Key) GetId() string

func (*Key) ProtoMessage added in v0.4.0

func (*Key) ProtoMessage()

func (*Key) ProtoReflect added in v0.4.0

func (x *Key) ProtoReflect() protoreflect.Message

func (*Key) Reset added in v0.4.0

func (x *Key) Reset()

func (*Key) String added in v0.4.0

func (x *Key) String() string

type NitricEvent

type NitricEvent struct {

	// A Unique ID for the Nitric Event
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// A content hint for the events payload
	PayloadType string `protobuf:"bytes,2,opt,name=payload_type,json=payloadType,proto3" json:"payload_type,omitempty"`
	// The payload of the event
	Payload *structpb.Struct `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

Nitric Event Model

func (*NitricEvent) Descriptor deprecated

func (*NitricEvent) Descriptor() ([]byte, []int)

Deprecated: Use NitricEvent.ProtoReflect.Descriptor instead.

func (*NitricEvent) GetId

func (x *NitricEvent) GetId() string

func (*NitricEvent) GetPayload

func (x *NitricEvent) GetPayload() *structpb.Struct

func (*NitricEvent) GetPayloadType

func (x *NitricEvent) GetPayloadType() string

func (*NitricEvent) ProtoMessage

func (*NitricEvent) ProtoMessage()

func (*NitricEvent) ProtoReflect

func (x *NitricEvent) ProtoReflect() protoreflect.Message

func (*NitricEvent) Reset

func (x *NitricEvent) Reset()

func (*NitricEvent) String

func (x *NitricEvent) String() string

type NitricTask

type NitricTask struct {

	// A unique id for the task
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The lease id unique to the pop request, this must be used to complete, extend the lease or release the task.
	LeaseId string `protobuf:"bytes,2,opt,name=lease_id,json=leaseId,proto3" json:"lease_id,omitempty"`
	// A content hint for the tasks payload
	PayloadType string `protobuf:"bytes,3,opt,name=payload_type,json=payloadType,proto3" json:"payload_type,omitempty"`
	// The payload of the task
	Payload *structpb.Struct `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

A task to be sent or received from a queue.

func (*NitricTask) Descriptor deprecated

func (*NitricTask) Descriptor() ([]byte, []int)

Deprecated: Use NitricTask.ProtoReflect.Descriptor instead.

func (*NitricTask) GetId

func (x *NitricTask) GetId() string

func (*NitricTask) GetLeaseId

func (x *NitricTask) GetLeaseId() string

func (*NitricTask) GetPayload

func (x *NitricTask) GetPayload() *structpb.Struct

func (*NitricTask) GetPayloadType

func (x *NitricTask) GetPayloadType() string

func (*NitricTask) ProtoMessage

func (*NitricTask) ProtoMessage()

func (*NitricTask) ProtoReflect

func (x *NitricTask) ProtoReflect() protoreflect.Message

func (*NitricTask) Reset

func (x *NitricTask) Reset()

func (*NitricTask) String

func (x *NitricTask) String() string

type NitricTopic

type NitricTopic struct {

	// The Nitric name for the topic
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Represents an event topic

func (*NitricTopic) Descriptor deprecated

func (*NitricTopic) Descriptor() ([]byte, []int)

Deprecated: Use NitricTopic.ProtoReflect.Descriptor instead.

func (*NitricTopic) GetName

func (x *NitricTopic) GetName() string

func (*NitricTopic) ProtoMessage

func (*NitricTopic) ProtoMessage()

func (*NitricTopic) ProtoReflect

func (x *NitricTopic) ProtoReflect() protoreflect.Message

func (*NitricTopic) Reset

func (x *NitricTopic) Reset()

func (*NitricTopic) String

func (x *NitricTopic) String() string

type QueueCompleteRequest

type QueueCompleteRequest struct {

	// The nitric name for the queue
	//  this will automatically be resolved to the provider specific queue identifier.
	Queue string `protobuf:"bytes,1,opt,name=queue,proto3" json:"queue,omitempty"`
	// Lease id of the task to be completed
	LeaseId string `protobuf:"bytes,2,opt,name=lease_id,json=leaseId,proto3" json:"lease_id,omitempty"`
	// contains filtered or unexported fields
}

func (*QueueCompleteRequest) Descriptor deprecated

func (*QueueCompleteRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueueCompleteRequest.ProtoReflect.Descriptor instead.

func (*QueueCompleteRequest) GetLeaseId

func (x *QueueCompleteRequest) GetLeaseId() string

func (*QueueCompleteRequest) GetQueue

func (x *QueueCompleteRequest) GetQueue() string

func (*QueueCompleteRequest) ProtoMessage

func (*QueueCompleteRequest) ProtoMessage()

func (*QueueCompleteRequest) ProtoReflect

func (x *QueueCompleteRequest) ProtoReflect() protoreflect.Message

func (*QueueCompleteRequest) Reset

func (x *QueueCompleteRequest) Reset()

func (*QueueCompleteRequest) String

func (x *QueueCompleteRequest) String() string

type QueueCompleteResponse

type QueueCompleteResponse struct {
	// contains filtered or unexported fields
}

func (*QueueCompleteResponse) Descriptor deprecated

func (*QueueCompleteResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueueCompleteResponse.ProtoReflect.Descriptor instead.

func (*QueueCompleteResponse) ProtoMessage

func (*QueueCompleteResponse) ProtoMessage()

func (*QueueCompleteResponse) ProtoReflect

func (x *QueueCompleteResponse) ProtoReflect() protoreflect.Message

func (*QueueCompleteResponse) Reset

func (x *QueueCompleteResponse) Reset()

func (*QueueCompleteResponse) String

func (x *QueueCompleteResponse) String() string

type QueueReceiveRequest

type QueueReceiveRequest struct {

	// The nitric name for the queue
	// this will automatically be resolved to the provider specific queue identifier.
	Queue string `protobuf:"bytes,1,opt,name=queue,proto3" json:"queue,omitempty"`
	// The max number of items to pop off the queue, may be capped by provider specific limitations
	Depth int32 `protobuf:"varint,2,opt,name=depth,proto3" json:"depth,omitempty"`
	// contains filtered or unexported fields
}

func (*QueueReceiveRequest) Descriptor deprecated

func (*QueueReceiveRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueueReceiveRequest.ProtoReflect.Descriptor instead.

func (*QueueReceiveRequest) GetDepth

func (x *QueueReceiveRequest) GetDepth() int32

func (*QueueReceiveRequest) GetQueue

func (x *QueueReceiveRequest) GetQueue() string

func (*QueueReceiveRequest) ProtoMessage

func (*QueueReceiveRequest) ProtoMessage()

func (*QueueReceiveRequest) ProtoReflect

func (x *QueueReceiveRequest) ProtoReflect() protoreflect.Message

func (*QueueReceiveRequest) Reset

func (x *QueueReceiveRequest) Reset()

func (*QueueReceiveRequest) String

func (x *QueueReceiveRequest) String() string

type QueueReceiveResponse

type QueueReceiveResponse struct {

	// Array of tasks popped off the queue
	Tasks []*NitricTask `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"`
	// contains filtered or unexported fields
}

func (*QueueReceiveResponse) Descriptor deprecated

func (*QueueReceiveResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueueReceiveResponse.ProtoReflect.Descriptor instead.

func (*QueueReceiveResponse) GetTasks

func (x *QueueReceiveResponse) GetTasks() []*NitricTask

func (*QueueReceiveResponse) ProtoMessage

func (*QueueReceiveResponse) ProtoMessage()

func (*QueueReceiveResponse) ProtoReflect

func (x *QueueReceiveResponse) ProtoReflect() protoreflect.Message

func (*QueueReceiveResponse) Reset

func (x *QueueReceiveResponse) Reset()

func (*QueueReceiveResponse) String

func (x *QueueReceiveResponse) String() string

type QueueSendBatchRequest

type QueueSendBatchRequest struct {

	// The Nitric name for the queue
	// this will automatically be resolved to the provider specific queue identifier.
	Queue string `protobuf:"bytes,1,opt,name=queue,proto3" json:"queue,omitempty"`
	// Array of tasks to push to the queue
	Tasks []*NitricTask `protobuf:"bytes,2,rep,name=tasks,proto3" json:"tasks,omitempty"`
	// contains filtered or unexported fields
}

func (*QueueSendBatchRequest) Descriptor deprecated

func (*QueueSendBatchRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueueSendBatchRequest.ProtoReflect.Descriptor instead.

func (*QueueSendBatchRequest) GetQueue

func (x *QueueSendBatchRequest) GetQueue() string

func (*QueueSendBatchRequest) GetTasks

func (x *QueueSendBatchRequest) GetTasks() []*NitricTask

func (*QueueSendBatchRequest) ProtoMessage

func (*QueueSendBatchRequest) ProtoMessage()

func (*QueueSendBatchRequest) ProtoReflect

func (x *QueueSendBatchRequest) ProtoReflect() protoreflect.Message

func (*QueueSendBatchRequest) Reset

func (x *QueueSendBatchRequest) Reset()

func (*QueueSendBatchRequest) String

func (x *QueueSendBatchRequest) String() string

type QueueSendBatchResponse

type QueueSendBatchResponse struct {

	// A list of tasks that failed to be queued
	FailedTasks []*FailedTask `protobuf:"bytes,1,rep,name=failedTasks,proto3" json:"failedTasks,omitempty"`
	// contains filtered or unexported fields
}

Response for sending a collection of tasks

func (*QueueSendBatchResponse) Descriptor deprecated

func (*QueueSendBatchResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueueSendBatchResponse.ProtoReflect.Descriptor instead.

func (*QueueSendBatchResponse) GetFailedTasks

func (x *QueueSendBatchResponse) GetFailedTasks() []*FailedTask

func (*QueueSendBatchResponse) ProtoMessage

func (*QueueSendBatchResponse) ProtoMessage()

func (*QueueSendBatchResponse) ProtoReflect

func (x *QueueSendBatchResponse) ProtoReflect() protoreflect.Message

func (*QueueSendBatchResponse) Reset

func (x *QueueSendBatchResponse) Reset()

func (*QueueSendBatchResponse) String

func (x *QueueSendBatchResponse) String() string

type QueueSendRequest

type QueueSendRequest struct {

	// The Nitric name for the queue
	// this will automatically be resolved to the provider specific queue identifier.
	Queue string `protobuf:"bytes,1,opt,name=queue,proto3" json:"queue,omitempty"`
	// The task to push to the queue
	Task *NitricTask `protobuf:"bytes,2,opt,name=task,proto3" json:"task,omitempty"`
	// contains filtered or unexported fields
}

Request to push a single event to a queue

func (*QueueSendRequest) Descriptor deprecated

func (*QueueSendRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueueSendRequest.ProtoReflect.Descriptor instead.

func (*QueueSendRequest) GetQueue

func (x *QueueSendRequest) GetQueue() string

func (*QueueSendRequest) GetTask

func (x *QueueSendRequest) GetTask() *NitricTask

func (*QueueSendRequest) ProtoMessage

func (*QueueSendRequest) ProtoMessage()

func (*QueueSendRequest) ProtoReflect

func (x *QueueSendRequest) ProtoReflect() protoreflect.Message

func (*QueueSendRequest) Reset

func (x *QueueSendRequest) Reset()

func (*QueueSendRequest) String

func (x *QueueSendRequest) String() string

type QueueSendResponse

type QueueSendResponse struct {
	// contains filtered or unexported fields
}

Result of pushing a single task to a queue

func (*QueueSendResponse) Descriptor deprecated

func (*QueueSendResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueueSendResponse.ProtoReflect.Descriptor instead.

func (*QueueSendResponse) ProtoMessage

func (*QueueSendResponse) ProtoMessage()

func (*QueueSendResponse) ProtoReflect

func (x *QueueSendResponse) ProtoReflect() protoreflect.Message

func (*QueueSendResponse) Reset

func (x *QueueSendResponse) Reset()

func (*QueueSendResponse) String

func (x *QueueSendResponse) String() string

type QueueServiceClient added in v0.4.0

type QueueServiceClient interface {
	// Send a single event to a queue
	Send(ctx context.Context, in *QueueSendRequest, opts ...grpc.CallOption) (*QueueSendResponse, error)
	// Send multiple events to a queue
	SendBatch(ctx context.Context, in *QueueSendBatchRequest, opts ...grpc.CallOption) (*QueueSendBatchResponse, error)
	// Receive event(s) off a queue
	Receive(ctx context.Context, in *QueueReceiveRequest, opts ...grpc.CallOption) (*QueueReceiveResponse, error)
	// Complete an event previously popped from a queue
	Complete(ctx context.Context, in *QueueCompleteRequest, opts ...grpc.CallOption) (*QueueCompleteResponse, error)
}

QueueServiceClient is the client API for QueueService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewQueueServiceClient added in v0.4.0

func NewQueueServiceClient(cc grpc.ClientConnInterface) QueueServiceClient

type QueueServiceServer added in v0.4.0

type QueueServiceServer interface {
	// Send a single event to a queue
	Send(context.Context, *QueueSendRequest) (*QueueSendResponse, error)
	// Send multiple events to a queue
	SendBatch(context.Context, *QueueSendBatchRequest) (*QueueSendBatchResponse, error)
	// Receive event(s) off a queue
	Receive(context.Context, *QueueReceiveRequest) (*QueueReceiveResponse, error)
	// Complete an event previously popped from a queue
	Complete(context.Context, *QueueCompleteRequest) (*QueueCompleteResponse, error)
}

QueueServiceServer is the server API for QueueService service. All implementations should embed UnimplementedQueueServiceServer for forward compatibility

type Secret added in v0.5.0

type Secret struct {

	// The secret name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

The secret container

func (*Secret) Descriptor deprecated added in v0.5.0

func (*Secret) Descriptor() ([]byte, []int)

Deprecated: Use Secret.ProtoReflect.Descriptor instead.

func (*Secret) GetName added in v0.5.0

func (x *Secret) GetName() string

func (*Secret) ProtoMessage added in v0.5.0

func (*Secret) ProtoMessage()

func (*Secret) ProtoReflect added in v0.5.0

func (x *Secret) ProtoReflect() protoreflect.Message

func (*Secret) Reset added in v0.5.0

func (x *Secret) Reset()

func (*Secret) String added in v0.5.0

func (x *Secret) String() string

type SecretAccessRequest added in v0.5.0

type SecretAccessRequest struct {

	// The id of the secret
	SecretVersion *SecretVersion `protobuf:"bytes,1,opt,name=secret_version,json=secretVersion,proto3" json:"secret_version,omitempty"`
	// contains filtered or unexported fields
}

Request to get a secret from a Secret Store

func (*SecretAccessRequest) Descriptor deprecated added in v0.5.0

func (*SecretAccessRequest) Descriptor() ([]byte, []int)

Deprecated: Use SecretAccessRequest.ProtoReflect.Descriptor instead.

func (*SecretAccessRequest) GetSecretVersion added in v0.5.0

func (x *SecretAccessRequest) GetSecretVersion() *SecretVersion

func (*SecretAccessRequest) ProtoMessage added in v0.5.0

func (*SecretAccessRequest) ProtoMessage()

func (*SecretAccessRequest) ProtoReflect added in v0.5.0

func (x *SecretAccessRequest) ProtoReflect() protoreflect.Message

func (*SecretAccessRequest) Reset added in v0.5.0

func (x *SecretAccessRequest) Reset()

func (*SecretAccessRequest) String added in v0.5.0

func (x *SecretAccessRequest) String() string

type SecretAccessResponse added in v0.5.0

type SecretAccessResponse struct {

	// The version of the secret that was requested
	SecretVersion *SecretVersion `protobuf:"bytes,1,opt,name=secret_version,json=secretVersion,proto3" json:"secret_version,omitempty"`
	// The value of the secret
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

The secret response

func (*SecretAccessResponse) Descriptor deprecated added in v0.5.0

func (*SecretAccessResponse) Descriptor() ([]byte, []int)

Deprecated: Use SecretAccessResponse.ProtoReflect.Descriptor instead.

func (*SecretAccessResponse) GetSecretVersion added in v0.5.0

func (x *SecretAccessResponse) GetSecretVersion() *SecretVersion

func (*SecretAccessResponse) GetValue added in v0.5.0

func (x *SecretAccessResponse) GetValue() []byte

func (*SecretAccessResponse) ProtoMessage added in v0.5.0

func (*SecretAccessResponse) ProtoMessage()

func (*SecretAccessResponse) ProtoReflect added in v0.5.0

func (x *SecretAccessResponse) ProtoReflect() protoreflect.Message

func (*SecretAccessResponse) Reset added in v0.5.0

func (x *SecretAccessResponse) Reset()

func (*SecretAccessResponse) String added in v0.5.0

func (x *SecretAccessResponse) String() string

type SecretPutRequest added in v0.5.0

type SecretPutRequest struct {

	// The Secret to put to the Secret store
	Secret *Secret `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
	// The value to assign to that secret
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Request to put a secret to a Secret Store

func (*SecretPutRequest) Descriptor deprecated added in v0.5.0

func (*SecretPutRequest) Descriptor() ([]byte, []int)

Deprecated: Use SecretPutRequest.ProtoReflect.Descriptor instead.

func (*SecretPutRequest) GetSecret added in v0.5.0

func (x *SecretPutRequest) GetSecret() *Secret

func (*SecretPutRequest) GetValue added in v0.5.0

func (x *SecretPutRequest) GetValue() []byte

func (*SecretPutRequest) ProtoMessage added in v0.5.0

func (*SecretPutRequest) ProtoMessage()

func (*SecretPutRequest) ProtoReflect added in v0.5.0

func (x *SecretPutRequest) ProtoReflect() protoreflect.Message

func (*SecretPutRequest) Reset added in v0.5.0

func (x *SecretPutRequest) Reset()

func (*SecretPutRequest) String added in v0.5.0

func (x *SecretPutRequest) String() string

type SecretPutResponse added in v0.5.0

type SecretPutResponse struct {

	// The id of the secret
	SecretVersion *SecretVersion `protobuf:"bytes,1,opt,name=secret_version,json=secretVersion,proto3" json:"secret_version,omitempty"`
	// contains filtered or unexported fields
}

Result from putting the secret to a Secret Store

func (*SecretPutResponse) Descriptor deprecated added in v0.5.0

func (*SecretPutResponse) Descriptor() ([]byte, []int)

Deprecated: Use SecretPutResponse.ProtoReflect.Descriptor instead.

func (*SecretPutResponse) GetSecretVersion added in v0.5.0

func (x *SecretPutResponse) GetSecretVersion() *SecretVersion

func (*SecretPutResponse) ProtoMessage added in v0.5.0

func (*SecretPutResponse) ProtoMessage()

func (*SecretPutResponse) ProtoReflect added in v0.5.0

func (x *SecretPutResponse) ProtoReflect() protoreflect.Message

func (*SecretPutResponse) Reset added in v0.5.0

func (x *SecretPutResponse) Reset()

func (*SecretPutResponse) String added in v0.5.0

func (x *SecretPutResponse) String() string

type SecretServiceClient added in v0.5.0

type SecretServiceClient interface {
	// Updates a secret, creating a new one if it doesn't already exist
	Put(ctx context.Context, in *SecretPutRequest, opts ...grpc.CallOption) (*SecretPutResponse, error)
	// Gets a secret from a Secret Store
	Access(ctx context.Context, in *SecretAccessRequest, opts ...grpc.CallOption) (*SecretAccessResponse, error)
}

SecretServiceClient is the client API for SecretService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewSecretServiceClient added in v0.5.0

func NewSecretServiceClient(cc grpc.ClientConnInterface) SecretServiceClient

type SecretServiceServer added in v0.5.0

type SecretServiceServer interface {
	// Updates a secret, creating a new one if it doesn't already exist
	Put(context.Context, *SecretPutRequest) (*SecretPutResponse, error)
	// Gets a secret from a Secret Store
	Access(context.Context, *SecretAccessRequest) (*SecretAccessResponse, error)
}

SecretServiceServer is the server API for SecretService service. All implementations should embed UnimplementedSecretServiceServer for forward compatibility

type SecretVersion added in v0.5.0

type SecretVersion struct {

	// Reference to the secret container
	Secret *Secret `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
	// The secret version
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` //map<string, string> labels = 4; //Tags for GCP and azure,
	// contains filtered or unexported fields
}

A version of a secret

func (*SecretVersion) Descriptor deprecated added in v0.5.0

func (*SecretVersion) Descriptor() ([]byte, []int)

Deprecated: Use SecretVersion.ProtoReflect.Descriptor instead.

func (*SecretVersion) GetSecret added in v0.5.0

func (x *SecretVersion) GetSecret() *Secret

func (*SecretVersion) GetVersion added in v0.5.0

func (x *SecretVersion) GetVersion() string

func (*SecretVersion) ProtoMessage added in v0.5.0

func (*SecretVersion) ProtoMessage()

func (*SecretVersion) ProtoReflect added in v0.5.0

func (x *SecretVersion) ProtoReflect() protoreflect.Message

func (*SecretVersion) Reset added in v0.5.0

func (x *SecretVersion) Reset()

func (*SecretVersion) String added in v0.5.0

func (x *SecretVersion) String() string

type ServerMessage added in v0.3.0

type ServerMessage struct {

	// Server message ID, used to pair requests/responses
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Types that are assignable to Content:
	//	*ServerMessage_InitResponse
	//	*ServerMessage_TriggerRequest
	Content isServerMessage_Content `protobuf_oneof:"content"`
	// contains filtered or unexported fields
}

Messages the server is able to send to the client

func (*ServerMessage) Descriptor deprecated added in v0.3.0

func (*ServerMessage) Descriptor() ([]byte, []int)

Deprecated: Use ServerMessage.ProtoReflect.Descriptor instead.

func (*ServerMessage) GetContent added in v0.3.0

func (m *ServerMessage) GetContent() isServerMessage_Content

func (*ServerMessage) GetId added in v0.3.0

func (x *ServerMessage) GetId() string

func (*ServerMessage) GetInitResponse added in v0.3.0

func (x *ServerMessage) GetInitResponse() *InitResponse

func (*ServerMessage) GetTriggerRequest added in v0.3.0

func (x *ServerMessage) GetTriggerRequest() *TriggerRequest

func (*ServerMessage) ProtoMessage added in v0.3.0

func (*ServerMessage) ProtoMessage()

func (*ServerMessage) ProtoReflect added in v0.3.0

func (x *ServerMessage) ProtoReflect() protoreflect.Message

func (*ServerMessage) Reset added in v0.3.0

func (x *ServerMessage) Reset()

func (*ServerMessage) String added in v0.3.0

func (x *ServerMessage) String() string

type ServerMessage_InitResponse added in v0.3.0

type ServerMessage_InitResponse struct {
	// Server responding
	// with client configuration details to an
	// InitRequest
	InitResponse *InitResponse `protobuf:"bytes,2,opt,name=init_response,json=initResponse,proto3,oneof"`
}

type ServerMessage_TriggerRequest added in v0.3.0

type ServerMessage_TriggerRequest struct {
	// Server requesting client to
	// process a trigger
	TriggerRequest *TriggerRequest `protobuf:"bytes,3,opt,name=trigger_request,json=triggerRequest,proto3,oneof"`
}

type StorageDeleteRequest

type StorageDeleteRequest struct {

	// Name of the bucket to delete from
	BucketName string `protobuf:"bytes,1,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
	// Key of item to delete
	Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

Request to delete a storage item

func (*StorageDeleteRequest) Descriptor deprecated

func (*StorageDeleteRequest) Descriptor() ([]byte, []int)

Deprecated: Use StorageDeleteRequest.ProtoReflect.Descriptor instead.

func (*StorageDeleteRequest) GetBucketName

func (x *StorageDeleteRequest) GetBucketName() string

func (*StorageDeleteRequest) GetKey

func (x *StorageDeleteRequest) GetKey() string

func (*StorageDeleteRequest) ProtoMessage

func (*StorageDeleteRequest) ProtoMessage()

func (*StorageDeleteRequest) ProtoReflect

func (x *StorageDeleteRequest) ProtoReflect() protoreflect.Message

func (*StorageDeleteRequest) Reset

func (x *StorageDeleteRequest) Reset()

func (*StorageDeleteRequest) String

func (x *StorageDeleteRequest) String() string

type StorageDeleteResponse

type StorageDeleteResponse struct {
	// contains filtered or unexported fields
}

Result of deleting a storage item

func (*StorageDeleteResponse) Descriptor deprecated

func (*StorageDeleteResponse) Descriptor() ([]byte, []int)

Deprecated: Use StorageDeleteResponse.ProtoReflect.Descriptor instead.

func (*StorageDeleteResponse) ProtoMessage

func (*StorageDeleteResponse) ProtoMessage()

func (*StorageDeleteResponse) ProtoReflect

func (x *StorageDeleteResponse) ProtoReflect() protoreflect.Message

func (*StorageDeleteResponse) Reset

func (x *StorageDeleteResponse) Reset()

func (*StorageDeleteResponse) String

func (x *StorageDeleteResponse) String() string

type StorageReadRequest

type StorageReadRequest struct {

	// Nitric name of the bucket to retrieve from
	//  this will be automatically resolved to the provider specific bucket identifier.
	BucketName string `protobuf:"bytes,1,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
	// Key of item to retrieve
	Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

Request to retrieve a storage item

func (*StorageReadRequest) Descriptor deprecated

func (*StorageReadRequest) Descriptor() ([]byte, []int)

Deprecated: Use StorageReadRequest.ProtoReflect.Descriptor instead.

func (*StorageReadRequest) GetBucketName

func (x *StorageReadRequest) GetBucketName() string

func (*StorageReadRequest) GetKey

func (x *StorageReadRequest) GetKey() string

func (*StorageReadRequest) ProtoMessage

func (*StorageReadRequest) ProtoMessage()

func (*StorageReadRequest) ProtoReflect

func (x *StorageReadRequest) ProtoReflect() protoreflect.Message

func (*StorageReadRequest) Reset

func (x *StorageReadRequest) Reset()

func (*StorageReadRequest) String

func (x *StorageReadRequest) String() string

type StorageReadResponse

type StorageReadResponse struct {

	// The body bytes of the retrieved storage item
	Body []byte `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

Returned storage item

func (*StorageReadResponse) Descriptor deprecated

func (*StorageReadResponse) Descriptor() ([]byte, []int)

Deprecated: Use StorageReadResponse.ProtoReflect.Descriptor instead.

func (*StorageReadResponse) GetBody

func (x *StorageReadResponse) GetBody() []byte

func (*StorageReadResponse) ProtoMessage

func (*StorageReadResponse) ProtoMessage()

func (*StorageReadResponse) ProtoReflect

func (x *StorageReadResponse) ProtoReflect() protoreflect.Message

func (*StorageReadResponse) Reset

func (x *StorageReadResponse) Reset()

func (*StorageReadResponse) String

func (x *StorageReadResponse) String() string

type StorageServiceClient added in v0.4.0

type StorageServiceClient interface {
	// Retrieve an item from a bucket
	Read(ctx context.Context, in *StorageReadRequest, opts ...grpc.CallOption) (*StorageReadResponse, error)
	// Store an item to a bucket
	Write(ctx context.Context, in *StorageWriteRequest, opts ...grpc.CallOption) (*StorageWriteResponse, error)
	// Delete an item from a bucket
	Delete(ctx context.Context, in *StorageDeleteRequest, opts ...grpc.CallOption) (*StorageDeleteResponse, error)
}

StorageServiceClient is the client API for StorageService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewStorageServiceClient added in v0.4.0

func NewStorageServiceClient(cc grpc.ClientConnInterface) StorageServiceClient

type StorageServiceServer added in v0.4.0

type StorageServiceServer interface {
	// Retrieve an item from a bucket
	Read(context.Context, *StorageReadRequest) (*StorageReadResponse, error)
	// Store an item to a bucket
	Write(context.Context, *StorageWriteRequest) (*StorageWriteResponse, error)
	// Delete an item from a bucket
	Delete(context.Context, *StorageDeleteRequest) (*StorageDeleteResponse, error)
}

StorageServiceServer is the server API for StorageService service. All implementations should embed UnimplementedStorageServiceServer for forward compatibility

type StorageWriteRequest

type StorageWriteRequest struct {

	// Nitric name of the bucket to store in
	//  this will be automatically resolved to the provider specific bucket identifier.
	BucketName string `protobuf:"bytes,1,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
	// Key to store the item under
	Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// bytes array to store
	Body []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

Request to put (create/update) a storage item

func (*StorageWriteRequest) Descriptor deprecated

func (*StorageWriteRequest) Descriptor() ([]byte, []int)

Deprecated: Use StorageWriteRequest.ProtoReflect.Descriptor instead.

func (*StorageWriteRequest) GetBody

func (x *StorageWriteRequest) GetBody() []byte

func (*StorageWriteRequest) GetBucketName

func (x *StorageWriteRequest) GetBucketName() string

func (*StorageWriteRequest) GetKey

func (x *StorageWriteRequest) GetKey() string

func (*StorageWriteRequest) ProtoMessage

func (*StorageWriteRequest) ProtoMessage()

func (*StorageWriteRequest) ProtoReflect

func (x *StorageWriteRequest) ProtoReflect() protoreflect.Message

func (*StorageWriteRequest) Reset

func (x *StorageWriteRequest) Reset()

func (*StorageWriteRequest) String

func (x *StorageWriteRequest) String() string

type StorageWriteResponse

type StorageWriteResponse struct {
	// contains filtered or unexported fields
}

Result of putting a storage item

func (*StorageWriteResponse) Descriptor deprecated

func (*StorageWriteResponse) Descriptor() ([]byte, []int)

Deprecated: Use StorageWriteResponse.ProtoReflect.Descriptor instead.

func (*StorageWriteResponse) ProtoMessage

func (*StorageWriteResponse) ProtoMessage()

func (*StorageWriteResponse) ProtoReflect

func (x *StorageWriteResponse) ProtoReflect() protoreflect.Message

func (*StorageWriteResponse) Reset

func (x *StorageWriteResponse) Reset()

func (*StorageWriteResponse) String

func (x *StorageWriteResponse) String() string

type TopicListRequest

type TopicListRequest struct {
	// contains filtered or unexported fields
}

Request for the Topic List method

func (*TopicListRequest) Descriptor deprecated

func (*TopicListRequest) Descriptor() ([]byte, []int)

Deprecated: Use TopicListRequest.ProtoReflect.Descriptor instead.

func (*TopicListRequest) ProtoMessage

func (*TopicListRequest) ProtoMessage()

func (*TopicListRequest) ProtoReflect

func (x *TopicListRequest) ProtoReflect() protoreflect.Message

func (*TopicListRequest) Reset

func (x *TopicListRequest) Reset()

func (*TopicListRequest) String

func (x *TopicListRequest) String() string

type TopicListResponse

type TopicListResponse struct {

	// The list of found topics
	Topics []*NitricTopic `protobuf:"bytes,1,rep,name=topics,proto3" json:"topics,omitempty"`
	// contains filtered or unexported fields
}

Topic List Response

func (*TopicListResponse) Descriptor deprecated

func (*TopicListResponse) Descriptor() ([]byte, []int)

Deprecated: Use TopicListResponse.ProtoReflect.Descriptor instead.

func (*TopicListResponse) GetTopics

func (x *TopicListResponse) GetTopics() []*NitricTopic

func (*TopicListResponse) ProtoMessage

func (*TopicListResponse) ProtoMessage()

func (*TopicListResponse) ProtoReflect

func (x *TopicListResponse) ProtoReflect() protoreflect.Message

func (*TopicListResponse) Reset

func (x *TopicListResponse) Reset()

func (*TopicListResponse) String

func (x *TopicListResponse) String() string

type TopicResponseContext added in v0.3.0

type TopicResponseContext struct {

	// Success status of the handled event
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

Specific event response message We do not accept responses for events only whether or not they were successfully processed

func (*TopicResponseContext) Descriptor deprecated added in v0.3.0

func (*TopicResponseContext) Descriptor() ([]byte, []int)

Deprecated: Use TopicResponseContext.ProtoReflect.Descriptor instead.

func (*TopicResponseContext) GetSuccess added in v0.3.0

func (x *TopicResponseContext) GetSuccess() bool

func (*TopicResponseContext) ProtoMessage added in v0.3.0

func (*TopicResponseContext) ProtoMessage()

func (*TopicResponseContext) ProtoReflect added in v0.3.0

func (x *TopicResponseContext) ProtoReflect() protoreflect.Message

func (*TopicResponseContext) Reset added in v0.3.0

func (x *TopicResponseContext) Reset()

func (*TopicResponseContext) String added in v0.3.0

func (x *TopicResponseContext) String() string

type TopicServiceClient added in v0.4.0

type TopicServiceClient interface {
	// Return a list of existing topics in the provider environment
	List(ctx context.Context, in *TopicListRequest, opts ...grpc.CallOption) (*TopicListResponse, error)
}

TopicServiceClient is the client API for TopicService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewTopicServiceClient added in v0.4.0

func NewTopicServiceClient(cc grpc.ClientConnInterface) TopicServiceClient

type TopicServiceServer added in v0.4.0

type TopicServiceServer interface {
	// Return a list of existing topics in the provider environment
	List(context.Context, *TopicListRequest) (*TopicListResponse, error)
}

TopicServiceServer is the server API for TopicService service. All implementations should embed UnimplementedTopicServiceServer for forward compatibility

type TopicTriggerContext added in v0.3.0

type TopicTriggerContext struct {

	// The topic the message was published for
	Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	// contains filtered or unexported fields
}

func (*TopicTriggerContext) Descriptor deprecated added in v0.3.0

func (*TopicTriggerContext) Descriptor() ([]byte, []int)

Deprecated: Use TopicTriggerContext.ProtoReflect.Descriptor instead.

func (*TopicTriggerContext) GetTopic added in v0.3.0

func (x *TopicTriggerContext) GetTopic() string

func (*TopicTriggerContext) ProtoMessage added in v0.3.0

func (*TopicTriggerContext) ProtoMessage()

func (*TopicTriggerContext) ProtoReflect added in v0.3.0

func (x *TopicTriggerContext) ProtoReflect() protoreflect.Message

func (*TopicTriggerContext) Reset added in v0.3.0

func (x *TopicTriggerContext) Reset()

func (*TopicTriggerContext) String added in v0.3.0

func (x *TopicTriggerContext) String() string

type TriggerRequest added in v0.3.0

type TriggerRequest struct {

	// The data in the trigger
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// Should we supply a mime type for the data?
	// Or rely on context?
	MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
	// The context of the trigger
	//
	// Types that are assignable to Context:
	//	*TriggerRequest_Http
	//	*TriggerRequest_Topic
	Context isTriggerRequest_Context `protobuf_oneof:"context"`
	// contains filtered or unexported fields
}

The server has a trigger for the client to handle

func (*TriggerRequest) Descriptor deprecated added in v0.3.0

func (*TriggerRequest) Descriptor() ([]byte, []int)

Deprecated: Use TriggerRequest.ProtoReflect.Descriptor instead.

func (*TriggerRequest) GetContext added in v0.3.0

func (m *TriggerRequest) GetContext() isTriggerRequest_Context

func (*TriggerRequest) GetData added in v0.3.0

func (x *TriggerRequest) GetData() []byte

func (*TriggerRequest) GetHttp added in v0.3.0

func (x *TriggerRequest) GetHttp() *HttpTriggerContext

func (*TriggerRequest) GetMimeType added in v0.3.0

func (x *TriggerRequest) GetMimeType() string

func (*TriggerRequest) GetTopic added in v0.3.0

func (x *TriggerRequest) GetTopic() *TopicTriggerContext

func (*TriggerRequest) ProtoMessage added in v0.3.0

func (*TriggerRequest) ProtoMessage()

func (*TriggerRequest) ProtoReflect added in v0.3.0

func (x *TriggerRequest) ProtoReflect() protoreflect.Message

func (*TriggerRequest) Reset added in v0.3.0

func (x *TriggerRequest) Reset()

func (*TriggerRequest) String added in v0.3.0

func (x *TriggerRequest) String() string

type TriggerRequest_Http added in v0.3.0

type TriggerRequest_Http struct {
	Http *HttpTriggerContext `protobuf:"bytes,3,opt,name=http,proto3,oneof"`
}

type TriggerRequest_Topic added in v0.3.0

type TriggerRequest_Topic struct {
	Topic *TopicTriggerContext `protobuf:"bytes,4,opt,name=topic,proto3,oneof"`
}

type TriggerResponse added in v0.3.0

type TriggerResponse struct {

	// The data returned in the response
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// The context of the request response
	// Typically this will be one to one with the Trigger Context
	// i.e. if you receive http context you may return http context
	//
	// Types that are assignable to Context:
	//	*TriggerResponse_Http
	//	*TriggerResponse_Topic
	Context isTriggerResponse_Context `protobuf_oneof:"context"`
	// contains filtered or unexported fields
}

The worker has successfully processed a trigger

func (*TriggerResponse) Descriptor deprecated added in v0.3.0

func (*TriggerResponse) Descriptor() ([]byte, []int)

Deprecated: Use TriggerResponse.ProtoReflect.Descriptor instead.

func (*TriggerResponse) GetContext added in v0.3.0

func (m *TriggerResponse) GetContext() isTriggerResponse_Context

func (*TriggerResponse) GetData added in v0.3.0

func (x *TriggerResponse) GetData() []byte

func (*TriggerResponse) GetHttp added in v0.3.0

func (x *TriggerResponse) GetHttp() *HttpResponseContext

func (*TriggerResponse) GetTopic added in v0.3.0

func (x *TriggerResponse) GetTopic() *TopicResponseContext

func (*TriggerResponse) ProtoMessage added in v0.3.0

func (*TriggerResponse) ProtoMessage()

func (*TriggerResponse) ProtoReflect added in v0.3.0

func (x *TriggerResponse) ProtoReflect() protoreflect.Message

func (*TriggerResponse) Reset added in v0.3.0

func (x *TriggerResponse) Reset()

func (*TriggerResponse) String added in v0.3.0

func (x *TriggerResponse) String() string

type TriggerResponse_Http added in v0.3.0

type TriggerResponse_Http struct {
	// response to a http request
	Http *HttpResponseContext `protobuf:"bytes,10,opt,name=http,proto3,oneof"`
}

type TriggerResponse_Topic added in v0.3.0

type TriggerResponse_Topic struct {
	// response to a topic trigger
	Topic *TopicResponseContext `protobuf:"bytes,11,opt,name=topic,proto3,oneof"`
}

type UnimplementedDocumentServiceServer added in v0.4.0

type UnimplementedDocumentServiceServer struct {
}

UnimplementedDocumentServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedDocumentServiceServer) Delete added in v0.4.0

func (UnimplementedDocumentServiceServer) Get added in v0.4.0

func (UnimplementedDocumentServiceServer) Query added in v0.4.0

func (UnimplementedDocumentServiceServer) QueryStream added in v0.4.0

func (UnimplementedDocumentServiceServer) Set added in v0.4.0

type UnimplementedEventServiceServer added in v0.4.0

type UnimplementedEventServiceServer struct {
}

UnimplementedEventServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedEventServiceServer) Publish added in v0.4.0

type UnimplementedFaasServiceServer added in v0.4.0

type UnimplementedFaasServiceServer struct {
}

UnimplementedFaasServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedFaasServiceServer) TriggerStream added in v0.4.0

type UnimplementedQueueServiceServer added in v0.4.0

type UnimplementedQueueServiceServer struct {
}

UnimplementedQueueServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedQueueServiceServer) Complete added in v0.4.0

func (UnimplementedQueueServiceServer) Receive added in v0.4.0

func (UnimplementedQueueServiceServer) Send added in v0.4.0

func (UnimplementedQueueServiceServer) SendBatch added in v0.4.0

type UnimplementedSecretServiceServer added in v0.5.0

type UnimplementedSecretServiceServer struct {
}

UnimplementedSecretServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedSecretServiceServer) Access added in v0.5.0

func (UnimplementedSecretServiceServer) Put added in v0.5.0

type UnimplementedStorageServiceServer added in v0.4.0

type UnimplementedStorageServiceServer struct {
}

UnimplementedStorageServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedStorageServiceServer) Delete added in v0.4.0

func (UnimplementedStorageServiceServer) Read added in v0.4.0

func (UnimplementedStorageServiceServer) Write added in v0.4.0

type UnimplementedTopicServiceServer added in v0.4.0

type UnimplementedTopicServiceServer struct {
}

UnimplementedTopicServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedTopicServiceServer) List added in v0.4.0

type UnsafeDocumentServiceServer added in v0.4.0

type UnsafeDocumentServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeDocumentServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DocumentServiceServer will result in compilation errors.

type UnsafeEventServiceServer added in v0.4.0

type UnsafeEventServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeEventServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EventServiceServer will result in compilation errors.

type UnsafeFaasServiceServer added in v0.4.0

type UnsafeFaasServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeFaasServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FaasServiceServer will result in compilation errors.

type UnsafeQueueServiceServer added in v0.4.0

type UnsafeQueueServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeQueueServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueueServiceServer will result in compilation errors.

type UnsafeSecretServiceServer added in v0.5.0

type UnsafeSecretServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeSecretServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SecretServiceServer will result in compilation errors.

type UnsafeStorageServiceServer added in v0.4.0

type UnsafeStorageServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeStorageServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StorageServiceServer will result in compilation errors.

type UnsafeTopicServiceServer added in v0.4.0

type UnsafeTopicServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeTopicServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TopicServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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