Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterSearchEngineServer(s grpc.ServiceRegistrar, srv SearchEngineServer)
- type Board
- func (*Board) Descriptor() ([]byte, []int)
- func (m *Board) GetDescription() string
- func (m *Board) GetId() int64
- func (m *Board) GetName() string
- func (m *Board) GetPrivacy() string
- func (m *Board) GetUserId() int64
- func (*Board) ProtoMessage()
- func (m *Board) Reset()
- func (m *Board) String() string
- func (m *Board) XXX_DiscardUnknown()
- func (m *Board) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Board) XXX_Merge(src proto.Message)
- func (m *Board) XXX_Size() int
- func (m *Board) XXX_Unmarshal(b []byte) error
- type Pin
- func (*Pin) Descriptor() ([]byte, []int)
- func (m *Pin) GetAuthor() int64
- func (m *Pin) GetDescription() string
- func (m *Pin) GetId() int64
- func (m *Pin) GetLiked() bool
- func (m *Pin) GetMediaSource() string
- func (m *Pin) GetNumLikes() int64
- func (m *Pin) GetTitle() string
- func (*Pin) ProtoMessage()
- func (m *Pin) Reset()
- func (m *Pin) String() string
- func (m *Pin) XXX_DiscardUnknown()
- func (m *Pin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Pin) XXX_Merge(src proto.Message)
- func (m *Pin) XXX_Size() int
- func (m *Pin) XXX_Unmarshal(b []byte) error
- type Profile
- func (*Profile) Descriptor() ([]byte, []int)
- func (m *Profile) GetId() int64
- func (m *Profile) GetName() string
- func (m *Profile) GetProfileImage() string
- func (m *Profile) GetUsername() string
- func (m *Profile) GetWebsiteUrl() string
- func (*Profile) ProtoMessage()
- func (m *Profile) Reset()
- func (m *Profile) String() string
- func (m *Profile) XXX_DiscardUnknown()
- func (m *Profile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Profile) XXX_Merge(src proto.Message)
- func (m *Profile) XXX_Size() int
- func (m *Profile) XXX_Unmarshal(b []byte) error
- type Query
- func (*Query) Descriptor() ([]byte, []int)
- func (m *Query) GetQuery() string
- func (*Query) ProtoMessage()
- func (m *Query) Reset()
- func (m *Query) String() string
- func (m *Query) XXX_DiscardUnknown()
- func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Query) XXX_Merge(src proto.Message)
- func (m *Query) XXX_Size() int
- func (m *Query) XXX_Unmarshal(b []byte) error
- type QueryResult
- func (*QueryResult) Descriptor() ([]byte, []int)
- func (m *QueryResult) GetBoards() []*Board
- func (m *QueryResult) GetPins() []*Pin
- func (m *QueryResult) GetUsers() []*Profile
- func (*QueryResult) ProtoMessage()
- func (m *QueryResult) Reset()
- func (m *QueryResult) String() string
- func (m *QueryResult) XXX_DiscardUnknown()
- func (m *QueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryResult) XXX_Merge(src proto.Message)
- func (m *QueryResult) XXX_Size() int
- func (m *QueryResult) XXX_Unmarshal(b []byte) error
- type SearchEngineClient
- type SearchEngineServer
- type UnimplementedSearchEngineServer
- type UnsafeSearchEngineServer
Constants ¶
const (
SearchEngine_Get_FullMethodName = "/search.SearchEngine/Get"
)
Variables ¶
var SearchEngine_ServiceDesc = grpc.ServiceDesc{ ServiceName: "search.SearchEngine", HandlerType: (*SearchEngineServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _SearchEngine_Get_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "search.proto", }
SearchEngine_ServiceDesc is the grpc.ServiceDesc for SearchEngine service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSearchEngineServer ¶
func RegisterSearchEngineServer(s grpc.ServiceRegistrar, srv SearchEngineServer)
Types ¶
type Board ¶
type Board struct { Id int64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Description string `protobuf:"bytes,3,opt,name=Description,proto3" json:"Description,omitempty"` Privacy string `protobuf:"bytes,4,opt,name=Privacy,proto3" json:"Privacy,omitempty"` UserId int64 `protobuf:"varint,5,opt,name=UserId,proto3" json:"UserId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Board) Descriptor ¶
func (*Board) GetDescription ¶
func (*Board) GetPrivacy ¶
func (*Board) ProtoMessage ¶
func (*Board) ProtoMessage()
func (*Board) XXX_DiscardUnknown ¶
func (m *Board) XXX_DiscardUnknown()
func (*Board) XXX_Marshal ¶
func (*Board) XXX_Unmarshal ¶
type Pin ¶
type Pin struct { Id int64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` Title string `protobuf:"bytes,2,opt,name=Title,proto3" json:"Title,omitempty"` Description string `protobuf:"bytes,3,opt,name=Description,proto3" json:"Description,omitempty"` MediaSource string `protobuf:"bytes,4,opt,name=MediaSource,proto3" json:"MediaSource,omitempty"` NumLikes int64 `protobuf:"varint,5,opt,name=NumLikes,proto3" json:"NumLikes,omitempty"` Liked bool `protobuf:"varint,6,opt,name=Liked,proto3" json:"Liked,omitempty"` Author int64 `protobuf:"varint,7,opt,name=Author,proto3" json:"Author,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Pin) Descriptor ¶
func (*Pin) GetDescription ¶
func (*Pin) GetMediaSource ¶
func (*Pin) GetNumLikes ¶
func (*Pin) ProtoMessage ¶
func (*Pin) ProtoMessage()
func (*Pin) XXX_DiscardUnknown ¶
func (m *Pin) XXX_DiscardUnknown()
func (*Pin) XXX_Unmarshal ¶
type Profile ¶
type Profile struct { Id int64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` Username string `protobuf:"bytes,2,opt,name=Username,proto3" json:"Username,omitempty"` Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"` ProfileImage string `protobuf:"bytes,4,opt,name=ProfileImage,proto3" json:"ProfileImage,omitempty"` WebsiteUrl string `protobuf:"bytes,5,opt,name=WebsiteUrl,proto3" json:"WebsiteUrl,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Profile) Descriptor ¶
func (*Profile) GetProfileImage ¶
func (*Profile) GetUsername ¶
func (*Profile) GetWebsiteUrl ¶
func (*Profile) ProtoMessage ¶
func (*Profile) ProtoMessage()
func (*Profile) XXX_DiscardUnknown ¶
func (m *Profile) XXX_DiscardUnknown()
func (*Profile) XXX_Marshal ¶
func (*Profile) XXX_Unmarshal ¶
type Query ¶
type Query struct { Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Query) Descriptor ¶
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) XXX_DiscardUnknown ¶
func (m *Query) XXX_DiscardUnknown()
func (*Query) XXX_Marshal ¶
func (*Query) XXX_Unmarshal ¶
type QueryResult ¶
type QueryResult struct { Users []*Profile `protobuf:"bytes,1,rep,name=Users,proto3" json:"Users,omitempty"` Boards []*Board `protobuf:"bytes,2,rep,name=Boards,proto3" json:"Boards,omitempty"` Pins []*Pin `protobuf:"bytes,3,rep,name=Pins,proto3" json:"Pins,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueryResult) Descriptor ¶
func (*QueryResult) Descriptor() ([]byte, []int)
func (*QueryResult) GetBoards ¶
func (m *QueryResult) GetBoards() []*Board
func (*QueryResult) GetPins ¶
func (m *QueryResult) GetPins() []*Pin
func (*QueryResult) GetUsers ¶
func (m *QueryResult) GetUsers() []*Profile
func (*QueryResult) ProtoMessage ¶
func (*QueryResult) ProtoMessage()
func (*QueryResult) Reset ¶
func (m *QueryResult) Reset()
func (*QueryResult) String ¶
func (m *QueryResult) String() string
func (*QueryResult) XXX_DiscardUnknown ¶
func (m *QueryResult) XXX_DiscardUnknown()
func (*QueryResult) XXX_Marshal ¶
func (m *QueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryResult) XXX_Merge ¶
func (m *QueryResult) XXX_Merge(src proto.Message)
func (*QueryResult) XXX_Size ¶
func (m *QueryResult) XXX_Size() int
func (*QueryResult) XXX_Unmarshal ¶
func (m *QueryResult) XXX_Unmarshal(b []byte) error
type SearchEngineClient ¶
type SearchEngineClient interface {
Get(ctx context.Context, in *Query, opts ...grpc.CallOption) (*QueryResult, error)
}
SearchEngineClient is the client API for SearchEngine 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 NewSearchEngineClient ¶
func NewSearchEngineClient(cc grpc.ClientConnInterface) SearchEngineClient
type SearchEngineServer ¶
type SearchEngineServer interface { Get(context.Context, *Query) (*QueryResult, error) // contains filtered or unexported methods }
SearchEngineServer is the server API for SearchEngine service. All implementations must embed UnimplementedSearchEngineServer for forward compatibility
type UnimplementedSearchEngineServer ¶
type UnimplementedSearchEngineServer struct { }
UnimplementedSearchEngineServer must be embedded to have forward compatible implementations.
func (UnimplementedSearchEngineServer) Get ¶
func (UnimplementedSearchEngineServer) Get(context.Context, *Query) (*QueryResult, error)
type UnsafeSearchEngineServer ¶
type UnsafeSearchEngineServer interface {
// contains filtered or unexported methods
}
UnsafeSearchEngineServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SearchEngineServer will result in compilation errors.