github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/protocol/keybase1/os.go (about)

     1  // Auto-generated to Go types and interfaces using avdl-compiler v1.4.10 (https://github.com/keybase/node-avdl-compiler)
     2  //   Input file: avdl/keybase1/os.avdl
     3  
     4  package keybase1
     5  
     6  import (
     7  	"fmt"
     8  	"github.com/keybase/go-framed-msgpack-rpc/rpc"
     9  )
    10  
    11  type RuntimeGroup int
    12  
    13  const (
    14  	RuntimeGroup_UNKNOWN     RuntimeGroup = 0
    15  	RuntimeGroup_LINUXLIKE   RuntimeGroup = 1
    16  	RuntimeGroup_DARWINLIKE  RuntimeGroup = 2
    17  	RuntimeGroup_WINDOWSLIKE RuntimeGroup = 3
    18  )
    19  
    20  func (o RuntimeGroup) DeepCopy() RuntimeGroup { return o }
    21  
    22  var RuntimeGroupMap = map[string]RuntimeGroup{
    23  	"UNKNOWN":     0,
    24  	"LINUXLIKE":   1,
    25  	"DARWINLIKE":  2,
    26  	"WINDOWSLIKE": 3,
    27  }
    28  
    29  var RuntimeGroupRevMap = map[RuntimeGroup]string{
    30  	0: "UNKNOWN",
    31  	1: "LINUXLIKE",
    32  	2: "DARWINLIKE",
    33  	3: "WINDOWSLIKE",
    34  }
    35  
    36  func (e RuntimeGroup) String() string {
    37  	if v, ok := RuntimeGroupRevMap[e]; ok {
    38  		return v
    39  	}
    40  	return fmt.Sprintf("%v", int(e))
    41  }
    42  
    43  type RuntimeInterface interface {
    44  }
    45  
    46  func RuntimeProtocol(i RuntimeInterface) rpc.Protocol {
    47  	return rpc.Protocol{
    48  		Name:    "keybase.1.runtime",
    49  		Methods: map[string]rpc.ServeHandlerDescription{},
    50  	}
    51  }
    52  
    53  type RuntimeClient struct {
    54  	Cli rpc.GenericClient
    55  }