MCPcopy Index your code
hub / github.com/coder/coder / New

Function New

apiversion/apiversion.go:13–20  ·  view source on GitHub ↗

New returns an *APIVersion with the given major.minor and additional supported major versions.

(maj, minor int)

Source from the content-addressed store, hash-verified

11// New returns an *APIVersion with the given major.minor and
12// additional supported major versions.
13func New(maj, minor int) *APIVersion {
14 v := &APIVersion{
15 supportedMajor: maj,
16 supportedMinor: minor,
17 additionalMajors: make([]int, 0),
18 }
19 return v
20}
21
22type APIVersion struct {
23 supportedMajor int

Callers 15

TestAPIVersionValidateFunction · 0.92
version.goFile · 0.92
ConnectRPC20Method · 0.92
ConnectRPC21Method · 0.92
ConnectRPC22Method · 0.92
ConnectRPC23Method · 0.92
ConnectRPC24Method · 0.92
ConnectRPC25Method · 0.92
ConnectRPC26Method · 0.92
ConnectRPC27Method · 0.92

Calls

no outgoing calls

Tested by 3

TestAPIVersionValidateFunction · 0.74