Official | HULFT IoT EdgeStreaming Plugin SDK Getting Started Third Edition: July 1, 2021
Preparation for implementation with Golang
Create the directories used for implementation with Golang.
-
Create the module directory
Create the "sample" directory directly under $SDK_HOME/dev/go/src/github.sis.saison.co.jp/sherpa/es-agent.
-
$SDK_HOME/dev/go/src/github.sis.saison.co.jp/sherpa/es-agent/sample
-
-
Create the "plugin" directory
Create the "plugin" directory in $SDK_HOME/dev/go/src/github.sis.saison.co.jp/sherpa/es-agent/sample.
-
$SDK_HOME/dev/go/src/github.sis.saison.co.jp/sherpa/es-agent/sample/plugin
-
-
Create the "external" directory
Create the "external" directory in $SDK_HOME/dev/go/src/github.sis.saison.co.jp/sherpa/es-agent/sample.
-
$SDK_HOME/dev/go/src/github.sis.saison.co.jp/sherpa/es-agent/sample/external
-
-
Create the source files
Create source files with the following names in the module directory ("sample" directory):
-
source.go
-
sink.go
-
udsf.go
= Remarks =It is not required to use these file names.
These file names are used in this manual for the sake of convenience.
-
-
Settings when using an IDE
If you use an IDE for implementation with Golang, configure the following settings:
-
Start the IDE and select %SDK_HOME%/dev/go to open it.
-
Set %SDK_HOME%/dev/go for the Gopath in the IDE.
<Example> In the case of VSCode:
File > Preferences > Settings > Extensions > Go configuration > Gopath
-
Official | HULFT IoT EdgeStreaming Plugin SDK Getting Started Third Edition: July 1, 2021