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)
Click to show internal directories.
Click to hide internal directories.