Skip to content
Snippets Groups Projects

Devops20 monitoring

Merged Olgun Cengiz requested to merge devops20-monitoring into master
2 files
+ 12
1
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 8
0
@@ -18,6 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
package handler
import (
"fmt"
"io/ioutil"
"strings"
@@ -43,6 +44,8 @@ type KeyStorageServerImpl struct {
MaxMessageSize int
}
var version = "undefined"
func (s *KeyStorageServerImpl) CreateAuthentication(ctx context.Context) *authentication.Authentication {
if md, ok := metadata.FromIncomingContext(ctx); ok {
uuid := strings.Join(md["uuid"], "")
@@ -194,3 +197,8 @@ func (s *KeyStorageServerImpl) ReserveKeyUUID(ctx context.Context, in *api.Reser
return reserveKeyUUIDResponse, nil
}
func (s *KeyStorageServerImpl) GetVersionKSA(ctx context.Context, in *api.GetVersionKSAMessage) (*api.GetVersionKSAResponseMessage, error) {
fmt.Println("Version: " + version)
return &api.GetVersionKSAResponseMessage{Version: version, Errors: ""}, nil
}
\ No newline at end of file
Loading