mirror of
https://github.com/openziti/zrok.git
synced 2026-08-28 10:16:59 -05:00
19 lines
463 B
Go
19 lines
463 B
Go
package agent
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/michaelquigley/df/dl"
|
|
"github.com/openziti/zrok/v2/agent/agentGrpc"
|
|
"github.com/openziti/zrok/v2/build"
|
|
)
|
|
|
|
func (i *agentGrpcImpl) Version(_ context.Context, _ *agentGrpc.VersionRequest) (*agentGrpc.VersionResponse, error) {
|
|
v := build.String()
|
|
dl.Debugf("responding to version inquiry with '%v'", v)
|
|
return &agentGrpc.VersionResponse{
|
|
V: v,
|
|
ConsoleEndpoint: i.agent.httpEndpoint,
|
|
}, nil
|
|
}
|