Documentation
¶
Index ¶
- Variables
- func RegisterEventServer(s grpc.ServiceRegistrar, srv EventServer)
- func RegisterKeyValueServer(s grpc.ServiceRegistrar, srv KeyValueServer)
- func RegisterQueueServer(s grpc.ServiceRegistrar, srv QueueServer)
- func RegisterStorageServer(s grpc.ServiceRegistrar, srv StorageServer)
- func RegisterTopicServer(s grpc.ServiceRegistrar, srv TopicServer)
- func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
- type EventClient
- type EventPublishRequest
- func (*EventPublishRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EventPublishRequest) GetEvent() *NitricEvent
- func (x *EventPublishRequest) GetTopic() string
- func (*EventPublishRequest) ProtoMessage()
- func (x *EventPublishRequest) ProtoReflect() protoreflect.Message
- func (x *EventPublishRequest) Reset()
- func (x *EventPublishRequest) String() string
- type EventPublishResponse
- func (*EventPublishResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EventPublishResponse) GetId() string
- func (*EventPublishResponse) ProtoMessage()
- func (x *EventPublishResponse) ProtoReflect() protoreflect.Message
- func (x *EventPublishResponse) Reset()
- func (x *EventPublishResponse) String() string
- type EventServer
- type FailedTask
- type KeyValueClient
- type KeyValueDeleteRequest
- func (*KeyValueDeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *KeyValueDeleteRequest) GetCollection() string
- func (x *KeyValueDeleteRequest) GetKey() string
- func (*KeyValueDeleteRequest) ProtoMessage()
- func (x *KeyValueDeleteRequest) ProtoReflect() protoreflect.Message
- func (x *KeyValueDeleteRequest) Reset()
- func (x *KeyValueDeleteRequest) String() string
- type KeyValueDeleteResponse
- type KeyValueGetRequest
- func (*KeyValueGetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *KeyValueGetRequest) GetCollection() string
- func (x *KeyValueGetRequest) GetKey() string
- func (*KeyValueGetRequest) ProtoMessage()
- func (x *KeyValueGetRequest) ProtoReflect() protoreflect.Message
- func (x *KeyValueGetRequest) Reset()
- func (x *KeyValueGetRequest) String() string
- type KeyValueGetResponse
- func (*KeyValueGetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *KeyValueGetResponse) GetValue() *structpb.Struct
- func (*KeyValueGetResponse) ProtoMessage()
- func (x *KeyValueGetResponse) ProtoReflect() protoreflect.Message
- func (x *KeyValueGetResponse) Reset()
- func (x *KeyValueGetResponse) String() string
- type KeyValuePutRequest
- func (*KeyValuePutRequest) Descriptor() ([]byte, []int)deprecated
- func (x *KeyValuePutRequest) GetCollection() string
- func (x *KeyValuePutRequest) GetKey() string
- func (x *KeyValuePutRequest) GetValue() *structpb.Struct
- func (*KeyValuePutRequest) ProtoMessage()
- func (x *KeyValuePutRequest) ProtoReflect() protoreflect.Message
- func (x *KeyValuePutRequest) Reset()
- func (x *KeyValuePutRequest) String() string
- type KeyValuePutResponse
- type KeyValueServer
- type NitricEvent
- func (*NitricEvent) Descriptor() ([]byte, []int)deprecated
- func (x *NitricEvent) GetId() string
- func (x *NitricEvent) GetPayload() *structpb.Struct
- func (x *NitricEvent) GetPayloadType() string
- func (*NitricEvent) ProtoMessage()
- func (x *NitricEvent) ProtoReflect() protoreflect.Message
- func (x *NitricEvent) Reset()
- func (x *NitricEvent) String() string
- type NitricTask
- func (*NitricTask) Descriptor() ([]byte, []int)deprecated
- func (x *NitricTask) GetId() string
- func (x *NitricTask) GetLeaseId() string
- func (x *NitricTask) GetPayload() *structpb.Struct
- func (x *NitricTask) GetPayloadType() string
- func (*NitricTask) ProtoMessage()
- func (x *NitricTask) ProtoReflect() protoreflect.Message
- func (x *NitricTask) Reset()
- func (x *NitricTask) String() string
- type NitricTopic
- type QueueClient
- type QueueCompleteRequest
- func (*QueueCompleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueueCompleteRequest) GetLeaseId() string
- func (x *QueueCompleteRequest) GetQueue() string
- func (*QueueCompleteRequest) ProtoMessage()
- func (x *QueueCompleteRequest) ProtoReflect() protoreflect.Message
- func (x *QueueCompleteRequest) Reset()
- func (x *QueueCompleteRequest) String() string
- type QueueCompleteResponse
- type QueueReceiveRequest
- func (*QueueReceiveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueueReceiveRequest) GetDepth() int32
- func (x *QueueReceiveRequest) GetQueue() string
- func (*QueueReceiveRequest) ProtoMessage()
- func (x *QueueReceiveRequest) ProtoReflect() protoreflect.Message
- func (x *QueueReceiveRequest) Reset()
- func (x *QueueReceiveRequest) String() string
- type QueueReceiveResponse
- func (*QueueReceiveResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueueReceiveResponse) GetTasks() []*NitricTask
- func (*QueueReceiveResponse) ProtoMessage()
- func (x *QueueReceiveResponse) ProtoReflect() protoreflect.Message
- func (x *QueueReceiveResponse) Reset()
- func (x *QueueReceiveResponse) String() string
- type QueueSendBatchRequest
- func (*QueueSendBatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueueSendBatchRequest) GetQueue() string
- func (x *QueueSendBatchRequest) GetTasks() []*NitricTask
- func (*QueueSendBatchRequest) ProtoMessage()
- func (x *QueueSendBatchRequest) ProtoReflect() protoreflect.Message
- func (x *QueueSendBatchRequest) Reset()
- func (x *QueueSendBatchRequest) String() string
- type QueueSendBatchResponse
- func (*QueueSendBatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueueSendBatchResponse) GetFailedTasks() []*FailedTask
- func (*QueueSendBatchResponse) ProtoMessage()
- func (x *QueueSendBatchResponse) ProtoReflect() protoreflect.Message
- func (x *QueueSendBatchResponse) Reset()
- func (x *QueueSendBatchResponse) String() string
- type QueueSendRequest
- func (*QueueSendRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueueSendRequest) GetQueue() string
- func (x *QueueSendRequest) GetTask() *NitricTask
- func (*QueueSendRequest) ProtoMessage()
- func (x *QueueSendRequest) ProtoReflect() protoreflect.Message
- func (x *QueueSendRequest) Reset()
- func (x *QueueSendRequest) String() string
- type QueueSendResponse
- type QueueServer
- type StorageClient
- type StorageDeleteRequest
- func (*StorageDeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StorageDeleteRequest) GetBucketName() string
- func (x *StorageDeleteRequest) GetKey() string
- func (*StorageDeleteRequest) ProtoMessage()
- func (x *StorageDeleteRequest) ProtoReflect() protoreflect.Message
- func (x *StorageDeleteRequest) Reset()
- func (x *StorageDeleteRequest) String() string
- type StorageDeleteResponse
- type StorageReadRequest
- func (*StorageReadRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StorageReadRequest) GetBucketName() string
- func (x *StorageReadRequest) GetKey() string
- func (*StorageReadRequest) ProtoMessage()
- func (x *StorageReadRequest) ProtoReflect() protoreflect.Message
- func (x *StorageReadRequest) Reset()
- func (x *StorageReadRequest) String() string
- type StorageReadResponse
- func (*StorageReadResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StorageReadResponse) GetBody() []byte
- func (*StorageReadResponse) ProtoMessage()
- func (x *StorageReadResponse) ProtoReflect() protoreflect.Message
- func (x *StorageReadResponse) Reset()
- func (x *StorageReadResponse) String() string
- type StorageServer
- type StorageWriteRequest
- func (*StorageWriteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StorageWriteRequest) GetBody() []byte
- func (x *StorageWriteRequest) GetBucketName() string
- func (x *StorageWriteRequest) GetKey() string
- func (*StorageWriteRequest) ProtoMessage()
- func (x *StorageWriteRequest) ProtoReflect() protoreflect.Message
- func (x *StorageWriteRequest) Reset()
- func (x *StorageWriteRequest) String() string
- type StorageWriteResponse
- type TopicClient
- type TopicListRequest
- type TopicListResponse
- func (*TopicListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TopicListResponse) GetTopics() []*NitricTopic
- func (*TopicListResponse) ProtoMessage()
- func (x *TopicListResponse) ProtoReflect() protoreflect.Message
- func (x *TopicListResponse) Reset()
- func (x *TopicListResponse) String() string
- type TopicServer
- type UnimplementedEventServer
- type UnimplementedKeyValueServer
- func (UnimplementedKeyValueServer) Delete(context.Context, *KeyValueDeleteRequest) (*KeyValueDeleteResponse, error)
- func (UnimplementedKeyValueServer) Get(context.Context, *KeyValueGetRequest) (*KeyValueGetResponse, error)
- func (UnimplementedKeyValueServer) Put(context.Context, *KeyValuePutRequest) (*KeyValuePutResponse, error)
- type UnimplementedQueueServer
- func (UnimplementedQueueServer) Complete(context.Context, *QueueCompleteRequest) (*QueueCompleteResponse, error)
- func (UnimplementedQueueServer) Receive(context.Context, *QueueReceiveRequest) (*QueueReceiveResponse, error)
- func (UnimplementedQueueServer) Send(context.Context, *QueueSendRequest) (*QueueSendResponse, error)
- func (UnimplementedQueueServer) SendBatch(context.Context, *QueueSendBatchRequest) (*QueueSendBatchResponse, error)
- type UnimplementedStorageServer
- func (UnimplementedStorageServer) Delete(context.Context, *StorageDeleteRequest) (*StorageDeleteResponse, error)
- func (UnimplementedStorageServer) Read(context.Context, *StorageReadRequest) (*StorageReadResponse, error)
- func (UnimplementedStorageServer) Write(context.Context, *StorageWriteRequest) (*StorageWriteResponse, error)
- type UnimplementedTopicServer
- type UnimplementedUserServer
- type UnsafeEventServer
- type UnsafeKeyValueServer
- type UnsafeQueueServer
- type UnsafeStorageServer
- type UnsafeTopicServer
- type UnsafeUserServer
- type UserClient
- type UserCreateRequest
- func (*UserCreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserCreateRequest) GetEmail() string
- func (x *UserCreateRequest) GetId() string
- func (x *UserCreateRequest) GetPassword() string
- func (x *UserCreateRequest) GetTenant() string
- func (*UserCreateRequest) ProtoMessage()
- func (x *UserCreateRequest) ProtoReflect() protoreflect.Message
- func (x *UserCreateRequest) Reset()
- func (x *UserCreateRequest) String() string
- type UserCreateResponse
- type UserServer
Constants ¶
This section is empty.
Variables ¶
var Event_ServiceDesc = grpc.ServiceDesc{ ServiceName: "nitric.event.v1.Event", HandlerType: (*EventServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Publish", Handler: _Event_Publish_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "event/v1/event.proto", }
Event_ServiceDesc is the grpc.ServiceDesc for Event service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_auth_v1_auth_proto protoreflect.FileDescriptor
var File_event_v1_event_proto protoreflect.FileDescriptor
var File_kv_v1_kv_proto protoreflect.FileDescriptor
var File_queue_v1_queue_proto protoreflect.FileDescriptor
var File_storage_v1_storage_proto protoreflect.FileDescriptor
var KeyValue_ServiceDesc = grpc.ServiceDesc{ ServiceName: "nitric.kv.v1.KeyValue", HandlerType: (*KeyValueServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _KeyValue_Get_Handler, }, { MethodName: "Put", Handler: _KeyValue_Put_Handler, }, { MethodName: "Delete", Handler: _KeyValue_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "kv/v1/kv.proto", }
KeyValue_ServiceDesc is the grpc.ServiceDesc for KeyValue service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Queue_ServiceDesc = grpc.ServiceDesc{ ServiceName: "nitric.queue.v1.Queue", HandlerType: (*QueueServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Send", Handler: _Queue_Send_Handler, }, { MethodName: "SendBatch", Handler: _Queue_SendBatch_Handler, }, { MethodName: "Receive", Handler: _Queue_Receive_Handler, }, { MethodName: "Complete", Handler: _Queue_Complete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "queue/v1/queue.proto", }
Queue_ServiceDesc is the grpc.ServiceDesc for Queue service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Storage_ServiceDesc = grpc.ServiceDesc{ ServiceName: "nitric.storage.v1.Storage", HandlerType: (*StorageServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Read", Handler: _Storage_Read_Handler, }, { MethodName: "Write", Handler: _Storage_Write_Handler, }, { MethodName: "Delete", Handler: _Storage_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "storage/v1/storage.proto", }
Storage_ServiceDesc is the grpc.ServiceDesc for Storage service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Topic_ServiceDesc = grpc.ServiceDesc{ ServiceName: "nitric.event.v1.Topic", HandlerType: (*TopicServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "List", Handler: _Topic_List_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "event/v1/event.proto", }
Topic_ServiceDesc is the grpc.ServiceDesc for Topic service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var User_ServiceDesc = grpc.ServiceDesc{ ServiceName: "nitric.auth.v1.User", HandlerType: (*UserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _User_Create_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "auth/v1/auth.proto", }
User_ServiceDesc is the grpc.ServiceDesc for User service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterEventServer ¶
func RegisterEventServer(s grpc.ServiceRegistrar, srv EventServer)
func RegisterKeyValueServer ¶
func RegisterKeyValueServer(s grpc.ServiceRegistrar, srv KeyValueServer)
func RegisterQueueServer ¶
func RegisterQueueServer(s grpc.ServiceRegistrar, srv QueueServer)
func RegisterStorageServer ¶
func RegisterStorageServer(s grpc.ServiceRegistrar, srv StorageServer)
func RegisterTopicServer ¶
func RegisterTopicServer(s grpc.ServiceRegistrar, srv TopicServer)
func RegisterUserServer ¶
func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
Types ¶
type EventClient ¶
type EventClient interface {
// Publishes an message to a given topic
Publish(ctx context.Context, in *EventPublishRequest, opts ...grpc.CallOption) (*EventPublishResponse, error)
}
EventClient is the client API for Event 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 NewEventClient ¶
func NewEventClient(cc grpc.ClientConnInterface) EventClient
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 EventServer ¶
type EventServer interface {
// Publishes an message to a given topic
Publish(context.Context, *EventPublishRequest) (*EventPublishResponse, error)
// contains filtered or unexported methods
}
EventServer is the server API for Event service. All implementations must embed UnimplementedEventServer for forward compatibility
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 KeyValueClient ¶
type KeyValueClient interface {
// Get an existing key
Get(ctx context.Context, in *KeyValueGetRequest, opts ...grpc.CallOption) (*KeyValueGetResponse, error)
// Create a new or overwrite and existing key
Put(ctx context.Context, in *KeyValuePutRequest, opts ...grpc.CallOption) (*KeyValuePutResponse, error)
// Delete an existing
Delete(ctx context.Context, in *KeyValueDeleteRequest, opts ...grpc.CallOption) (*KeyValueDeleteResponse, error)
}
KeyValueClient is the client API for KeyValue 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 NewKeyValueClient ¶
func NewKeyValueClient(cc grpc.ClientConnInterface) KeyValueClient
type KeyValueDeleteRequest ¶
type KeyValueDeleteRequest struct {
// The collection containing the existing keyValue to be deleted
Collection string `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"`
// The unique key of the keyValue to delete
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
// contains filtered or unexported fields
}
func (*KeyValueDeleteRequest) Descriptor
deprecated
func (*KeyValueDeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use KeyValueDeleteRequest.ProtoReflect.Descriptor instead.
func (*KeyValueDeleteRequest) GetCollection ¶
func (x *KeyValueDeleteRequest) GetCollection() string
func (*KeyValueDeleteRequest) GetKey ¶
func (x *KeyValueDeleteRequest) GetKey() string
func (*KeyValueDeleteRequest) ProtoMessage ¶
func (*KeyValueDeleteRequest) ProtoMessage()
func (*KeyValueDeleteRequest) ProtoReflect ¶
func (x *KeyValueDeleteRequest) ProtoReflect() protoreflect.Message
func (*KeyValueDeleteRequest) Reset ¶
func (x *KeyValueDeleteRequest) Reset()
func (*KeyValueDeleteRequest) String ¶
func (x *KeyValueDeleteRequest) String() string
type KeyValueDeleteResponse ¶
type KeyValueDeleteResponse struct {
// contains filtered or unexported fields
}
func (*KeyValueDeleteResponse) Descriptor
deprecated
func (*KeyValueDeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use KeyValueDeleteResponse.ProtoReflect.Descriptor instead.
func (*KeyValueDeleteResponse) ProtoMessage ¶
func (*KeyValueDeleteResponse) ProtoMessage()
func (*KeyValueDeleteResponse) ProtoReflect ¶
func (x *KeyValueDeleteResponse) ProtoReflect() protoreflect.Message
func (*KeyValueDeleteResponse) Reset ¶
func (x *KeyValueDeleteResponse) Reset()
func (*KeyValueDeleteResponse) String ¶
func (x *KeyValueDeleteResponse) String() string
type KeyValueGetRequest ¶
type KeyValueGetRequest struct {
// The collection to retrieve the keyValue from
Collection string `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"`
// The unique key of the keyValue to retrieve
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
// contains filtered or unexported fields
}
func (*KeyValueGetRequest) Descriptor
deprecated
func (*KeyValueGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use KeyValueGetRequest.ProtoReflect.Descriptor instead.
func (*KeyValueGetRequest) GetCollection ¶
func (x *KeyValueGetRequest) GetCollection() string
func (*KeyValueGetRequest) GetKey ¶
func (x *KeyValueGetRequest) GetKey() string
func (*KeyValueGetRequest) ProtoMessage ¶
func (*KeyValueGetRequest) ProtoMessage()
func (*KeyValueGetRequest) ProtoReflect ¶
func (x *KeyValueGetRequest) ProtoReflect() protoreflect.Message
func (*KeyValueGetRequest) Reset ¶
func (x *KeyValueGetRequest) Reset()
func (*KeyValueGetRequest) String ¶
func (x *KeyValueGetRequest) String() string
type KeyValueGetResponse ¶
type KeyValueGetResponse struct {
// The retrieved value
Value *structpb.Struct `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*KeyValueGetResponse) Descriptor
deprecated
func (*KeyValueGetResponse) Descriptor() ([]byte, []int)
Deprecated: Use KeyValueGetResponse.ProtoReflect.Descriptor instead.
func (*KeyValueGetResponse) GetValue ¶
func (x *KeyValueGetResponse) GetValue() *structpb.Struct
func (*KeyValueGetResponse) ProtoMessage ¶
func (*KeyValueGetResponse) ProtoMessage()
func (*KeyValueGetResponse) ProtoReflect ¶
func (x *KeyValueGetResponse) ProtoReflect() protoreflect.Message
func (*KeyValueGetResponse) Reset ¶
func (x *KeyValueGetResponse) Reset()
func (*KeyValueGetResponse) String ¶
func (x *KeyValueGetResponse) String() string
type KeyValuePutRequest ¶
type KeyValuePutRequest struct {
// The collection containing the existing keyValue to be inserted or updated.
Collection string `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"`
// The unique key of the keyValue to put
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
// A simple JSON object
Value *structpb.Struct `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*KeyValuePutRequest) Descriptor
deprecated
func (*KeyValuePutRequest) Descriptor() ([]byte, []int)
Deprecated: Use KeyValuePutRequest.ProtoReflect.Descriptor instead.
func (*KeyValuePutRequest) GetCollection ¶
func (x *KeyValuePutRequest) GetCollection() string
func (*KeyValuePutRequest) GetKey ¶
func (x *KeyValuePutRequest) GetKey() string
func (*KeyValuePutRequest) GetValue ¶
func (x *KeyValuePutRequest) GetValue() *structpb.Struct
func (*KeyValuePutRequest) ProtoMessage ¶
func (*KeyValuePutRequest) ProtoMessage()
func (*KeyValuePutRequest) ProtoReflect ¶
func (x *KeyValuePutRequest) ProtoReflect() protoreflect.Message
func (*KeyValuePutRequest) Reset ¶
func (x *KeyValuePutRequest) Reset()
func (*KeyValuePutRequest) String ¶
func (x *KeyValuePutRequest) String() string
type KeyValuePutResponse ¶
type KeyValuePutResponse struct {
// contains filtered or unexported fields
}
func (*KeyValuePutResponse) Descriptor
deprecated
func (*KeyValuePutResponse) Descriptor() ([]byte, []int)
Deprecated: Use KeyValuePutResponse.ProtoReflect.Descriptor instead.
func (*KeyValuePutResponse) ProtoMessage ¶
func (*KeyValuePutResponse) ProtoMessage()
func (*KeyValuePutResponse) ProtoReflect ¶
func (x *KeyValuePutResponse) ProtoReflect() protoreflect.Message
func (*KeyValuePutResponse) Reset ¶
func (x *KeyValuePutResponse) Reset()
func (*KeyValuePutResponse) String ¶
func (x *KeyValuePutResponse) String() string
type KeyValueServer ¶
type KeyValueServer interface {
// Get an existing key
Get(context.Context, *KeyValueGetRequest) (*KeyValueGetResponse, error)
// Create a new or overwrite and existing key
Put(context.Context, *KeyValuePutRequest) (*KeyValuePutResponse, error)
// Delete an existing
Delete(context.Context, *KeyValueDeleteRequest) (*KeyValueDeleteResponse, error)
// contains filtered or unexported methods
}
KeyValueServer is the server API for KeyValue service. All implementations must embed UnimplementedKeyValueServer for forward compatibility
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=payloadType,proto3" json:"payloadType,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=leaseId,proto3" json:"leaseId,omitempty"`
// A content hint for the tasks payload
PayloadType string `protobuf:"bytes,3,opt,name=payloadType,proto3" json:"payloadType,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 QueueClient ¶
type QueueClient 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)
}
QueueClient is the client API for Queue 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 NewQueueClient ¶
func NewQueueClient(cc grpc.ClientConnInterface) QueueClient
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=leaseId,proto3" json:"leaseId,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 QueueServer ¶
type QueueServer 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)
// contains filtered or unexported methods
}
QueueServer is the server API for Queue service. All implementations must embed UnimplementedQueueServer for forward compatibility
type StorageClient ¶
type StorageClient 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)
}
StorageClient is the client API for Storage 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 NewStorageClient ¶
func NewStorageClient(cc grpc.ClientConnInterface) StorageClient
type StorageDeleteRequest ¶
type StorageDeleteRequest struct {
// Name of the bucket to delete from
BucketName string `protobuf:"bytes,1,opt,name=bucketName,proto3" json:"bucketName,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=bucketName,proto3" json:"bucketName,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 StorageServer ¶
type StorageServer 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)
// contains filtered or unexported methods
}
StorageServer is the server API for Storage service. All implementations must embed UnimplementedStorageServer 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=bucketName,proto3" json:"bucketName,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 TopicClient ¶
type TopicClient interface {
// Return a list of existing topics in the provider environment
List(ctx context.Context, in *TopicListRequest, opts ...grpc.CallOption) (*TopicListResponse, error)
}
TopicClient is the client API for Topic 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 NewTopicClient ¶
func NewTopicClient(cc grpc.ClientConnInterface) TopicClient
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 TopicServer ¶
type TopicServer interface {
// Return a list of existing topics in the provider environment
List(context.Context, *TopicListRequest) (*TopicListResponse, error)
// contains filtered or unexported methods
}
TopicServer is the server API for Topic service. All implementations must embed UnimplementedTopicServer for forward compatibility
type UnimplementedEventServer ¶
type UnimplementedEventServer struct {
}
UnimplementedEventServer must be embedded to have forward compatible implementations.
func (UnimplementedEventServer) Publish ¶
func (UnimplementedEventServer) Publish(context.Context, *EventPublishRequest) (*EventPublishResponse, error)
type UnimplementedKeyValueServer ¶
type UnimplementedKeyValueServer struct {
}
UnimplementedKeyValueServer must be embedded to have forward compatible implementations.
func (UnimplementedKeyValueServer) Delete ¶
func (UnimplementedKeyValueServer) Delete(context.Context, *KeyValueDeleteRequest) (*KeyValueDeleteResponse, error)
func (UnimplementedKeyValueServer) Get ¶
func (UnimplementedKeyValueServer) Get(context.Context, *KeyValueGetRequest) (*KeyValueGetResponse, error)
func (UnimplementedKeyValueServer) Put ¶
func (UnimplementedKeyValueServer) Put(context.Context, *KeyValuePutRequest) (*KeyValuePutResponse, error)
type UnimplementedQueueServer ¶
type UnimplementedQueueServer struct {
}
UnimplementedQueueServer must be embedded to have forward compatible implementations.
func (UnimplementedQueueServer) Complete ¶
func (UnimplementedQueueServer) Complete(context.Context, *QueueCompleteRequest) (*QueueCompleteResponse, error)
func (UnimplementedQueueServer) Receive ¶
func (UnimplementedQueueServer) Receive(context.Context, *QueueReceiveRequest) (*QueueReceiveResponse, error)
func (UnimplementedQueueServer) Send ¶
func (UnimplementedQueueServer) Send(context.Context, *QueueSendRequest) (*QueueSendResponse, error)
func (UnimplementedQueueServer) SendBatch ¶
func (UnimplementedQueueServer) SendBatch(context.Context, *QueueSendBatchRequest) (*QueueSendBatchResponse, error)
type UnimplementedStorageServer ¶
type UnimplementedStorageServer struct {
}
UnimplementedStorageServer must be embedded to have forward compatible implementations.
func (UnimplementedStorageServer) Delete ¶
func (UnimplementedStorageServer) Delete(context.Context, *StorageDeleteRequest) (*StorageDeleteResponse, error)
func (UnimplementedStorageServer) Read ¶
func (UnimplementedStorageServer) Read(context.Context, *StorageReadRequest) (*StorageReadResponse, error)
func (UnimplementedStorageServer) Write ¶
func (UnimplementedStorageServer) Write(context.Context, *StorageWriteRequest) (*StorageWriteResponse, error)
type UnimplementedTopicServer ¶
type UnimplementedTopicServer struct {
}
UnimplementedTopicServer must be embedded to have forward compatible implementations.
func (UnimplementedTopicServer) List ¶
func (UnimplementedTopicServer) List(context.Context, *TopicListRequest) (*TopicListResponse, error)
type UnimplementedUserServer ¶
type UnimplementedUserServer struct {
}
UnimplementedUserServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServer) Create ¶
func (UnimplementedUserServer) Create(context.Context, *UserCreateRequest) (*UserCreateResponse, error)
type UnsafeEventServer ¶
type UnsafeEventServer interface {
// contains filtered or unexported methods
}
UnsafeEventServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EventServer will result in compilation errors.
type UnsafeKeyValueServer ¶
type UnsafeKeyValueServer interface {
// contains filtered or unexported methods
}
UnsafeKeyValueServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KeyValueServer will result in compilation errors.
type UnsafeQueueServer ¶
type UnsafeQueueServer interface {
// contains filtered or unexported methods
}
UnsafeQueueServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueueServer will result in compilation errors.
type UnsafeStorageServer ¶
type UnsafeStorageServer interface {
// contains filtered or unexported methods
}
UnsafeStorageServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StorageServer will result in compilation errors.
type UnsafeTopicServer ¶
type UnsafeTopicServer interface {
// contains filtered or unexported methods
}
UnsafeTopicServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TopicServer will result in compilation errors.
type UnsafeUserServer ¶
type UnsafeUserServer interface {
// contains filtered or unexported methods
}
UnsafeUserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServer will result in compilation errors.
type UserClient ¶
type UserClient interface {
// Create a new user in a tenant
Create(ctx context.Context, in *UserCreateRequest, opts ...grpc.CallOption) (*UserCreateResponse, error)
}
UserClient is the client API for User 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 NewUserClient ¶
func NewUserClient(cc grpc.ClientConnInterface) UserClient
type UserCreateRequest ¶
type UserCreateRequest struct {
Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
// contains filtered or unexported fields
}
Request to create a new user in the given tenant (user pool).
func (*UserCreateRequest) Descriptor
deprecated
func (*UserCreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserCreateRequest.ProtoReflect.Descriptor instead.
func (*UserCreateRequest) GetEmail ¶
func (x *UserCreateRequest) GetEmail() string
func (*UserCreateRequest) GetId ¶
func (x *UserCreateRequest) GetId() string
func (*UserCreateRequest) GetPassword ¶
func (x *UserCreateRequest) GetPassword() string
func (*UserCreateRequest) GetTenant ¶
func (x *UserCreateRequest) GetTenant() string
func (*UserCreateRequest) ProtoMessage ¶
func (*UserCreateRequest) ProtoMessage()
func (*UserCreateRequest) ProtoReflect ¶
func (x *UserCreateRequest) ProtoReflect() protoreflect.Message
func (*UserCreateRequest) Reset ¶
func (x *UserCreateRequest) Reset()
func (*UserCreateRequest) String ¶
func (x *UserCreateRequest) String() string
type UserCreateResponse ¶
type UserCreateResponse struct {
// contains filtered or unexported fields
}
Successful create requests provide no response currently.
func (*UserCreateResponse) Descriptor
deprecated
func (*UserCreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserCreateResponse.ProtoReflect.Descriptor instead.
func (*UserCreateResponse) ProtoMessage ¶
func (*UserCreateResponse) ProtoMessage()
func (*UserCreateResponse) ProtoReflect ¶
func (x *UserCreateResponse) ProtoReflect() protoreflect.Message
func (*UserCreateResponse) Reset ¶
func (x *UserCreateResponse) Reset()
func (*UserCreateResponse) String ¶
func (x *UserCreateResponse) String() string
type UserServer ¶
type UserServer interface {
// Create a new user in a tenant
Create(context.Context, *UserCreateRequest) (*UserCreateResponse, error)
// contains filtered or unexported methods
}
UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility