forked from vanadium/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
version.go
27 lines (22 loc) · 784 Bytes
/
version.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package version
import (
"fmt"
"v.io/v23/rpc/version"
"v.io/x/lib/metadata"
)
// Supported represents the range of protocol verions supported by this
// implementation.
//
// Max is incremented whenever we make a protocol change that's not both forward
// and backward compatible.
//
// Min is incremented whenever we want to remove support for old protocol
// versions.
var Supported = version.RPCVersionRange{Min: version.RPCVersion10, Max: version.RPCVersion14}
func init() {
metadata.Insert("v23.RPCVersionMax", fmt.Sprint(Supported.Max))
metadata.Insert("v23.RPCVersionMin", fmt.Sprint(Supported.Min))
}