Procházet zdrojové kódy

Add missing version.go file.

Mariano Cano před 7 roky
rodič
revize
03bb26fb91
1 změnil soubory, kde provedl 17 přidání a 0 odebrání
  1. 17 0
      authority/version.go

+ 17 - 0
authority/version.go

@@ -0,0 +1,17 @@
+package authority
+
+// GlobalVersion stores the version information of the server.
+var GlobalVersion = Version{
+	Version: "0.0.0",
+}
+
+// Version defines the
+type Version struct {
+	Version                     string
+	RequireClientAuthentication bool
+}
+
+// Version returns the version information of the server.
+func (a *Authority) Version() Version {
+	return GlobalVersion
+}