blob: 25d02ef00fd5365b29714ac273f2118db6836355 [file] [log] [blame]
// 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))
}