searchcontrollers

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(log *zap.Logger, rateOpt *common.RateOptions, jwtOpt *common.JWTOptions, mux *http.ServeMux, store *goredisstore.GoRedisStore, grpcServerOpt *common.GrpcServerOptions, jaegerTracerOpt *common.JaegerTracerOptions) error

Init the search controller

func InitTest

func InitTest(log *zap.Logger, rateOpt *common.RateOptions, jwtOpt *common.JWTOptions, mux *http.ServeMux, store *goredisstore.GoRedisStore, grpcServerOpt *common.GrpcServerOptions, jaegerTracerOpt *common.JaegerTracerOptions) error

InitTest the search controller

Types

type SearchController

type SearchController struct {
	SearchServiceClient sh.SearchServiceClient
	UserServiceClient   userproto.UserServiceClient
	// contains filtered or unexported fields
}

SearchController - Create Search Controller

func NewSearchController

func NewSearchController(log *zap.Logger, s sh.SearchServiceClient, userServiceClient userproto.UserServiceClient) *SearchController

NewSearchController - Create Search Handler

func (*SearchController) Search

func (sc *SearchController) Search(ctx context.Context, w http.ResponseWriter, r *http.Request, user *userproto.ContextData, requestID string)

Search - Search Channels

func (*SearchController) ServeHTTP

func (sc *SearchController) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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