searchservices

package
v0.0.0-...-4e281dc Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateIndexing

func CreateIndexing(log *zap.Logger, db *sql.DB, elasticOpt *common.ElasticOptions) (*elasticsearch.Client, error)

CreateIndexing - Create Index

func StartSearchServer

func StartSearchServer(log *zap.Logger, isTest bool, pwd string, dbOpt *common.DBOptions, redisOpt *common.RedisOptions, mailerOpt *common.MailerOptions, grpcServerOpt *common.GrpcServerOptions, jwtOpt *common.JWTOptions, oauthOpt *common.OauthOptions, userOpt *common.UserOptions, jaegerTracerOpt *common.JaegerTracerOptions, promOpt *common.PromOptions, elasticOpt *common.ElasticOptions, roleOpt *common.RoleOptions, dbService *common.DBService, redisService *common.RedisService, mailerService common.MailerIntf)

StartSearchServer - start search server

Types

type SearchService

type SearchService struct {
	DBService           *common.DBService
	ElasticSearchClient *elasticsearch.Client
	IndexName           string
	searchproto.UnimplementedSearchServiceServer
	// contains filtered or unexported fields
}

SearchService - For accessing search service

func NewSearchService

func NewSearchService(log *zap.Logger, dbOpt *common.DBService, es *elasticsearch.Client, indexName string) *SearchService

NewSearchService - Create search service

func (*SearchService) Search

Search - search query string

Jump to

Keyboard shortcuts

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