search

package
v0.0.0-...-dfd90ba Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SearchEngine_Get_FullMethodName = "/search.SearchEngine/Get"
)

Variables

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

func (*Board) GetDescription

func (m *Board) GetDescription() string

func (*Board) GetId

func (m *Board) GetId() int64

func (*Board) GetName

func (m *Board) GetName() string

func (*Board) GetPrivacy

func (m *Board) GetPrivacy() string

func (*Board) GetUserId

func (m *Board) GetUserId() int64

func (*Board) ProtoMessage

func (*Board) ProtoMessage()

func (*Board) Reset

func (m *Board) Reset()

func (*Board) String

func (m *Board) String() string

func (*Board) XXX_DiscardUnknown

func (m *Board) XXX_DiscardUnknown()

func (*Board) XXX_Marshal

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

func (*Board) XXX_Merge

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

func (*Board) XXX_Size

func (m *Board) XXX_Size() int

func (*Board) XXX_Unmarshal

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

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

func (*Pin) GetAuthor

func (m *Pin) GetAuthor() int64

func (*Pin) GetDescription

func (m *Pin) GetDescription() string

func (*Pin) GetId

func (m *Pin) GetId() int64

func (*Pin) GetLiked

func (m *Pin) GetLiked() bool

func (*Pin) GetMediaSource

func (m *Pin) GetMediaSource() string

func (*Pin) GetNumLikes

func (m *Pin) GetNumLikes() int64

func (*Pin) GetTitle

func (m *Pin) GetTitle() string

func (*Pin) ProtoMessage

func (*Pin) ProtoMessage()

func (*Pin) Reset

func (m *Pin) Reset()

func (*Pin) String

func (m *Pin) String() string

func (*Pin) XXX_DiscardUnknown

func (m *Pin) XXX_DiscardUnknown()

func (*Pin) XXX_Marshal

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

func (*Pin) XXX_Merge

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

func (*Pin) XXX_Size

func (m *Pin) XXX_Size() int

func (*Pin) XXX_Unmarshal

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

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

func (*Profile) GetId

func (m *Profile) GetId() int64

func (*Profile) GetName

func (m *Profile) GetName() string

func (*Profile) GetProfileImage

func (m *Profile) GetProfileImage() string

func (*Profile) GetUsername

func (m *Profile) GetUsername() string

func (*Profile) GetWebsiteUrl

func (m *Profile) GetWebsiteUrl() string

func (*Profile) ProtoMessage

func (*Profile) ProtoMessage()

func (*Profile) Reset

func (m *Profile) Reset()

func (*Profile) String

func (m *Profile) String() string

func (*Profile) XXX_DiscardUnknown

func (m *Profile) XXX_DiscardUnknown()

func (*Profile) XXX_Marshal

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

func (*Profile) XXX_Merge

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

func (*Profile) XXX_Size

func (m *Profile) XXX_Size() int

func (*Profile) XXX_Unmarshal

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

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

func (*Query) GetQuery

func (m *Query) GetQuery() string

func (*Query) ProtoMessage

func (*Query) ProtoMessage()

func (*Query) Reset

func (m *Query) Reset()

func (*Query) String

func (m *Query) String() string

func (*Query) XXX_DiscardUnknown

func (m *Query) XXX_DiscardUnknown()

func (*Query) XXX_Marshal

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

func (*Query) XXX_Merge

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

func (*Query) XXX_Size

func (m *Query) XXX_Size() int

func (*Query) XXX_Unmarshal

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

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.

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

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.

Jump to

Keyboard shortcuts

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