Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
179 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"registry_type": "zookeeper", | ||
"registry_url": "localhost:2181", | ||
"service_base_url":"/rpcx", | ||
"host": "0.0.0.0", | ||
"port": 8972, | ||
"user": "admin", | ||
"password": "admin" | ||
} | ||
"registry_type": "etcd", | ||
"registry_url": "http://127.0.0.1:2379", | ||
"service_base_url": "/rpcx", | ||
"host": "0.0.0.0", | ||
"port": 8972, | ||
"user": "admin", | ||
"password": "admin" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"registry_type": "zookeeper", | ||
"registry_url": "localhost:2181", | ||
"service_base_url":"/rpcx", | ||
"host": "0.0.0.0", | ||
"port": 8972, | ||
"user": "admin", | ||
"password": "admin" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
{{template "header"}} | ||
</head> | ||
|
||
<body> | ||
|
||
{{template "nav"}} | ||
|
||
<!-- Page Content --> | ||
<div class="container"> | ||
|
||
<div class="row"> | ||
<div class="col-lg-12"> | ||
<h1>Registry</h1> | ||
<hr> | ||
<form class="form-horizontal" method="POST" action="/registry"> | ||
<div class="form-group"> | ||
<label for="registry_type" class="col-sm-2 control-label">Registry Type</label> | ||
<div class="col-sm-6"> | ||
<select class="form-control" id="registry_type" name="registry_type"> | ||
{{if eq .RegistryType "zookeeper"}} | ||
<option selected="selected">zookeeper</option> | ||
{{else}} | ||
<option>zookeeper</option> | ||
{{end}} | ||
{{if eq .RegistryType "etcd"}} | ||
<option selected="selected">etcd</option> | ||
{{else}} | ||
<option>etcd</option> | ||
{{end}} | ||
</select> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="registry_url" class="col-sm-2 control-label">Registy_URL</label> | ||
<div class="col-sm-6"> | ||
<input type="text" class="form-control" id="registry_url" name="registry_url" value="{{.RegistryURL}}"> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="base_path" class="col-sm-2 control-label">Base Path</label> | ||
<div class="col-sm-6"> | ||
<input type="text" class="form-control" id="base_path" name="base_path" value="{{.ServiceBaseURL}}"> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="host" class="col-sm-2 control-label">Host</label> | ||
<div class="col-sm-6"> | ||
<input type="text" class="form-control" id="host" name="host" value="{{.Host}}" disabled> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="port" class="col-sm-2 control-label">Port</label> | ||
<div class="col-sm-6"> | ||
<input type="text" class="form-control" id="port" name="port" value="{{.Port}}" disabled> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<div class="col-sm-offset-2 col-sm-10"> | ||
<button type="submit" class="btn btn-default">Submit</button> | ||
</div> | ||
</div> | ||
</form> | ||
|
||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
{{template "footer"}} | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters