update

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pbf_update_api_proto protoreflect.FileDescriptor
View Source
var File_pbf_update_create_proto protoreflect.FileDescriptor
View Source
var File_pbf_update_delete_proto protoreflect.FileDescriptor
View Source
var File_pbf_update_search_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use CreateI.ProtoReflect.Descriptor instead.

func (*CreateI) ProtoMessage

func (*CreateI) ProtoMessage()

func (*CreateI) ProtoReflect

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

func (*CreateI) Reset

func (x *CreateI) Reset()

func (*CreateI) String

func (x *CreateI) String() string

type CreateO

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

func (*CreateO) Descriptor deprecated

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

Deprecated: Use CreateO.ProtoReflect.Descriptor instead.

func (*CreateO) ProtoMessage

func (*CreateO) ProtoMessage()

func (*CreateO) ProtoReflect

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

func (*CreateO) Reset

func (x *CreateO) Reset()

func (*CreateO) String

func (x *CreateO) String() string

type DeleteI

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

func (*DeleteI) Descriptor deprecated

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

Deprecated: Use DeleteI.ProtoReflect.Descriptor instead.

func (*DeleteI) ProtoMessage

func (*DeleteI) ProtoMessage()

func (*DeleteI) ProtoReflect

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

func (*DeleteI) Reset

func (x *DeleteI) Reset()

func (*DeleteI) String

func (x *DeleteI) String() string

type DeleteO

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

func (*DeleteO) Descriptor deprecated

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

Deprecated: Use DeleteO.ProtoReflect.Descriptor instead.

func (*DeleteO) ProtoMessage

func (*DeleteO) ProtoMessage()

func (*DeleteO) ProtoReflect

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

func (*DeleteO) Reset

func (x *DeleteO) Reset()

func (*DeleteO) String

func (x *DeleteO) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use SearchI.ProtoReflect.Descriptor instead.

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

func (*SearchI) Reset

func (x *SearchI) Reset()

func (*SearchI) String

func (x *SearchI) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use SearchO.ProtoReflect.Descriptor instead.

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

func (*SearchO) Reset

func (x *SearchO) Reset()

func (*SearchO) String

func (x *SearchO) String() string

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 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 (*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.

func (UnimplementedAPIServer) Create

func (UnimplementedAPIServer) Delete

func (UnimplementedAPIServer) Search

func (UnimplementedAPIServer) Update

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) Descriptor() ([]byte, []int)

Deprecated: Use UpdateI.ProtoReflect.Descriptor instead.

func (*UpdateI) ProtoMessage

func (*UpdateI) ProtoMessage()

func (*UpdateI) ProtoReflect

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

func (*UpdateI) Reset

func (x *UpdateI) Reset()

func (*UpdateI) String

func (x *UpdateI) String() string

type UpdateO

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

func (*UpdateO) Descriptor deprecated

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

Deprecated: Use UpdateO.ProtoReflect.Descriptor instead.

func (*UpdateO) ProtoMessage

func (*UpdateO) ProtoMessage()

func (*UpdateO) ProtoReflect

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

func (*UpdateO) Reset

func (x *UpdateO) Reset()

func (*UpdateO) String

func (x *UpdateO) String() string

Jump to

Keyboard shortcuts

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