package
Version:
v3.1.4
Opens a new window with list of versions in this module.
Published: Feb 13, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package register
build service and register to consul.
View Source
const (
CmdDesc = "Register service to consul"
CmdName = "service:register"
)
New
create and return instance.
go run main.go service:register \
--addr=consul.example.com \
--scheme=https \
--service-addr=127.0.0.1 \
--service-port=8080 \
--service-id=myapp-hash-string \
--service-name=myapp
func (*Command) Handle ¶
Handle
send upload request.
InitField
initialize command fields.
InitOption
initialize command option.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.