/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
go/protocol/keybase1/process.go
89 строк
2 KB
chrisnojima-zoom
Version 670 - clean2 (#29122)
08 июн 2026, 19:31
Не верифицирован
08 июн 2026, 19:31
1943197
Код
Авторство
О чём код?
// Code generated to Go types and interfaces using avdl-compiler v1.4.10 (https://github.com/keybase/node-avdl-compiler). DO NOT EDIT. // Input file: avdl/keybase1/process.avdl package keybase1 import ( "fmt" "github.com/keybase/go-framed-msgpack-rpc/rpc" ) type FileType int const ( FileType_UNKNOWN FileType = 0 FileType_DIRECTORY FileType = 1 FileType_FILE FileType = 2 ) func (o FileType) DeepCopy() FileType { return o } var FileTypeMap = map[string]FileType{ "UNKNOWN": 0, "DIRECTORY": 1, "FILE": 2, } var FileTypeRevMap = map[FileType]string{ 0: "UNKNOWN", 1: "DIRECTORY", 2: "FILE", } func (o FileType) String() string { if v, ok := FileTypeRevMap[o]; ok { return v } return fmt.Sprintf("%v", int(o)) } type FileDescriptor struct { Name string `codec:"name" json:"name"` Type FileType `codec:"type" json:"type"` } func (o FileDescriptor) DeepCopy() FileDescriptor { return FileDescriptor{ Name: o.Name, Type: o.Type.DeepCopy(), } } type Process struct { Pid string `codec:"pid" json:"pid"` Command string `codec:"command" json:"command"` FileDescriptors []FileDescriptor `codec:"fileDescriptors" json:"fileDescriptors"` } func (o Process) DeepCopy() Process { return Process{ Pid: o.Pid, Command: o.Command, FileDescriptors: (func(x []FileDescriptor) []FileDescriptor { if x == nil { return nil } ret := make([]FileDescriptor, len(x)) for i, v := range x { vCopy := v.DeepCopy() ret[i] = vCopy } return ret })(o.FileDescriptors), } } type ProcessInterface interface { } func ProcessProtocol(i ProcessInterface) rpc.Protocol { return rpc.Protocol{ Name: "keybase.1.process", Methods: map[string]rpc.ServeHandlerDescription{}, } } type ProcessClient struct { Cli rpc.GenericClient }