summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/foundation.gentoo.org/golang/members/data/member.pb.go')
-rw-r--r--src/foundation.gentoo.org/golang/members/data/member.pb.go97
1 files changed, 87 insertions, 10 deletions
diff --git a/src/foundation.gentoo.org/golang/members/data/member.pb.go b/src/foundation.gentoo.org/golang/members/data/member.pb.go
index 3d39f40..4f12ab6 100644
--- a/src/foundation.gentoo.org/golang/members/data/member.pb.go
+++ b/src/foundation.gentoo.org/golang/members/data/member.pb.go
@@ -11,6 +11,7 @@ It is generated from these files:
It has these top-level messages:
MemberRoll
Member
+ Status
*/
package data
@@ -21,6 +22,41 @@ import math "math"
var _ = proto.Marshal
var _ = math.Inf
+type Status_State int32
+
+const (
+ // Member has voting rights
+ Status_ACTIVE Status_State = 0
+ // Member had voting rights, but is no longer a foundation member.
+ Status_EMERITUS Status_State = 1
+)
+
+var Status_State_name = map[int32]string{
+ 0: "ACTIVE",
+ 1: "EMERITUS",
+}
+var Status_State_value = map[string]int32{
+ "ACTIVE": 0,
+ "EMERITUS": 1,
+}
+
+func (x Status_State) Enum() *Status_State {
+ p := new(Status_State)
+ *p = x
+ return p
+}
+func (x Status_State) String() string {
+ return proto.EnumName(Status_State_name, int32(x))
+}
+func (x *Status_State) UnmarshalJSON(data []byte) error {
+ value, err := proto.UnmarshalJSONEnum(Status_State_value, data, "Status_State")
+ if err != nil {
+ return err
+ }
+ *x = Status_State(value)
+ return nil
+}
+
type MemberRoll struct {
// When we add a new member, they should receive this ID.
// We rely on clients to increment this ID during add operations.
@@ -55,11 +91,16 @@ type Member struct {
Email []string `protobuf:"bytes,2,rep,name=email" json:"email,omitempty"`
// Name
Name []string `protobuf:"bytes,3,rep,name=name" json:"name,omitempty"`
- // microsecond timestamp of joining.
- JoinTimestampUs *int64 `protobuf:"varint,4,opt,name=join_timestamp_us" json:"join_timestamp_us,omitempty"`
// microsecond timestamp of any elections member participated in
- VotedInElection []int64 `protobuf:"varint,5,rep,name=voted_in_election" json:"voted_in_election,omitempty"`
- XXX_unrecognized []byte `json:"-"`
+ VotedInElection []int64 `protobuf:"varint,4,rep,name=voted_in_election" json:"voted_in_election,omitempty"`
+ // Status's of a given member. Typically most users have 1 state
+ // (e.g. they are an active member of the foundation.) But we will
+ // try to record all state changes here, so if people leave and come
+ // back we have a record.
+ State []*Status `protobuf:"bytes,5,rep,name=state" json:"state,omitempty"`
+ // A list of gpg key bytes for each member.
+ Gpgkey [][]byte `protobuf:"bytes,6,rep,name=gpgkey" json:"gpgkey,omitempty"`
+ XXX_unrecognized []byte `json:"-"`
}
func (m *Member) Reset() { *m = Member{} }
@@ -87,19 +128,55 @@ func (m *Member) GetName() []string {
return nil
}
-func (m *Member) GetJoinTimestampUs() int64 {
- if m != nil && m.JoinTimestampUs != nil {
- return *m.JoinTimestampUs
+func (m *Member) GetVotedInElection() []int64 {
+ if m != nil {
+ return m.VotedInElection
}
- return 0
+ return nil
}
-func (m *Member) GetVotedInElection() []int64 {
+func (m *Member) GetState() []*Status {
if m != nil {
- return m.VotedInElection
+ return m.State
}
return nil
}
+func (m *Member) GetGpgkey() [][]byte {
+ if m != nil {
+ return m.Gpgkey
+ }
+ return nil
+}
+
+type Status struct {
+ // State of the member.
+ State *Status_State `protobuf:"varint,1,opt,name=state,enum=data.Status_State,def=0" json:"state,omitempty"`
+ // Time when state change occured.
+ StatusChange *int64 `protobuf:"varint,2,opt,name=status_change" json:"status_change,omitempty"`
+ XXX_unrecognized []byte `json:"-"`
+}
+
+func (m *Status) Reset() { *m = Status{} }
+func (m *Status) String() string { return proto.CompactTextString(m) }
+func (*Status) ProtoMessage() {}
+
+const Default_Status_State Status_State = Status_ACTIVE
+
+func (m *Status) GetState() Status_State {
+ if m != nil && m.State != nil {
+ return *m.State
+ }
+ return Default_Status_State
+}
+
+func (m *Status) GetStatusChange() int64 {
+ if m != nil && m.StatusChange != nil {
+ return *m.StatusChange
+ }
+ return 0
+}
+
func init() {
+ proto.RegisterEnum("data.Status_State", Status_State_name, Status_State_value)
}