Files
kubevpn/pkg/daemon/action/version.go
naison 847c2c8cc1 feat: update go mod to v2 (#127)
* feat: update go mod to v2

* feat: typo
2024-01-14 18:00:12 +08:00

13 lines
306 B
Go

package action
import (
"context"
"github.com/wencaiwulue/kubevpn/v2/pkg/config"
"github.com/wencaiwulue/kubevpn/v2/pkg/daemon/rpc"
)
func (svr *Server) Version(ctx context.Context, req *rpc.VersionRequest) (*rpc.VersionResponse, error) {
return &rpc.VersionResponse{Version: config.Version}, nil
}