my_package

package
v0.0.0-...-580ec26 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Document_Type_name = map[int32]string{
	0: "IMAGE",
	1: "TEXT",
	2: "VIDEO",
}
View Source
var Document_Type_value = map[string]int32{
	"IMAGE": 0,
	"TEXT":  1,
	"VIDEO": 2,
}

Functions

func RegisterMyPackageServer

func RegisterMyPackageServer(s *grpc.Server, srv MyPackageServer)

Types

type Document

type Document struct {
	Title                string        `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Type                 Document_Type `protobuf:"varint,2,opt,name=type,proto3,enum=my_package.Document_Type" json:"type,omitempty"`
	Description          string        `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*Document) Descriptor

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

func (*Document) GetDescription

func (m *Document) GetDescription() string

func (*Document) GetTitle

func (m *Document) GetTitle() string

func (*Document) GetType

func (m *Document) GetType() Document_Type

func (*Document) ProtoMessage

func (*Document) ProtoMessage()

func (*Document) Reset

func (m *Document) Reset()

func (*Document) String

func (m *Document) String() string

func (*Document) XXX_DiscardUnknown

func (m *Document) XXX_DiscardUnknown()

func (*Document) XXX_Marshal

func (m *Document) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Document) XXX_Merge

func (m *Document) XXX_Merge(src proto.Message)

func (*Document) XXX_Size

func (m *Document) XXX_Size() int

func (*Document) XXX_Unmarshal

func (m *Document) XXX_Unmarshal(b []byte) error

type Document_Type

type Document_Type int32
const (
	Document_IMAGE Document_Type = 0
	Document_TEXT  Document_Type = 1
	Document_VIDEO Document_Type = 2
)

func (Document_Type) EnumDescriptor

func (Document_Type) EnumDescriptor() ([]byte, []int)

func (Document_Type) String

func (x Document_Type) String() string

type FindRequest

type FindRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*FindRequest) Descriptor

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

func (*FindRequest) ProtoMessage

func (*FindRequest) ProtoMessage()

func (*FindRequest) Reset

func (m *FindRequest) Reset()

func (*FindRequest) String

func (m *FindRequest) String() string

func (*FindRequest) XXX_DiscardUnknown

func (m *FindRequest) XXX_DiscardUnknown()

func (*FindRequest) XXX_Marshal

func (m *FindRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FindRequest) XXX_Merge

func (m *FindRequest) XXX_Merge(src proto.Message)

func (*FindRequest) XXX_Size

func (m *FindRequest) XXX_Size() int

func (*FindRequest) XXX_Unmarshal

func (m *FindRequest) XXX_Unmarshal(b []byte) error

type FindResponse

type FindResponse struct {
	Document             *Document `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"`
	Error                string    `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*FindResponse) Descriptor

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

func (*FindResponse) GetDocument

func (m *FindResponse) GetDocument() *Document

func (*FindResponse) GetError

func (m *FindResponse) GetError() string

func (*FindResponse) ProtoMessage

func (*FindResponse) ProtoMessage()

func (*FindResponse) Reset

func (m *FindResponse) Reset()

func (*FindResponse) String

func (m *FindResponse) String() string

func (*FindResponse) XXX_DiscardUnknown

func (m *FindResponse) XXX_DiscardUnknown()

func (*FindResponse) XXX_Marshal

func (m *FindResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FindResponse) XXX_Merge

func (m *FindResponse) XXX_Merge(src proto.Message)

func (*FindResponse) XXX_Size

func (m *FindResponse) XXX_Size() int

func (*FindResponse) XXX_Unmarshal

func (m *FindResponse) XXX_Unmarshal(b []byte) error

type MyPackageClient

type MyPackageClient interface {
	Store(ctx context.Context, in *StoreRequest, opts ...grpc.CallOption) (*StoreResponse, error)
	Find(ctx context.Context, in *FindRequest, opts ...grpc.CallOption) (MyPackage_FindClient, error)
}

MyPackageClient is the client API for MyPackage service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMyPackageClient

func NewMyPackageClient(cc *grpc.ClientConn) MyPackageClient

type MyPackageServer

type MyPackageServer interface {
	Store(context.Context, *StoreRequest) (*StoreResponse, error)
	Find(*FindRequest, MyPackage_FindServer) error
}

MyPackageServer is the server API for MyPackage service.

type MyPackage_FindClient

type MyPackage_FindClient interface {
	Recv() (*FindResponse, error)
	grpc.ClientStream
}

type MyPackage_FindServer

type MyPackage_FindServer interface {
	Send(*FindResponse) error
	grpc.ServerStream
}

type StoreRequest

type StoreRequest struct {
	Document             *Document `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*StoreRequest) Descriptor

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

func (*StoreRequest) GetDocument

func (m *StoreRequest) GetDocument() *Document

func (*StoreRequest) ProtoMessage

func (*StoreRequest) ProtoMessage()

func (*StoreRequest) Reset

func (m *StoreRequest) Reset()

func (*StoreRequest) String

func (m *StoreRequest) String() string

func (*StoreRequest) XXX_DiscardUnknown

func (m *StoreRequest) XXX_DiscardUnknown()

func (*StoreRequest) XXX_Marshal

func (m *StoreRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StoreRequest) XXX_Merge

func (m *StoreRequest) XXX_Merge(src proto.Message)

func (*StoreRequest) XXX_Size

func (m *StoreRequest) XXX_Size() int

func (*StoreRequest) XXX_Unmarshal

func (m *StoreRequest) XXX_Unmarshal(b []byte) error

type StoreResponse

type StoreResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StoreResponse) Descriptor

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

func (*StoreResponse) ProtoMessage

func (*StoreResponse) ProtoMessage()

func (*StoreResponse) Reset

func (m *StoreResponse) Reset()

func (*StoreResponse) String

func (m *StoreResponse) String() string

func (*StoreResponse) XXX_DiscardUnknown

func (m *StoreResponse) XXX_DiscardUnknown()

func (*StoreResponse) XXX_Marshal

func (m *StoreResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StoreResponse) XXX_Merge

func (m *StoreResponse) XXX_Merge(src proto.Message)

func (*StoreResponse) XXX_Size

func (m *StoreResponse) XXX_Size() int

func (*StoreResponse) XXX_Unmarshal

func (m *StoreResponse) XXX_Unmarshal(b []byte) error

type UnimplementedMyPackageServer

type UnimplementedMyPackageServer struct {
}

UnimplementedMyPackageServer can be embedded to have forward compatible implementations.

func (*UnimplementedMyPackageServer) Find

func (*UnimplementedMyPackageServer) Store

Jump to

Keyboard shortcuts

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