This is a refactor of samhofi.us/x/keybase/v2 that takes advantage of the libkeybase performance improvements.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.6 KiB

// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/teamsearch.avdl
package keybase1
type TeamSearchItem struct {
Id TeamID `codec:"id" json:"id"`
Name string `codec:"name" json:"name"`
Description *string `codec:"description,omitempty" json:"description,omitempty"`
MemberCount int `codec:"memberCount" json:"memberCount"`
LastActive Time `codec:"lastActive" json:"lastActive"`
InTeam bool `codec:"inTeam" json:"inTeam"`
PublicAdmins []string `codec:"publicAdmins" json:"publicAdmins"`
}
func (o TeamSearchItem) DeepCopy() TeamSearchItem {
return TeamSearchItem{
Id: o.Id.DeepCopy(),
Name: o.Name,
Description: (func(x *string) *string {
if x == nil {
return nil
}
tmp := (*x)
return &tmp
})(o.Description),
MemberCount: o.MemberCount,
LastActive: o.LastActive.DeepCopy(),
InTeam: o.InTeam,
PublicAdmins: (func(x []string) []string {
if x == nil {
return nil
}
ret := make([]string, len(x))
for i, v := range x {
vCopy := v
ret[i] = vCopy
}
return ret
})(o.PublicAdmins),
}
}
type TeamSearchRes struct {
Results []TeamSearchItem `codec:"results" json:"results"`
}
func (o TeamSearchRes) DeepCopy() TeamSearchRes {
return TeamSearchRes{
Results: (func(x []TeamSearchItem) []TeamSearchItem {
if x == nil {
return nil
}
ret := make([]TeamSearchItem, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.Results),
}
}