Documentation ¶
Index ¶
- Variables
- func RegisterAPIServer(s grpc.ServiceRegistrar, srv APIServer)
- type APIClient
- type APIServer
- type CreateI
- type CreateO
- type DeleteI
- type DeleteO
- type SearchI
- type SearchI_API
- func (*SearchI_API) Descriptor() ([]byte, []int)deprecated
- func (x *SearchI_API) GetChunking() *SearchI_API_Chunking
- func (x *SearchI_API) GetOperator() []string
- func (*SearchI_API) ProtoMessage()
- func (x *SearchI_API) ProtoReflect() protoreflect.Message
- func (x *SearchI_API) Reset()
- func (x *SearchI_API) String() string
- type SearchI_API_Chunking
- func (*SearchI_API_Chunking) Descriptor() ([]byte, []int)deprecated
- func (x *SearchI_API_Chunking) GetPerpage() string
- func (x *SearchI_API_Chunking) GetPointer() string
- func (*SearchI_API_Chunking) ProtoMessage()
- func (x *SearchI_API_Chunking) ProtoReflect() protoreflect.Message
- func (x *SearchI_API_Chunking) Reset()
- func (x *SearchI_API_Chunking) String() string
- type SearchI_Obj
- func (*SearchI_Obj) Descriptor() ([]byte, []int)deprecated
- func (x *SearchI_Obj) GetMetadata() map[string]string
- func (x *SearchI_Obj) GetProperty() *SearchI_Obj_Property
- func (*SearchI_Obj) ProtoMessage()
- func (x *SearchI_Obj) ProtoReflect() protoreflect.Message
- func (x *SearchI_Obj) Reset()
- func (x *SearchI_Obj) String() string
- type SearchI_Obj_Property
- type SearchO
- type SearchO_API
- type SearchO_API_Chunking
- func (*SearchO_API_Chunking) Descriptor() ([]byte, []int)deprecated
- func (x *SearchO_API_Chunking) GetPerpage() string
- func (x *SearchO_API_Chunking) GetPointer() string
- func (*SearchO_API_Chunking) ProtoMessage()
- func (x *SearchO_API_Chunking) ProtoReflect() protoreflect.Message
- func (x *SearchO_API_Chunking) Reset()
- func (x *SearchO_API_Chunking) String() string
- type SearchO_Obj
- func (*SearchO_Obj) Descriptor() ([]byte, []int)deprecated
- func (x *SearchO_Obj) GetMetadata() map[string]string
- func (x *SearchO_Obj) GetProperty() *SearchO_Obj_Property
- func (*SearchO_Obj) ProtoMessage()
- func (x *SearchO_Obj) ProtoReflect() protoreflect.Message
- func (x *SearchO_Obj) Reset()
- func (x *SearchO_Obj) String() string
- type SearchO_Obj_Property
- func (*SearchO_Obj_Property) Descriptor() ([]byte, []int)deprecated
- func (x *SearchO_Obj_Property) GetAttachments() []*SearchO_Obj_Property_Link
- func (x *SearchO_Obj_Property) GetHead() string
- func (x *SearchO_Obj_Property) GetText() string
- func (*SearchO_Obj_Property) ProtoMessage()
- func (x *SearchO_Obj_Property) ProtoReflect() protoreflect.Message
- func (x *SearchO_Obj_Property) Reset()
- func (x *SearchO_Obj_Property) String() string
- type SearchO_Obj_Property_Link
- func (*SearchO_Obj_Property_Link) Descriptor() ([]byte, []int)deprecated
- func (x *SearchO_Obj_Property_Link) GetAddr() string
- func (x *SearchO_Obj_Property_Link) GetType() string
- func (*SearchO_Obj_Property_Link) ProtoMessage()
- func (x *SearchO_Obj_Property_Link) ProtoReflect() protoreflect.Message
- func (x *SearchO_Obj_Property_Link) Reset()
- func (x *SearchO_Obj_Property_Link) String() string
- type UnimplementedAPIServer
- func (UnimplementedAPIServer) Create(context.Context, *CreateI) (*CreateO, error)
- func (UnimplementedAPIServer) Delete(context.Context, *DeleteI) (*DeleteO, error)
- func (UnimplementedAPIServer) Search(context.Context, *SearchI) (*SearchO, error)
- func (UnimplementedAPIServer) Update(context.Context, *UpdateI) (*UpdateO, error)
- type UnsafeAPIServer
- type UpdateI
- type UpdateO
Constants ¶
This section is empty.
Variables ¶
var File_pbf_update_api_proto protoreflect.FileDescriptor
var File_pbf_update_create_proto protoreflect.FileDescriptor
var File_pbf_update_delete_proto protoreflect.FileDescriptor
var File_pbf_update_search_proto protoreflect.FileDescriptor
var File_pbf_update_update_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAPIServer ¶
func RegisterAPIServer(s grpc.ServiceRegistrar, srv APIServer)
Types ¶
type APIClient ¶
type APIClient interface { Create(ctx context.Context, in *CreateI, opts ...grpc.CallOption) (*CreateO, error) Delete(ctx context.Context, in *DeleteI, opts ...grpc.CallOption) (*DeleteO, error) Search(ctx context.Context, in *SearchI, opts ...grpc.CallOption) (*SearchO, error) Update(ctx context.Context, in *UpdateI, opts ...grpc.CallOption) (*UpdateO, error) }
APIClient is the client API for API 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 NewAPIClient ¶
func NewAPIClient(cc grpc.ClientConnInterface) APIClient
type APIServer ¶
type APIServer interface { Create(context.Context, *CreateI) (*CreateO, error) Delete(context.Context, *DeleteI) (*DeleteO, error) Search(context.Context, *SearchI) (*SearchO, error) Update(context.Context, *UpdateI) (*UpdateO, error) // contains filtered or unexported methods }
APIServer is the server API for API service. All implementations must embed UnimplementedAPIServer for forward compatibility
type CreateI ¶
type CreateI struct {
// contains filtered or unexported fields
}
func (*CreateI) Descriptor
deprecated
func (*CreateI) ProtoMessage ¶
func (*CreateI) ProtoMessage()
func (*CreateI) ProtoReflect ¶
func (x *CreateI) ProtoReflect() protoreflect.Message
type CreateO ¶
type CreateO struct {
// contains filtered or unexported fields
}
func (*CreateO) Descriptor
deprecated
func (*CreateO) ProtoMessage ¶
func (*CreateO) ProtoMessage()
func (*CreateO) ProtoReflect ¶
func (x *CreateO) ProtoReflect() protoreflect.Message
type DeleteI ¶
type DeleteI struct {
// contains filtered or unexported fields
}
func (*DeleteI) Descriptor
deprecated
func (*DeleteI) ProtoMessage ¶
func (*DeleteI) ProtoMessage()
func (*DeleteI) ProtoReflect ¶
func (x *DeleteI) ProtoReflect() protoreflect.Message
type DeleteO ¶
type DeleteO struct {
// contains filtered or unexported fields
}
func (*DeleteO) Descriptor
deprecated
func (*DeleteO) ProtoMessage ¶
func (*DeleteO) ProtoMessage()
func (*DeleteO) ProtoReflect ¶
func (x *DeleteO) ProtoReflect() protoreflect.Message
type SearchI ¶
type SearchI struct { Api *SearchI_API `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` Obj []*SearchI_Obj `protobuf:"bytes,2,rep,name=obj,proto3" json:"obj,omitempty"` // contains filtered or unexported fields }
SearchI is the input for searching updates. That is looking up the user's written update in natural language associated with a timeline. Below is an example to fetch all updates associated with the specified timeline.
{ "api": { "chunking": { "perpage": "100", "pointer": "300" } }, "obj": [ { "metadata": { "timeline.venturemark.co/id": "<id>", "venture.venturemark.co/id": "<id>" } } ] }
func (*SearchI) Descriptor
deprecated
func (*SearchI) GetApi ¶
func (x *SearchI) GetApi() *SearchI_API
func (*SearchI) GetObj ¶
func (x *SearchI) GetObj() []*SearchI_Obj
func (*SearchI) ProtoMessage ¶
func (*SearchI) ProtoMessage()
func (*SearchI) ProtoReflect ¶
func (x *SearchI) ProtoReflect() protoreflect.Message
type SearchI_API ¶
type SearchI_API struct { Chunking *SearchI_API_Chunking `protobuf:"bytes,1,opt,name=chunking,proto3" json:"chunking,omitempty"` Operator []string `protobuf:"bytes,2,rep,name=operator,proto3" json:"operator,omitempty"` // contains filtered or unexported fields }
func (*SearchI_API) Descriptor
deprecated
func (*SearchI_API) Descriptor() ([]byte, []int)
Deprecated: Use SearchI_API.ProtoReflect.Descriptor instead.
func (*SearchI_API) GetChunking ¶
func (x *SearchI_API) GetChunking() *SearchI_API_Chunking
func (*SearchI_API) GetOperator ¶
func (x *SearchI_API) GetOperator() []string
func (*SearchI_API) ProtoMessage ¶
func (*SearchI_API) ProtoMessage()
func (*SearchI_API) ProtoReflect ¶
func (x *SearchI_API) ProtoReflect() protoreflect.Message
func (*SearchI_API) Reset ¶
func (x *SearchI_API) Reset()
func (*SearchI_API) String ¶
func (x *SearchI_API) String() string
type SearchI_API_Chunking ¶
type SearchI_API_Chunking struct { Pointer string `protobuf:"bytes,1,opt,name=pointer,proto3" json:"pointer,omitempty"` Perpage string `protobuf:"bytes,2,opt,name=perpage,proto3" json:"perpage,omitempty"` // contains filtered or unexported fields }
func (*SearchI_API_Chunking) Descriptor
deprecated
func (*SearchI_API_Chunking) Descriptor() ([]byte, []int)
Deprecated: Use SearchI_API_Chunking.ProtoReflect.Descriptor instead.
func (*SearchI_API_Chunking) GetPerpage ¶
func (x *SearchI_API_Chunking) GetPerpage() string
func (*SearchI_API_Chunking) GetPointer ¶
func (x *SearchI_API_Chunking) GetPointer() string
func (*SearchI_API_Chunking) ProtoMessage ¶
func (*SearchI_API_Chunking) ProtoMessage()
func (*SearchI_API_Chunking) ProtoReflect ¶
func (x *SearchI_API_Chunking) ProtoReflect() protoreflect.Message
func (*SearchI_API_Chunking) Reset ¶
func (x *SearchI_API_Chunking) Reset()
func (*SearchI_API_Chunking) String ¶
func (x *SearchI_API_Chunking) String() string
type SearchI_Obj ¶
type SearchI_Obj struct { Metadata map[string]string `` /* 157-byte string literal not displayed */ Property *SearchI_Obj_Property `protobuf:"bytes,2,opt,name=property,proto3" json:"property,omitempty"` // contains filtered or unexported fields }
func (*SearchI_Obj) Descriptor
deprecated
func (*SearchI_Obj) Descriptor() ([]byte, []int)
Deprecated: Use SearchI_Obj.ProtoReflect.Descriptor instead.
func (*SearchI_Obj) GetMetadata ¶
func (x *SearchI_Obj) GetMetadata() map[string]string
func (*SearchI_Obj) GetProperty ¶
func (x *SearchI_Obj) GetProperty() *SearchI_Obj_Property
func (*SearchI_Obj) ProtoMessage ¶
func (*SearchI_Obj) ProtoMessage()
func (*SearchI_Obj) ProtoReflect ¶
func (x *SearchI_Obj) ProtoReflect() protoreflect.Message
func (*SearchI_Obj) Reset ¶
func (x *SearchI_Obj) Reset()
func (*SearchI_Obj) String ¶
func (x *SearchI_Obj) String() string
type SearchI_Obj_Property ¶
type SearchI_Obj_Property struct {
// contains filtered or unexported fields
}
func (*SearchI_Obj_Property) Descriptor
deprecated
func (*SearchI_Obj_Property) Descriptor() ([]byte, []int)
Deprecated: Use SearchI_Obj_Property.ProtoReflect.Descriptor instead.
func (*SearchI_Obj_Property) ProtoMessage ¶
func (*SearchI_Obj_Property) ProtoMessage()
func (*SearchI_Obj_Property) ProtoReflect ¶
func (x *SearchI_Obj_Property) ProtoReflect() protoreflect.Message
func (*SearchI_Obj_Property) Reset ¶
func (x *SearchI_Obj_Property) Reset()
func (*SearchI_Obj_Property) String ¶
func (x *SearchI_Obj_Property) String() string
type SearchO ¶
type SearchO struct { Api *SearchO_API `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` Obj []*SearchO_Obj `protobuf:"bytes,2,rep,name=obj,proto3" json:"obj,omitempty"` // contains filtered or unexported fields }
SearchO is the output for searching updates. Below is an example showing a list of objects associated with the requested timeline.
{ "api": { "chunking": { "perpage": "100", "pointer": "300" } }, "obj": [ { "metadata": { "timeline.venturemark.co/id": "<id>", "update.venturemark.co/id": "<id>", "venture.venturemark.co/id": "<id>" }, "property": { "head": "Lorem ipsum ...", "text": "Lorem ipsum ..." } } ] }
func (*SearchO) Descriptor
deprecated
func (*SearchO) GetApi ¶
func (x *SearchO) GetApi() *SearchO_API
func (*SearchO) GetObj ¶
func (x *SearchO) GetObj() []*SearchO_Obj
func (*SearchO) ProtoMessage ¶
func (*SearchO) ProtoMessage()
func (*SearchO) ProtoReflect ¶
func (x *SearchO) ProtoReflect() protoreflect.Message
type SearchO_API ¶
type SearchO_API struct { Chunking *SearchO_API_Chunking `protobuf:"bytes,1,opt,name=chunking,proto3" json:"chunking,omitempty"` // contains filtered or unexported fields }
func (*SearchO_API) Descriptor
deprecated
func (*SearchO_API) Descriptor() ([]byte, []int)
Deprecated: Use SearchO_API.ProtoReflect.Descriptor instead.
func (*SearchO_API) GetChunking ¶
func (x *SearchO_API) GetChunking() *SearchO_API_Chunking
func (*SearchO_API) ProtoMessage ¶
func (*SearchO_API) ProtoMessage()
func (*SearchO_API) ProtoReflect ¶
func (x *SearchO_API) ProtoReflect() protoreflect.Message
func (*SearchO_API) Reset ¶
func (x *SearchO_API) Reset()
func (*SearchO_API) String ¶
func (x *SearchO_API) String() string
type SearchO_API_Chunking ¶
type SearchO_API_Chunking struct { Pointer string `protobuf:"bytes,1,opt,name=pointer,proto3" json:"pointer,omitempty"` Perpage string `protobuf:"bytes,2,opt,name=perpage,proto3" json:"perpage,omitempty"` // contains filtered or unexported fields }
func (*SearchO_API_Chunking) Descriptor
deprecated
func (*SearchO_API_Chunking) Descriptor() ([]byte, []int)
Deprecated: Use SearchO_API_Chunking.ProtoReflect.Descriptor instead.
func (*SearchO_API_Chunking) GetPerpage ¶
func (x *SearchO_API_Chunking) GetPerpage() string
func (*SearchO_API_Chunking) GetPointer ¶
func (x *SearchO_API_Chunking) GetPointer() string
func (*SearchO_API_Chunking) ProtoMessage ¶
func (*SearchO_API_Chunking) ProtoMessage()
func (*SearchO_API_Chunking) ProtoReflect ¶
func (x *SearchO_API_Chunking) ProtoReflect() protoreflect.Message
func (*SearchO_API_Chunking) Reset ¶
func (x *SearchO_API_Chunking) Reset()
func (*SearchO_API_Chunking) String ¶
func (x *SearchO_API_Chunking) String() string
type SearchO_Obj ¶
type SearchO_Obj struct { Metadata map[string]string `` /* 157-byte string literal not displayed */ Property *SearchO_Obj_Property `protobuf:"bytes,2,opt,name=property,proto3" json:"property,omitempty"` // contains filtered or unexported fields }
func (*SearchO_Obj) Descriptor
deprecated
func (*SearchO_Obj) Descriptor() ([]byte, []int)
Deprecated: Use SearchO_Obj.ProtoReflect.Descriptor instead.
func (*SearchO_Obj) GetMetadata ¶
func (x *SearchO_Obj) GetMetadata() map[string]string
func (*SearchO_Obj) GetProperty ¶
func (x *SearchO_Obj) GetProperty() *SearchO_Obj_Property
func (*SearchO_Obj) ProtoMessage ¶
func (*SearchO_Obj) ProtoMessage()
func (*SearchO_Obj) ProtoReflect ¶
func (x *SearchO_Obj) ProtoReflect() protoreflect.Message
func (*SearchO_Obj) Reset ¶
func (x *SearchO_Obj) Reset()
func (*SearchO_Obj) String ¶
func (x *SearchO_Obj) String() string
type SearchO_Obj_Property ¶
type SearchO_Obj_Property struct { Attachments []*SearchO_Obj_Property_Link `protobuf:"bytes,1,rep,name=attachments,proto3" json:"attachments,omitempty"` Head string `protobuf:"bytes,2,opt,name=head,proto3" json:"head,omitempty"` Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` // contains filtered or unexported fields }
func (*SearchO_Obj_Property) Descriptor
deprecated
func (*SearchO_Obj_Property) Descriptor() ([]byte, []int)
Deprecated: Use SearchO_Obj_Property.ProtoReflect.Descriptor instead.
func (*SearchO_Obj_Property) GetAttachments ¶ added in v0.4.2
func (x *SearchO_Obj_Property) GetAttachments() []*SearchO_Obj_Property_Link
func (*SearchO_Obj_Property) GetHead ¶ added in v0.3.2
func (x *SearchO_Obj_Property) GetHead() string
func (*SearchO_Obj_Property) GetText ¶
func (x *SearchO_Obj_Property) GetText() string
func (*SearchO_Obj_Property) ProtoMessage ¶
func (*SearchO_Obj_Property) ProtoMessage()
func (*SearchO_Obj_Property) ProtoReflect ¶
func (x *SearchO_Obj_Property) ProtoReflect() protoreflect.Message
func (*SearchO_Obj_Property) Reset ¶
func (x *SearchO_Obj_Property) Reset()
func (*SearchO_Obj_Property) String ¶
func (x *SearchO_Obj_Property) String() string
type SearchO_Obj_Property_Link ¶ added in v0.4.2
type SearchO_Obj_Property_Link struct { Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*SearchO_Obj_Property_Link) Descriptor
deprecated
added in
v0.4.2
func (*SearchO_Obj_Property_Link) Descriptor() ([]byte, []int)
Deprecated: Use SearchO_Obj_Property_Link.ProtoReflect.Descriptor instead.
func (*SearchO_Obj_Property_Link) GetAddr ¶ added in v0.4.2
func (x *SearchO_Obj_Property_Link) GetAddr() string
func (*SearchO_Obj_Property_Link) GetType ¶ added in v0.4.2
func (x *SearchO_Obj_Property_Link) GetType() string
func (*SearchO_Obj_Property_Link) ProtoMessage ¶ added in v0.4.2
func (*SearchO_Obj_Property_Link) ProtoMessage()
func (*SearchO_Obj_Property_Link) ProtoReflect ¶ added in v0.4.2
func (x *SearchO_Obj_Property_Link) ProtoReflect() protoreflect.Message
func (*SearchO_Obj_Property_Link) Reset ¶ added in v0.4.2
func (x *SearchO_Obj_Property_Link) Reset()
func (*SearchO_Obj_Property_Link) String ¶ added in v0.4.2
func (x *SearchO_Obj_Property_Link) String() string
type UnimplementedAPIServer ¶
type UnimplementedAPIServer struct { }
UnimplementedAPIServer must be embedded to have forward compatible implementations.
type UnsafeAPIServer ¶
type UnsafeAPIServer interface {
// contains filtered or unexported methods
}
UnsafeAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to APIServer will result in compilation errors.
type UpdateI ¶
type UpdateI struct {
// contains filtered or unexported fields
}
func (*UpdateI) Descriptor
deprecated
func (*UpdateI) ProtoMessage ¶
func (*UpdateI) ProtoMessage()
func (*UpdateI) ProtoReflect ¶
func (x *UpdateI) ProtoReflect() protoreflect.Message
type UpdateO ¶
type UpdateO struct {
// contains filtered or unexported fields
}
func (*UpdateO) Descriptor
deprecated
func (*UpdateO) ProtoMessage ¶
func (*UpdateO) ProtoMessage()
func (*UpdateO) ProtoReflect ¶
func (x *UpdateO) ProtoReflect() protoreflect.Message