mirror of
https://github.com/openziti/zrok.git
synced 2024-11-23 00:23:48 +01:00
15 lines
393 B
Go
15 lines
393 B
Go
package agent
|
|
|
|
import (
|
|
"context"
|
|
"github.com/openziti/zrok/agent/agentGrpc"
|
|
"github.com/openziti/zrok/build"
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
func (i *agentGrpcImpl) Version(_ context.Context, _ *agentGrpc.VersionRequest) (*agentGrpc.VersionResponse, error) {
|
|
v := build.String()
|
|
logrus.Infof("responding to version inquiry with '%v'", v)
|
|
return &agentGrpc.VersionResponse{V: v}, nil
|
|
}
|