command
Version:
v1.0.3
Opens a new window with list of versions in this module.
Published: Dec 14, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
ElasticSearch Example
To run the example follow the steps below:
ElasticSearch Setup
Run the docker image of elasticsearch
docker run -d --name gofr-elasticsearch -p 2012:9200 -p 2013:9300 -e "discovery.type=single-node" elasticsearch:7.10.1
Run
Now run the example on path /zopsmart/gofr/examples/using-elasticsearch
by
go run main.go
Docker Build
To Build a docker image, follow the below steps:
On non linux machines :
GOOS=linux go build main.go
This will build a go binary
docker build -t using-elasticsearch:$(date +%s) .
On linux machines(Ubuntu/Mac):
go build main.go
This will build a go binary
docker build -t using-elasticsearch:$(date +%s) .
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.