mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-21 23:15:06 +00:00
One
This commit is contained in:
20
blog/search/handler/search.go
Normal file
20
blog/search/handler/search.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package handler
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/micro/micro/v3/service/logger"
|
||||
pb "github.com/micro/services/blog/search/proto"
|
||||
)
|
||||
|
||||
type Search struct{}
|
||||
|
||||
func (s *Search) Index(ctx context.Context, req *pb.IndexRequest, rsp *pb.IndexResponse) error {
|
||||
logger.Info("Received Search.Index request")
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *Search) Search(ctx context.Context, req *pb.SearchRequest, rsp *pb.SearchResponse) error {
|
||||
logger.Info("Received Search.Search request")
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user