this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

search: new package with search service impl code

+9 -5
+1 -1
cmd/palomar/handlers.go search/handlers.go
··· 1 - package main 1 + package search 2 2 3 3 import ( 4 4 "context"
+1 -1
cmd/palomar/indexing.go search/indexing.go
··· 1 - package main 1 + package search 2 2 3 3 import ( 4 4 "bytes"
+2 -1
cmd/palomar/main.go
··· 11 11 _ "github.com/joho/godotenv/autoload" 12 12 13 13 cliutil "github.com/bluesky-social/indigo/cmd/gosky/util" 14 + "github.com/bluesky-social/indigo/search" 14 15 15 16 "github.com/bluesky-social/indigo/version" 16 17 logging "github.com/ipfs/go-log" ··· 131 132 return fmt.Errorf("failed to get elasticsearch: %w", err) 132 133 } 133 134 134 - srv, err := NewServer( 135 + srv, err := search.NewServer( 135 136 db, 136 137 escli, 137 138 cctx.String("atp-plc-host"),
+1 -1
cmd/palomar/query.go search/query.go
··· 1 - package main 1 + package search 2 2 3 3 import ( 4 4 "bytes"
+4 -1
cmd/palomar/server.go search/server.go
··· 1 - package main 1 + package search 2 2 3 3 import ( 4 4 "bytes" ··· 29 29 "github.com/labstack/echo/v4/middleware" 30 30 es "github.com/opensearch-project/opensearch-go/v2" 31 31 gorm "gorm.io/gorm" 32 + logging "github.com/ipfs/go-log" 32 33 ) 34 + 35 + var log = logging.Logger("search") 33 36 34 37 type Server struct { 35 38 escli *es.Client