Documentation ¶
Index ¶
- Variables
- func All() []interface{}
- func AllMap() map[string]interface{}
- func ByName(name string) interface{}
- func ChallengeInstancePrefixHash(instanceID string, userID int64, salt string) (string, error)
- func Configure(db *gorm.DB, sfn *snowflake.Node, opts Opts) (*gorm.DB, error)
- func ForeignKeys() [][3]string
- func GenerateFakeData(db *gorm.DB, sfn *snowflake.Node, logger *zap.Logger) error
- func GetIDBySlugAndKind(db *gorm.DB, slug string, kind string) (int64, error)
- func GormToErrcode(err error) error
- func IsRecordNotFoundError(err error) bool
- func TestingCreateEntities(t *testing.T, db *gorm.DB)
- func TestingSqliteDB(t *testing.T, logger *zap.Logger) *gorm.DB
- type Achievement
- func (*Achievement) Descriptor() ([]byte, []int)
- func (m *Achievement) GetArgument() string
- func (m *Achievement) GetAuthor() *User
- func (m *Achievement) GetAuthorID() int64
- func (m *Achievement) GetChallengeValidation() *ChallengeValidation
- func (m *Achievement) GetChallengeValidationID() int64
- func (m *Achievement) GetComment() string
- func (m *Achievement) GetCreatedAt() *time.Time
- func (m *Achievement) GetID() int64
- func (m *Achievement) GetIsGlobal() bool
- func (m *Achievement) GetSlug() string
- func (m *Achievement) GetTeam() *Team
- func (m *Achievement) GetTeamID() int64
- func (m *Achievement) GetType() Achievement_Type
- func (m *Achievement) GetUpdatedAt() *time.Time
- func (m *Achievement) Marshal() (dAtA []byte, err error)
- func (m *Achievement) MarshalTo(dAtA []byte) (int, error)
- func (m *Achievement) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Achievement) ProtoMessage()
- func (m *Achievement) Reset()
- func (m *Achievement) Size() (n int)
- func (m *Achievement) String() string
- func (m *Achievement) Unmarshal(dAtA []byte) error
- func (m *Achievement) XXX_DiscardUnknown()
- func (m *Achievement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Achievement) XXX_Merge(src proto.Message)
- func (m *Achievement) XXX_Size() int
- func (m *Achievement) XXX_Unmarshal(b []byte) error
- type Achievement_Type
- type Activity
- func (*Activity) Descriptor() ([]byte, []int)
- func (m *Activity) GetAgent() *Agent
- func (m *Activity) GetAgentID() int64
- func (m *Activity) GetAuthor() *User
- func (m *Activity) GetAuthorID() int64
- func (m *Activity) GetChallenge() *Challenge
- func (m *Activity) GetChallengeFlavor() *ChallengeFlavor
- func (m *Activity) GetChallengeFlavorID() int64
- func (m *Activity) GetChallengeID() int64
- func (m *Activity) GetChallengeInstance() *ChallengeInstance
- func (m *Activity) GetChallengeInstanceID() int64
- func (m *Activity) GetChallengeSubscription() *ChallengeSubscription
- func (m *Activity) GetChallengeSubscriptionID() int64
- func (m *Activity) GetCoupon() *Coupon
- func (m *Activity) GetCouponID() int64
- func (m *Activity) GetCreatedAt() *time.Time
- func (m *Activity) GetID() int64
- func (m *Activity) GetKind() Activity_Kind
- func (m *Activity) GetOrganization() *Organization
- func (m *Activity) GetOrganizationID() int64
- func (m *Activity) GetSeason() *Season
- func (m *Activity) GetSeasonChallenge() *SeasonChallenge
- func (m *Activity) GetSeasonChallengeID() int64
- func (m *Activity) GetSeasonID() int64
- func (m *Activity) GetTeam() *Team
- func (m *Activity) GetTeamID() int64
- func (m *Activity) GetTeamInvite() *Agent
- func (m *Activity) GetTeamInviteID() int64
- func (m *Activity) GetTeamMember() *TeamMember
- func (m *Activity) GetTeamMemberID() int64
- func (m *Activity) GetUpdatedAt() *time.Time
- func (m *Activity) GetUser() *User
- func (m *Activity) GetUserID() int64
- func (m *Activity) Marshal() (dAtA []byte, err error)
- func (m *Activity) MarshalTo(dAtA []byte) (int, error)
- func (m *Activity) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Activity) ProtoMessage()
- func (m *Activity) Reset()
- func (m *Activity) Size() (n int)
- func (m *Activity) String() string
- func (m *Activity) Unmarshal(dAtA []byte) error
- func (m *Activity) XXX_DiscardUnknown()
- func (m *Activity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Activity) XXX_Merge(src proto.Message)
- func (m *Activity) XXX_Size() int
- func (m *Activity) XXX_Unmarshal(b []byte) error
- type ActivityList
- func (*ActivityList) Descriptor() ([]byte, []int)
- func (m *ActivityList) GetItems() []*Activity
- func (m *ActivityList) Marshal() (dAtA []byte, err error)
- func (m *ActivityList) MarshalTo(dAtA []byte) (int, error)
- func (m *ActivityList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ActivityList) ProtoMessage()
- func (m *ActivityList) Reset()
- func (m *ActivityList) Size() (n int)
- func (m *ActivityList) String() string
- func (m *ActivityList) Unmarshal(dAtA []byte) error
- func (m *ActivityList) XXX_DiscardUnknown()
- func (m *ActivityList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ActivityList) XXX_Merge(src proto.Message)
- func (m *ActivityList) XXX_Size() int
- func (m *ActivityList) XXX_Unmarshal(b []byte) error
- type Activity_Kind
- type Agent
- func (entity *Agent) ASCIIID() string
- func (entity *Agent) BeforeSave(db *gorm.DB) error
- func (*Agent) Descriptor() ([]byte, []int)
- func (m *Agent) GetArch() string
- func (m *Agent) GetAuthSalt() string
- func (m *Agent) GetChallengeInstances() []*ChallengeInstance
- func (m *Agent) GetCreatedAt() *time.Time
- func (m *Agent) GetDefaultAgent() bool
- func (m *Agent) GetDomainSuffix() string
- func (m *Agent) GetErrMsg() string
- func (m *Agent) GetHostname() string
- func (m *Agent) GetID() int64
- func (m *Agent) GetLastRegistrationAt() *time.Time
- func (m *Agent) GetLastSeenAt() *time.Time
- func (m *Agent) GetMetadata() string
- func (m *Agent) GetName() string
- func (m *Agent) GetNginxPort() int64
- func (m *Agent) GetOS() string
- func (m *Agent) GetSlug() string
- func (m *Agent) GetStatus() Agent_Status
- func (m *Agent) GetTags() string
- func (m *Agent) GetTimesRegistered() int64
- func (m *Agent) GetTimesSeen() int64
- func (m *Agent) GetUpdatedAt() *time.Time
- func (m *Agent) GetVersion() string
- func (m *Agent) Marshal() (dAtA []byte, err error)
- func (m *Agent) MarshalTo(dAtA []byte) (int, error)
- func (m *Agent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Agent) ProtoMessage()
- func (m *Agent) Reset()
- func (m *Agent) Size() (n int)
- func (m *Agent) String() string
- func (a *Agent) TagSlice() []string
- func (m *Agent) Unmarshal(dAtA []byte) error
- func (m *Agent) XXX_DiscardUnknown()
- func (m *Agent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Agent) XXX_Merge(src proto.Message)
- func (m *Agent) XXX_Size() int
- func (m *Agent) XXX_Unmarshal(b []byte) error
- type AgentList
- func (*AgentList) Descriptor() ([]byte, []int)
- func (m *AgentList) GetItems() []*Agent
- func (m *AgentList) Marshal() (dAtA []byte, err error)
- func (m *AgentList) MarshalTo(dAtA []byte) (int, error)
- func (m *AgentList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AgentList) ProtoMessage()
- func (m *AgentList) Reset()
- func (m *AgentList) Size() (n int)
- func (m *AgentList) String() string
- func (m *AgentList) Unmarshal(dAtA []byte) error
- func (m *AgentList) XXX_DiscardUnknown()
- func (m *AgentList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AgentList) XXX_Merge(src proto.Message)
- func (m *AgentList) XXX_Size() int
- func (m *AgentList) XXX_Unmarshal(b []byte) error
- type Agent_Status
- type Challenge
- func (entity *Challenge) ASCIIID() string
- func (entity *Challenge) BeforeSave(db *gorm.DB) error
- func (*Challenge) Descriptor() ([]byte, []int)
- func (m *Challenge) GetAuthor() string
- func (m *Challenge) GetCreatedAt() *time.Time
- func (m *Challenge) GetDescription() string
- func (m *Challenge) GetFlavors() []*ChallengeFlavor
- func (m *Challenge) GetHomepage() string
- func (m *Challenge) GetID() int64
- func (m *Challenge) GetIsDraft() bool
- func (m *Challenge) GetLocale() string
- func (m *Challenge) GetName() string
- func (m *Challenge) GetPreviewURL() string
- func (m *Challenge) GetSlug() string
- func (m *Challenge) GetUpdatedAt() *time.Time
- func (m *Challenge) Marshal() (dAtA []byte, err error)
- func (m *Challenge) MarshalTo(dAtA []byte) (int, error)
- func (m *Challenge) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Challenge) ProtoMessage()
- func (m *Challenge) Reset()
- func (m *Challenge) Size() (n int)
- func (m *Challenge) String() string
- func (m *Challenge) Unmarshal(dAtA []byte) error
- func (m *Challenge) XXX_DiscardUnknown()
- func (m *Challenge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Challenge) XXX_Merge(src proto.Message)
- func (m *Challenge) XXX_Size() int
- func (m *Challenge) XXX_Unmarshal(b []byte) error
- type ChallengeFlavor
- func (entity *ChallengeFlavor) ASCIIID() string
- func (entity *ChallengeFlavor) BeforeSave(db *gorm.DB) error
- func (*ChallengeFlavor) Descriptor() ([]byte, []int)
- func (m *ChallengeFlavor) GetBody() string
- func (m *ChallengeFlavor) GetCategory() string
- func (m *ChallengeFlavor) GetChallenge() *Challenge
- func (m *ChallengeFlavor) GetChallengeID() int64
- func (m *ChallengeFlavor) GetComposeBundle() string
- func (m *ChallengeFlavor) GetCreatedAt() *time.Time
- func (m *ChallengeFlavor) GetDriver() ChallengeFlavor_Driver
- func (m *ChallengeFlavor) GetID() int64
- func (m *ChallengeFlavor) GetInstances() []*ChallengeInstance
- func (m *ChallengeFlavor) GetPassphrases() int64
- func (m *ChallengeFlavor) GetPurchasePrice() int64
- func (m *ChallengeFlavor) GetRedumpPolicy() []*ChallengeFlavor_RedumpPolicy
- func (m *ChallengeFlavor) GetRedumpPolicyConfig() string
- func (m *ChallengeFlavor) GetSeasonChallenges() []*SeasonChallenge
- func (m *ChallengeFlavor) GetSlug() string
- func (m *ChallengeFlavor) GetSourceURL() string
- func (m *ChallengeFlavor) GetTagList() string
- func (m *ChallengeFlavor) GetTags() []string
- func (m *ChallengeFlavor) GetUpdatedAt() *time.Time
- func (m *ChallengeFlavor) GetValidationReward() int64
- func (m *ChallengeFlavor) GetVersion() string
- func (m *ChallengeFlavor) Marshal() (dAtA []byte, err error)
- func (m *ChallengeFlavor) MarshalTo(dAtA []byte) (int, error)
- func (m *ChallengeFlavor) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (cf ChallengeFlavor) NameAndVersion() string
- func (*ChallengeFlavor) ProtoMessage()
- func (m *ChallengeFlavor) Reset()
- func (m *ChallengeFlavor) Size() (n int)
- func (m *ChallengeFlavor) String() string
- func (m *ChallengeFlavor) Unmarshal(dAtA []byte) error
- func (m *ChallengeFlavor) XXX_DiscardUnknown()
- func (m *ChallengeFlavor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChallengeFlavor) XXX_Merge(src proto.Message)
- func (m *ChallengeFlavor) XXX_Size() int
- func (m *ChallengeFlavor) XXX_Unmarshal(b []byte) error
- type ChallengeFlavor_Driver
- type ChallengeFlavor_RedumpPolicy
- func (*ChallengeFlavor_RedumpPolicy) Descriptor() ([]byte, []int)
- func (m *ChallengeFlavor_RedumpPolicy) GetDelay() string
- func (m *ChallengeFlavor_RedumpPolicy) GetStrategy() string
- func (m *ChallengeFlavor_RedumpPolicy) Marshal() (dAtA []byte, err error)
- func (m *ChallengeFlavor_RedumpPolicy) MarshalTo(dAtA []byte) (int, error)
- func (m *ChallengeFlavor_RedumpPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ChallengeFlavor_RedumpPolicy) ProtoMessage()
- func (m *ChallengeFlavor_RedumpPolicy) Reset()
- func (m *ChallengeFlavor_RedumpPolicy) Size() (n int)
- func (m *ChallengeFlavor_RedumpPolicy) String() string
- func (m *ChallengeFlavor_RedumpPolicy) Unmarshal(dAtA []byte) error
- func (m *ChallengeFlavor_RedumpPolicy) XXX_DiscardUnknown()
- func (m *ChallengeFlavor_RedumpPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChallengeFlavor_RedumpPolicy) XXX_Merge(src proto.Message)
- func (m *ChallengeFlavor_RedumpPolicy) XXX_Size() int
- func (m *ChallengeFlavor_RedumpPolicy) XXX_Unmarshal(b []byte) error
- type ChallengeInstance
- func (entity *ChallengeInstance) ASCIIID() string
- func (entity *ChallengeInstance) BeforeSave(db *gorm.DB) error
- func (*ChallengeInstance) Descriptor() ([]byte, []int)
- func (m *ChallengeInstance) GetAgent() *Agent
- func (m *ChallengeInstance) GetAgentID() int64
- func (m *ChallengeInstance) GetCreatedAt() *time.Time
- func (m *ChallengeInstance) GetFlavor() *ChallengeFlavor
- func (m *ChallengeInstance) GetFlavorID() int64
- func (m *ChallengeInstance) GetID() int64
- func (m *ChallengeInstance) GetInstanceConfig() []byte
- func (m *ChallengeInstance) GetLastRedumpRequestedAt() *time.Time
- func (m *ChallengeInstance) GetLastStartedAt() *time.Time
- func (m *ChallengeInstance) GetLastStoppedAt() *time.Time
- func (m *ChallengeInstance) GetNginxURL() string
- func (m *ChallengeInstance) GetRedumpCount() int64
- func (m *ChallengeInstance) GetSlug() string
- func (m *ChallengeInstance) GetStartupError() string
- func (m *ChallengeInstance) GetStatus() ChallengeInstance_Status
- func (m *ChallengeInstance) GetUpdatedAt() *time.Time
- func (m *ChallengeInstance) GetValidationCount() int64
- func (m *ChallengeInstance) Marshal() (dAtA []byte, err error)
- func (m *ChallengeInstance) MarshalTo(dAtA []byte) (int, error)
- func (m *ChallengeInstance) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (instance *ChallengeInstance) ParseInstanceConfig() (*pwinit.InitConfig, error)
- func (*ChallengeInstance) ProtoMessage()
- func (m *ChallengeInstance) Reset()
- func (m *ChallengeInstance) Size() (n int)
- func (m *ChallengeInstance) String() string
- func (m *ChallengeInstance) Unmarshal(dAtA []byte) error
- func (m *ChallengeInstance) XXX_DiscardUnknown()
- func (m *ChallengeInstance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChallengeInstance) XXX_Merge(src proto.Message)
- func (m *ChallengeInstance) XXX_Size() int
- func (m *ChallengeInstance) XXX_Unmarshal(b []byte) error
- type ChallengeInstance_Status
- type ChallengeList
- func (*ChallengeList) Descriptor() ([]byte, []int)
- func (m *ChallengeList) GetItems() []*Challenge
- func (m *ChallengeList) Marshal() (dAtA []byte, err error)
- func (m *ChallengeList) MarshalTo(dAtA []byte) (int, error)
- func (m *ChallengeList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ChallengeList) ProtoMessage()
- func (m *ChallengeList) Reset()
- func (m *ChallengeList) Size() (n int)
- func (m *ChallengeList) String() string
- func (m *ChallengeList) Unmarshal(dAtA []byte) error
- func (m *ChallengeList) XXX_DiscardUnknown()
- func (m *ChallengeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChallengeList) XXX_Merge(src proto.Message)
- func (m *ChallengeList) XXX_Size() int
- func (m *ChallengeList) XXX_Unmarshal(b []byte) error
- type ChallengeSubscription
- func (entity *ChallengeSubscription) ASCIIID() string
- func (entity *ChallengeSubscription) BeforeSave(db *gorm.DB) error
- func (*ChallengeSubscription) Descriptor() ([]byte, []int)
- func (m *ChallengeSubscription) GetBuyer() *User
- func (m *ChallengeSubscription) GetBuyerID() int64
- func (m *ChallengeSubscription) GetClosedAt() *time.Time
- func (m *ChallengeSubscription) GetCloser() *User
- func (m *ChallengeSubscription) GetCloserID() int64
- func (m *ChallengeSubscription) GetCreatedAt() *time.Time
- func (m *ChallengeSubscription) GetID() int64
- func (m *ChallengeSubscription) GetSeasonChallenge() *SeasonChallenge
- func (m *ChallengeSubscription) GetSeasonChallengeID() int64
- func (m *ChallengeSubscription) GetSlug() string
- func (m *ChallengeSubscription) GetStatus() ChallengeSubscription_Status
- func (m *ChallengeSubscription) GetTeam() *Team
- func (m *ChallengeSubscription) GetTeamID() int64
- func (m *ChallengeSubscription) GetUpdatedAt() *time.Time
- func (m *ChallengeSubscription) GetValidations() []*ChallengeValidation
- func (m *ChallengeSubscription) Marshal() (dAtA []byte, err error)
- func (m *ChallengeSubscription) MarshalTo(dAtA []byte) (int, error)
- func (m *ChallengeSubscription) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ChallengeSubscription) ProtoMessage()
- func (m *ChallengeSubscription) Reset()
- func (m *ChallengeSubscription) Size() (n int)
- func (m *ChallengeSubscription) String() string
- func (m *ChallengeSubscription) Unmarshal(dAtA []byte) error
- func (m *ChallengeSubscription) XXX_DiscardUnknown()
- func (m *ChallengeSubscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChallengeSubscription) XXX_Merge(src proto.Message)
- func (m *ChallengeSubscription) XXX_Size() int
- func (m *ChallengeSubscription) XXX_Unmarshal(b []byte) error
- type ChallengeSubscription_Status
- type ChallengeValidation
- func (entity *ChallengeValidation) BeforeSave(db *gorm.DB) error
- func (*ChallengeValidation) Descriptor() ([]byte, []int)
- func (m *ChallengeValidation) GetAuthor() *User
- func (m *ChallengeValidation) GetAuthorComment() string
- func (m *ChallengeValidation) GetAuthorID() int64
- func (m *ChallengeValidation) GetChallengeSubscription() *ChallengeSubscription
- func (m *ChallengeValidation) GetChallengeSubscriptionID() int64
- func (m *ChallengeValidation) GetCorrectorComment() string
- func (m *ChallengeValidation) GetCreatedAt() *time.Time
- func (m *ChallengeValidation) GetID() int64
- func (m *ChallengeValidation) GetPassphrases() string
- func (m *ChallengeValidation) GetSlug() string
- func (m *ChallengeValidation) GetStatus() ChallengeValidation_Status
- func (m *ChallengeValidation) GetTeam() *Team
- func (m *ChallengeValidation) GetTeamID() int64
- func (m *ChallengeValidation) GetUpdatedAt() *time.Time
- func (m *ChallengeValidation) Marshal() (dAtA []byte, err error)
- func (m *ChallengeValidation) MarshalTo(dAtA []byte) (int, error)
- func (m *ChallengeValidation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ChallengeValidation) ProtoMessage()
- func (m *ChallengeValidation) Reset()
- func (m *ChallengeValidation) Size() (n int)
- func (m *ChallengeValidation) String() string
- func (m *ChallengeValidation) Unmarshal(dAtA []byte) error
- func (m *ChallengeValidation) XXX_DiscardUnknown()
- func (m *ChallengeValidation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChallengeValidation) XXX_Merge(src proto.Message)
- func (m *ChallengeValidation) XXX_Size() int
- func (m *ChallengeValidation) XXX_Unmarshal(b []byte) error
- type ChallengeValidation_Status
- type Coupon
- func (entity *Coupon) ASCIIID() string
- func (*Coupon) Descriptor() ([]byte, []int)
- func (m *Coupon) GetCreatedAt() *time.Time
- func (m *Coupon) GetHash() string
- func (m *Coupon) GetID() int64
- func (m *Coupon) GetMaxValidationCount() int64
- func (m *Coupon) GetSeason() *Season
- func (m *Coupon) GetSeasonID() int64
- func (m *Coupon) GetUpdatedAt() *time.Time
- func (m *Coupon) GetValidations() []*CouponValidation
- func (m *Coupon) GetValue() int64
- func (m *Coupon) Marshal() (dAtA []byte, err error)
- func (m *Coupon) MarshalTo(dAtA []byte) (int, error)
- func (m *Coupon) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Coupon) ProtoMessage()
- func (m *Coupon) Reset()
- func (m *Coupon) Size() (n int)
- func (m *Coupon) String() string
- func (m *Coupon) Unmarshal(dAtA []byte) error
- func (m *Coupon) XXX_DiscardUnknown()
- func (m *Coupon) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Coupon) XXX_Merge(src proto.Message)
- func (m *Coupon) XXX_Size() int
- func (m *Coupon) XXX_Unmarshal(b []byte) error
- type CouponValidation
- func (*CouponValidation) Descriptor() ([]byte, []int)
- func (m *CouponValidation) GetAuthor() *User
- func (m *CouponValidation) GetAuthorID() int64
- func (m *CouponValidation) GetComment() string
- func (m *CouponValidation) GetCoupon() *Coupon
- func (m *CouponValidation) GetCouponID() int64
- func (m *CouponValidation) GetCreatedAt() *time.Time
- func (m *CouponValidation) GetID() int64
- func (m *CouponValidation) GetTeam() *Team
- func (m *CouponValidation) GetTeamID() int64
- func (m *CouponValidation) GetUpdatedAt() *time.Time
- func (m *CouponValidation) Marshal() (dAtA []byte, err error)
- func (m *CouponValidation) MarshalTo(dAtA []byte) (int, error)
- func (m *CouponValidation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CouponValidation) ProtoMessage()
- func (m *CouponValidation) Reset()
- func (m *CouponValidation) Size() (n int)
- func (m *CouponValidation) String() string
- func (m *CouponValidation) Unmarshal(dAtA []byte) error
- func (m *CouponValidation) XXX_DiscardUnknown()
- func (m *CouponValidation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CouponValidation) XXX_Merge(src proto.Message)
- func (m *CouponValidation) XXX_Size() int
- func (m *CouponValidation) XXX_Unmarshal(b []byte) error
- type DeletionStatus
- type Dump
- func (*Dump) Descriptor() ([]byte, []int)
- func (m *Dump) GetAchievements() []*Achievement
- func (m *Dump) GetAgents() []*Agent
- func (m *Dump) GetChallengeFlavors() []*ChallengeFlavor
- func (m *Dump) GetChallengeInstances() []*ChallengeInstance
- func (m *Dump) GetChallengeSubscriptions() []*ChallengeSubscription
- func (m *Dump) GetChallengeValidations() []*ChallengeValidation
- func (m *Dump) GetChallenges() []*Challenge
- func (m *Dump) GetCouponValidations() []*CouponValidation
- func (m *Dump) GetCoupons() []*Coupon
- func (m *Dump) GetInventoryItems() []*InventoryItem
- func (m *Dump) GetNotifications() []*Notification
- func (m *Dump) GetOrganizationMembers() []*OrganizationMember
- func (m *Dump) GetOrganizations() []*Organization
- func (m *Dump) GetSeasonChallenges() []*SeasonChallenge
- func (m *Dump) GetSeasons() []*Season
- func (m *Dump) GetTeamMembers() []*TeamMember
- func (m *Dump) GetTeams() []*Team
- func (m *Dump) GetUsers() []*User
- func (m *Dump) GetWhoswhoAttempts() []*WhoswhoAttempt
- func (m *Dump) Marshal() (dAtA []byte, err error)
- func (m *Dump) MarshalTo(dAtA []byte) (int, error)
- func (m *Dump) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Dump) ProtoMessage()
- func (m *Dump) Reset()
- func (m *Dump) Size() (n int)
- func (m *Dump) String() string
- func (m *Dump) Unmarshal(dAtA []byte) error
- func (m *Dump) XXX_DiscardUnknown()
- func (m *Dump) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Dump) XXX_Merge(src proto.Message)
- func (m *Dump) XXX_Size() int
- func (m *Dump) XXX_Unmarshal(b []byte) error
- type Info
- func (*Info) Descriptor() ([]byte, []int)
- func (m *Info) GetTableRows() map[string]uint32
- func (m *Info) Marshal() (dAtA []byte, err error)
- func (m *Info) MarshalTo(dAtA []byte) (int, error)
- func (m *Info) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Info) ProtoMessage()
- func (m *Info) Reset()
- func (m *Info) Size() (n int)
- func (m *Info) String() string
- func (m *Info) Unmarshal(dAtA []byte) error
- func (m *Info) XXX_DiscardUnknown()
- func (m *Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Info) XXX_Merge(src proto.Message)
- func (m *Info) XXX_Size() int
- func (m *Info) XXX_Unmarshal(b []byte) error
- type InventoryItem
- func (*InventoryItem) Descriptor() ([]byte, []int)
- func (m *InventoryItem) GetCreatedAt() *time.Time
- func (m *InventoryItem) GetID() int64
- func (m *InventoryItem) GetItem() InventoryItem_Item
- func (m *InventoryItem) GetOwner() *TeamMember
- func (m *InventoryItem) GetOwnerID() int64
- func (m *InventoryItem) GetSlug() string
- func (m *InventoryItem) GetUpdatedAt() *time.Time
- func (m *InventoryItem) Marshal() (dAtA []byte, err error)
- func (m *InventoryItem) MarshalTo(dAtA []byte) (int, error)
- func (m *InventoryItem) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*InventoryItem) ProtoMessage()
- func (m *InventoryItem) Reset()
- func (m *InventoryItem) Size() (n int)
- func (m *InventoryItem) String() string
- func (m *InventoryItem) Unmarshal(dAtA []byte) error
- func (m *InventoryItem) XXX_DiscardUnknown()
- func (m *InventoryItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InventoryItem) XXX_Merge(src proto.Message)
- func (m *InventoryItem) XXX_Size() int
- func (m *InventoryItem) XXX_Unmarshal(b []byte) error
- type InventoryItem_Item
- type Notification
- func (*Notification) Descriptor() ([]byte, []int)
- func (m *Notification) GetArgs() string
- func (m *Notification) GetClickURL() string
- func (m *Notification) GetCreatedAt() *time.Time
- func (m *Notification) GetID() int64
- func (m *Notification) GetMsg() string
- func (m *Notification) GetReadAt() *time.Time
- func (m *Notification) GetUpdatedAt() *time.Time
- func (m *Notification) GetUser() *User
- func (m *Notification) GetUserID() int64
- func (m *Notification) Marshal() (dAtA []byte, err error)
- func (m *Notification) MarshalTo(dAtA []byte) (int, error)
- func (m *Notification) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Notification) ProtoMessage()
- func (m *Notification) Reset()
- func (m *Notification) Size() (n int)
- func (m *Notification) String() string
- func (m *Notification) Unmarshal(dAtA []byte) error
- func (m *Notification) XXX_DiscardUnknown()
- func (m *Notification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Notification) XXX_Merge(src proto.Message)
- func (m *Notification) XXX_Size() int
- func (m *Notification) XXX_Unmarshal(b []byte) error
- type Opts
- type Organization
- func (entity *Organization) ASCIIID() string
- func (entity *Organization) BeforeSave(db *gorm.DB) error
- func (*Organization) Descriptor() ([]byte, []int)
- func (m *Organization) GetCreatedAt() *time.Time
- func (m *Organization) GetDeletedAt() *time.Time
- func (m *Organization) GetDeletionStatus() DeletionStatus
- func (m *Organization) GetGlobalSeason() bool
- func (m *Organization) GetGravatarURL() string
- func (m *Organization) GetID() int64
- func (m *Organization) GetLocale() string
- func (m *Organization) GetMembers() []*OrganizationMember
- func (m *Organization) GetName() string
- func (m *Organization) GetReceivedWhoswhoAttempts() []*WhoswhoAttempt
- func (m *Organization) GetSlug() string
- func (m *Organization) GetTeams() []*Team
- func (m *Organization) GetUpdatedAt() *time.Time
- func (m *Organization) Marshal() (dAtA []byte, err error)
- func (m *Organization) MarshalTo(dAtA []byte) (int, error)
- func (m *Organization) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Organization) ProtoMessage()
- func (m *Organization) Reset()
- func (m *Organization) Size() (n int)
- func (m *Organization) String() string
- func (m *Organization) Unmarshal(dAtA []byte) error
- func (m *Organization) XXX_DiscardUnknown()
- func (m *Organization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Organization) XXX_Merge(src proto.Message)
- func (m *Organization) XXX_Size() int
- func (m *Organization) XXX_Unmarshal(b []byte) error
- type OrganizationList
- func (*OrganizationList) Descriptor() ([]byte, []int)
- func (m *OrganizationList) GetItems() []*Organization
- func (m *OrganizationList) Marshal() (dAtA []byte, err error)
- func (m *OrganizationList) MarshalTo(dAtA []byte) (int, error)
- func (m *OrganizationList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OrganizationList) ProtoMessage()
- func (m *OrganizationList) Reset()
- func (m *OrganizationList) Size() (n int)
- func (m *OrganizationList) String() string
- func (m *OrganizationList) Unmarshal(dAtA []byte) error
- func (m *OrganizationList) XXX_DiscardUnknown()
- func (m *OrganizationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrganizationList) XXX_Merge(src proto.Message)
- func (m *OrganizationList) XXX_Size() int
- func (m *OrganizationList) XXX_Unmarshal(b []byte) error
- type OrganizationMember
- func (entity *OrganizationMember) BeforeSave(db *gorm.DB) error
- func (*OrganizationMember) Descriptor() ([]byte, []int)
- func (m *OrganizationMember) GetCreatedAt() *time.Time
- func (m *OrganizationMember) GetID() int64
- func (m *OrganizationMember) GetOrganization() *Organization
- func (m *OrganizationMember) GetOrganizationID() int64
- func (m *OrganizationMember) GetRole() OrganizationMember_Role
- func (m *OrganizationMember) GetSlug() string
- func (m *OrganizationMember) GetUpdatedAt() *time.Time
- func (m *OrganizationMember) GetUser() *User
- func (m *OrganizationMember) GetUserID() int64
- func (m *OrganizationMember) Marshal() (dAtA []byte, err error)
- func (m *OrganizationMember) MarshalTo(dAtA []byte) (int, error)
- func (m *OrganizationMember) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OrganizationMember) ProtoMessage()
- func (m *OrganizationMember) Reset()
- func (m *OrganizationMember) Size() (n int)
- func (m *OrganizationMember) String() string
- func (m *OrganizationMember) Unmarshal(dAtA []byte) error
- func (m *OrganizationMember) XXX_DiscardUnknown()
- func (m *OrganizationMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrganizationMember) XXX_Merge(src proto.Message)
- func (m *OrganizationMember) XXX_Size() int
- func (m *OrganizationMember) XXX_Unmarshal(b []byte) error
- type OrganizationMember_Role
- type Season
- func (entity *Season) ASCIIID() string
- func (entity *Season) BeforeSave(db *gorm.DB) error
- func (*Season) Descriptor() ([]byte, []int)
- func (m *Season) GetCoupons() []*Coupon
- func (m *Season) GetCreatedAt() *time.Time
- func (m *Season) GetID() int64
- func (m *Season) GetIsGlobal() bool
- func (m *Season) GetIsTesting() bool
- func (m *Season) GetName() string
- func (m *Season) GetSlug() string
- func (m *Season) GetStatus() Season_Status
- func (m *Season) GetSubscription() Season_Subscription
- func (m *Season) GetTeams() []*Team
- func (m *Season) GetUpdatedAt() *time.Time
- func (m *Season) GetVisibility() Season_Visibility
- func (m *Season) Marshal() (dAtA []byte, err error)
- func (m *Season) MarshalTo(dAtA []byte) (int, error)
- func (m *Season) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Season) ProtoMessage()
- func (m *Season) Reset()
- func (m *Season) Size() (n int)
- func (m *Season) String() string
- func (m *Season) Unmarshal(dAtA []byte) error
- func (m *Season) XXX_DiscardUnknown()
- func (m *Season) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Season) XXX_Merge(src proto.Message)
- func (m *Season) XXX_Size() int
- func (m *Season) XXX_Unmarshal(b []byte) error
- type SeasonChallenge
- func (entity *SeasonChallenge) ASCIIID() string
- func (entity *SeasonChallenge) BeforeSave(db *gorm.DB) error
- func (*SeasonChallenge) Descriptor() ([]byte, []int)
- func (m *SeasonChallenge) GetActiveSubscriptions() []*ChallengeSubscription
- func (m *SeasonChallenge) GetCreatedAt() *time.Time
- func (m *SeasonChallenge) GetFlavor() *ChallengeFlavor
- func (m *SeasonChallenge) GetFlavorID() int64
- func (m *SeasonChallenge) GetID() int64
- func (m *SeasonChallenge) GetSeason() *Season
- func (m *SeasonChallenge) GetSeasonID() int64
- func (m *SeasonChallenge) GetSlug() string
- func (m *SeasonChallenge) GetSubscriptions() []*ChallengeSubscription
- func (m *SeasonChallenge) GetUpdatedAt() *time.Time
- func (m *SeasonChallenge) Marshal() (dAtA []byte, err error)
- func (m *SeasonChallenge) MarshalTo(dAtA []byte) (int, error)
- func (m *SeasonChallenge) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SeasonChallenge) ProtoMessage()
- func (m *SeasonChallenge) Reset()
- func (m *SeasonChallenge) Size() (n int)
- func (m *SeasonChallenge) String() string
- func (m *SeasonChallenge) Unmarshal(dAtA []byte) error
- func (m *SeasonChallenge) XXX_DiscardUnknown()
- func (m *SeasonChallenge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SeasonChallenge) XXX_Merge(src proto.Message)
- func (m *SeasonChallenge) XXX_Size() int
- func (m *SeasonChallenge) XXX_Unmarshal(b []byte) error
- type SeasonChallengeList
- func (*SeasonChallengeList) Descriptor() ([]byte, []int)
- func (m *SeasonChallengeList) GetItems() []*SeasonChallenge
- func (m *SeasonChallengeList) Marshal() (dAtA []byte, err error)
- func (m *SeasonChallengeList) MarshalTo(dAtA []byte) (int, error)
- func (m *SeasonChallengeList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SeasonChallengeList) ProtoMessage()
- func (m *SeasonChallengeList) Reset()
- func (m *SeasonChallengeList) Size() (n int)
- func (m *SeasonChallengeList) String() string
- func (m *SeasonChallengeList) Unmarshal(dAtA []byte) error
- func (m *SeasonChallengeList) XXX_DiscardUnknown()
- func (m *SeasonChallengeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SeasonChallengeList) XXX_Merge(src proto.Message)
- func (m *SeasonChallengeList) XXX_Size() int
- func (m *SeasonChallengeList) XXX_Unmarshal(b []byte) error
- type SeasonList
- func (*SeasonList) Descriptor() ([]byte, []int)
- func (m *SeasonList) GetItems() []*Season
- func (m *SeasonList) Marshal() (dAtA []byte, err error)
- func (m *SeasonList) MarshalTo(dAtA []byte) (int, error)
- func (m *SeasonList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SeasonList) ProtoMessage()
- func (m *SeasonList) Reset()
- func (m *SeasonList) Size() (n int)
- func (m *SeasonList) String() string
- func (m *SeasonList) Unmarshal(dAtA []byte) error
- func (m *SeasonList) XXX_DiscardUnknown()
- func (m *SeasonList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SeasonList) XXX_Merge(src proto.Message)
- func (m *SeasonList) XXX_Size() int
- func (m *SeasonList) XXX_Unmarshal(b []byte) error
- type Season_Status
- type Season_Subscription
- type Season_Visibility
- type Team
- func (entity *Team) ASCIIID() string
- func (entity *Team) BeforeSave(db *gorm.DB) error
- func (*Team) Descriptor() ([]byte, []int)
- func (m *Team) GetAchievements() []*Achievement
- func (m *Team) GetBronzeMedals() int64
- func (m *Team) GetCash() int64
- func (m *Team) GetChallengeSubscriptions() []*ChallengeSubscription
- func (m *Team) GetCreatedAt() *time.Time
- func (m *Team) GetDeletedAt() *time.Time
- func (m *Team) GetDeletionStatus() DeletionStatus
- func (m *Team) GetGoldMedals() int64
- func (m *Team) GetID() int64
- func (m *Team) GetIsGlobal() bool
- func (m *Team) GetMembers() []*TeamMember
- func (m *Team) GetNbAchievements() int64
- func (m *Team) GetOrganization() *Organization
- func (m *Team) GetOrganizationID() int64
- func (m *Team) GetScore() int64
- func (m *Team) GetSeason() *Season
- func (m *Team) GetSeasonID() int64
- func (m *Team) GetSilverMedals() int64
- func (m *Team) GetSlug() string
- func (m *Team) GetUpdatedAt() *time.Time
- func (m *Team) Marshal() (dAtA []byte, err error)
- func (m *Team) MarshalTo(dAtA []byte) (int, error)
- func (m *Team) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Team) ProtoMessage()
- func (m *Team) Reset()
- func (m *Team) Size() (n int)
- func (m *Team) String() string
- func (m *Team) Unmarshal(dAtA []byte) error
- func (m *Team) XXX_DiscardUnknown()
- func (m *Team) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Team) XXX_Merge(src proto.Message)
- func (m *Team) XXX_Size() int
- func (m *Team) XXX_Unmarshal(b []byte) error
- type TeamInvite
- func (entity *TeamInvite) BeforeSave(db *gorm.DB) error
- func (*TeamInvite) Descriptor() ([]byte, []int)
- func (m *TeamInvite) GetCreatedAt() *time.Time
- func (m *TeamInvite) GetDeletedAt() *time.Time
- func (m *TeamInvite) GetID() int64
- func (m *TeamInvite) GetSlug() string
- func (m *TeamInvite) GetTeam() *Team
- func (m *TeamInvite) GetTeamID() int64
- func (m *TeamInvite) GetUpdatedAt() *time.Time
- func (m *TeamInvite) GetUser() *User
- func (m *TeamInvite) GetUserID() int64
- func (m *TeamInvite) Marshal() (dAtA []byte, err error)
- func (m *TeamInvite) MarshalTo(dAtA []byte) (int, error)
- func (m *TeamInvite) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TeamInvite) ProtoMessage()
- func (m *TeamInvite) Reset()
- func (m *TeamInvite) Size() (n int)
- func (m *TeamInvite) String() string
- func (m *TeamInvite) Unmarshal(dAtA []byte) error
- func (m *TeamInvite) XXX_DiscardUnknown()
- func (m *TeamInvite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TeamInvite) XXX_Merge(src proto.Message)
- func (m *TeamInvite) XXX_Size() int
- func (m *TeamInvite) XXX_Unmarshal(b []byte) error
- type TeamList
- func (*TeamList) Descriptor() ([]byte, []int)
- func (m *TeamList) GetItems() []*Team
- func (m *TeamList) Marshal() (dAtA []byte, err error)
- func (m *TeamList) MarshalTo(dAtA []byte) (int, error)
- func (m *TeamList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TeamList) ProtoMessage()
- func (m *TeamList) Reset()
- func (m *TeamList) Size() (n int)
- func (m *TeamList) String() string
- func (m *TeamList) Unmarshal(dAtA []byte) error
- func (m *TeamList) XXX_DiscardUnknown()
- func (m *TeamList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TeamList) XXX_Merge(src proto.Message)
- func (m *TeamList) XXX_Size() int
- func (m *TeamList) XXX_Unmarshal(b []byte) error
- type TeamMember
- func (entity *TeamMember) ASCIIID() string
- func (entity *TeamMember) BeforeSave(db *gorm.DB) error
- func (*TeamMember) Descriptor() ([]byte, []int)
- func (m *TeamMember) GetAchievements() []*Achievement
- func (m *TeamMember) GetChallengeValidations() []*ChallengeValidation
- func (m *TeamMember) GetCoupons() []*Coupon
- func (m *TeamMember) GetCreatedAt() *time.Time
- func (m *TeamMember) GetID() int64
- func (m *TeamMember) GetItems() []*InventoryItem
- func (m *TeamMember) GetReceivedWhoswhoAttempts() []*WhoswhoAttempt
- func (m *TeamMember) GetRole() TeamMember_Role
- func (m *TeamMember) GetSentWhoswhoAttempts() []*WhoswhoAttempt
- func (m *TeamMember) GetSlug() string
- func (m *TeamMember) GetTeam() *Team
- func (m *TeamMember) GetTeamID() int64
- func (m *TeamMember) GetUpdatedAt() *time.Time
- func (m *TeamMember) GetUser() *User
- func (m *TeamMember) GetUserID() int64
- func (m *TeamMember) Marshal() (dAtA []byte, err error)
- func (m *TeamMember) MarshalTo(dAtA []byte) (int, error)
- func (m *TeamMember) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TeamMember) ProtoMessage()
- func (m *TeamMember) Reset()
- func (m *TeamMember) Size() (n int)
- func (m *TeamMember) String() string
- func (m *TeamMember) Unmarshal(dAtA []byte) error
- func (m *TeamMember) XXX_DiscardUnknown()
- func (m *TeamMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TeamMember) XXX_Merge(src proto.Message)
- func (m *TeamMember) XXX_Size() int
- func (m *TeamMember) XXX_Unmarshal(b []byte) error
- type TeamMember_Role
- type User
- func (entity *User) ASCIIID() string
- func (entity *User) BeforeSave(db *gorm.DB) error
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetActiveSeason() *Season
- func (m *User) GetActiveSeasonID() int64
- func (m *User) GetActiveTeamMember() *TeamMember
- func (m *User) GetActiveTeamMemberID() int64
- func (m *User) GetCreatedAt() *time.Time
- func (m *User) GetDeletedAt() *time.Time
- func (m *User) GetDeletionReason() string
- func (m *User) GetDeletionStatus() DeletionStatus
- func (m *User) GetEmail() string
- func (m *User) GetGravatarURL() string
- func (m *User) GetID() int64
- func (m *User) GetLocale() string
- func (m *User) GetNotifications() []*Notification
- func (m *User) GetOAuthSubject() string
- func (m *User) GetOrganizationMemberships() []*OrganizationMember
- func (m *User) GetSlug() string
- func (m *User) GetTeamMemberships() []*TeamMember
- func (m *User) GetUpdatedAt() *time.Time
- func (m *User) GetUsername() string
- func (m *User) GetWebsiteURL() string
- func (m *User) Marshal() (dAtA []byte, err error)
- func (m *User) MarshalTo(dAtA []byte) (int, error)
- func (m *User) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) Size() (n int)
- func (m *User) String() string
- func (m *User) Unmarshal(dAtA []byte) error
- func (m *User) XXX_DiscardUnknown()
- func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *User) XXX_Merge(src proto.Message)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
- type UserList
- func (*UserList) Descriptor() ([]byte, []int)
- func (m *UserList) GetItems() []*User
- func (m *UserList) Marshal() (dAtA []byte, err error)
- func (m *UserList) MarshalTo(dAtA []byte) (int, error)
- func (m *UserList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UserList) ProtoMessage()
- func (m *UserList) Reset()
- func (m *UserList) Size() (n int)
- func (m *UserList) String() string
- func (m *UserList) Unmarshal(dAtA []byte) error
- func (m *UserList) XXX_DiscardUnknown()
- func (m *UserList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserList) XXX_Merge(src proto.Message)
- func (m *UserList) XXX_Size() int
- func (m *UserList) XXX_Unmarshal(b []byte) error
- type WhoswhoAttempt
- func (*WhoswhoAttempt) Descriptor() ([]byte, []int)
- func (m *WhoswhoAttempt) GetAuthor() *User
- func (m *WhoswhoAttempt) GetAuthorID() int64
- func (m *WhoswhoAttempt) GetAuthorTeam() *Team
- func (m *WhoswhoAttempt) GetAuthorTeamID() int64
- func (m *WhoswhoAttempt) GetCreatedAt() *time.Time
- func (m *WhoswhoAttempt) GetID() int64
- func (m *WhoswhoAttempt) GetSlug() string
- func (m *WhoswhoAttempt) GetSuccess() bool
- func (m *WhoswhoAttempt) GetTargetTeam() *Team
- func (m *WhoswhoAttempt) GetTargetTeamID() int64
- func (m *WhoswhoAttempt) GetTargetUser() *User
- func (m *WhoswhoAttempt) GetTargetUserID() int64
- func (m *WhoswhoAttempt) GetUpdatedAt() *time.Time
- func (m *WhoswhoAttempt) Marshal() (dAtA []byte, err error)
- func (m *WhoswhoAttempt) MarshalTo(dAtA []byte) (int, error)
- func (m *WhoswhoAttempt) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WhoswhoAttempt) ProtoMessage()
- func (m *WhoswhoAttempt) Reset()
- func (m *WhoswhoAttempt) Size() (n int)
- func (m *WhoswhoAttempt) String() string
- func (m *WhoswhoAttempt) Unmarshal(dAtA []byte) error
- func (m *WhoswhoAttempt) XXX_DiscardUnknown()
- func (m *WhoswhoAttempt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WhoswhoAttempt) XXX_Merge(src proto.Message)
- func (m *WhoswhoAttempt) XXX_Size() int
- func (m *WhoswhoAttempt) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthPwdb = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPwdb = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupPwdb = fmt.Errorf("proto: unexpected end of group") )
View Source
var Achievement_Type_name = map[int32]string{
0: "Undefined",
1: "Buy1Challenge",
2: "Buy5Challenges",
3: "Buy10Challenges",
4: "Buy20Challenges",
5: "Buy50Challenges",
10: "Validate1Challenge",
11: "Validate5Challenges",
12: "Validate10Challenges",
13: "Validate20Challenges",
14: "Validate50Challenges",
20: "Validate1Coupon",
21: "Validate5Coupons",
22: "Validate10Coupons",
23: "Validate20Coupons",
24: "Validate50Coupons",
25: "Validate100Coupons",
30: "Author1Challenge",
31: "Author2Challenges",
32: "Author5Challenges",
33: "Author10Challenges",
40: "EarlyAdopterTop100",
41: "EarlyAdopterTop1000",
50: "Old1Year",
51: "Old2Years",
90: "Send1PullRequest",
91: "Send2PullRequests",
92: "Send5PullRequests",
93: "Send10Pullrequests",
100: "Staff",
101: "Contributor",
102: "BugHunter",
103: "Moderator",
104: "HackThePlatform",
}
View Source
var Achievement_Type_value = map[string]int32{
"Undefined": 0,
"Buy1Challenge": 1,
"Buy5Challenges": 2,
"Buy10Challenges": 3,
"Buy20Challenges": 4,
"Buy50Challenges": 5,
"Validate1Challenge": 10,
"Validate5Challenges": 11,
"Validate10Challenges": 12,
"Validate20Challenges": 13,
"Validate50Challenges": 14,
"Validate1Coupon": 20,
"Validate5Coupons": 21,
"Validate10Coupons": 22,
"Validate20Coupons": 23,
"Validate50Coupons": 24,
"Validate100Coupons": 25,
"Author1Challenge": 30,
"Author2Challenges": 31,
"Author5Challenges": 32,
"Author10Challenges": 33,
"EarlyAdopterTop100": 40,
"EarlyAdopterTop1000": 41,
"Old1Year": 50,
"Old2Years": 51,
"Send1PullRequest": 90,
"Send2PullRequests": 91,
"Send5PullRequests": 92,
"Send10Pullrequests": 93,
"Staff": 100,
"Contributor": 101,
"BugHunter": 102,
"Moderator": 103,
"HackThePlatform": 104,
}
View Source
var Activity_Kind_name = map[int32]string{
0: "Unknown",
1: "UserRegister",
2: "UserLogin",
3: "UserSetPreferences",
4: "UserDeleteAccount",
5: "SeasonChallengeBuy",
6: "ChallengeSubscriptionValidate",
7: "CouponValidate",
8: "AgentRegister",
9: "AgentChallengeInstanceCreate",
10: "AgentChallengeInstanceUpdate",
11: "TeamCreation",
12: "TeamInviteSend",
13: "TeamInviteAccept",
}
View Source
var Activity_Kind_value = map[string]int32{
"Unknown": 0,
"UserRegister": 1,
"UserLogin": 2,
"UserSetPreferences": 3,
"UserDeleteAccount": 4,
"SeasonChallengeBuy": 5,
"ChallengeSubscriptionValidate": 6,
"CouponValidate": 7,
"AgentRegister": 8,
"AgentChallengeInstanceCreate": 9,
"AgentChallengeInstanceUpdate": 10,
"TeamCreation": 11,
"TeamInviteSend": 12,
"TeamInviteAccept": 13,
}
View Source
var Agent_Status_name = map[int32]string{
0: "Unknown",
1: "Active",
2: "Inactive",
3: "Timeout",
4: "Error",
}
View Source
var Agent_Status_value = map[string]int32{
"Unknown": 0,
"Active": 1,
"Inactive": 2,
"Timeout": 3,
"Error": 4,
}
View Source
var ChallengeFlavor_Driver_name = map[int32]string{
0: "Unknown",
1: "Docker",
2: "DockerCompose",
}
View Source
var ChallengeFlavor_Driver_value = map[string]int32{
"Unknown": 0,
"Docker": 1,
"DockerCompose": 2,
}
View Source
var ChallengeInstance_Status_name = map[int32]string{
0: "Unknown",
1: "IsNew",
2: "AcceptedByAgent",
3: "Available",
4: "NeedRedump",
5: "Disabled",
}
View Source
var ChallengeInstance_Status_value = map[string]int32{
"Unknown": 0,
"IsNew": 1,
"AcceptedByAgent": 2,
"Available": 3,
"NeedRedump": 4,
"Disabled": 5,
}
View Source
var ChallengeSubscription_Status_name = map[int32]string{
0: "Unknown",
1: "Active",
2: "Closed",
}
View Source
var ChallengeSubscription_Status_value = map[string]int32{
"Unknown": 0,
"Active": 1,
"Closed": 2,
}
View Source
var ChallengeValidation_Status_name = map[int32]string{
0: "Unknown",
1: "NeedReview",
2: "Accepted",
3: "Refused",
4: "AutoAccepted",
}
View Source
var ChallengeValidation_Status_value = map[string]int32{
"Unknown": 0,
"NeedReview": 1,
"Accepted": 2,
"Refused": 3,
"AutoAccepted": 4,
}
View Source
var DeletionStatus_name = map[int32]string{
0: "Unknown",
1: "Active",
2: "Requested",
3: "Anonymized",
}
View Source
var DeletionStatus_value = map[string]int32{
"Unknown": 0,
"Active": 1,
"Requested": 2,
"Anonymized": 3,
}
View Source
var InventoryItem_Item_name = map[int32]string{
0: "Unknown",
}
View Source
var InventoryItem_Item_value = map[string]int32{
"Unknown": 0,
}
View Source
var OrganizationMember_Role_name = map[int32]string{
0: "Undefined",
1: "Owner",
2: "Member",
}
View Source
var OrganizationMember_Role_value = map[string]int32{
"Undefined": 0,
"Owner": 1,
"Member": 2,
}
View Source
var Season_Status_name = map[int32]string{
0: "UnknownStatus",
1: "Started",
2: "Stopped",
}
View Source
var Season_Status_value = map[string]int32{
"UnknownStatus": 0,
"Started": 1,
"Stopped": 2,
}
View Source
var Season_Subscription_name = map[int32]string{
0: "UnknownSubscription",
1: "Open",
2: "Close",
}
View Source
var Season_Subscription_value = map[string]int32{
"UnknownSubscription": 0,
"Open": 1,
"Close": 2,
}
View Source
var Season_Visibility_name = map[int32]string{
0: "UnknownVisibility",
1: "Private",
2: "Unlisted",
3: "Public",
}
View Source
var Season_Visibility_value = map[string]int32{
"UnknownVisibility": 0,
"Private": 1,
"Unlisted": 2,
"Public": 3,
}
View Source
var TeamMember_Role_name = map[int32]string{
0: "Undefined",
1: "Owner",
2: "Member",
}
View Source
var TeamMember_Role_value = map[string]int32{
"Undefined": 0,
"Owner": 1,
"Member": 2,
}
Functions ¶
func ForeignKeys ¶
func ForeignKeys() [][3]string
func GenerateFakeData ¶
func GetIDBySlugAndKind ¶
func GormToErrcode ¶
func IsRecordNotFoundError ¶
Types ¶
type Achievement ¶
type Achievement struct { ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` CreatedAt *time.Time `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at,omitempty"` UpdatedAt *time.Time `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at,omitempty"` Type Achievement_Type `protobuf:"varint,100,opt,name=type,proto3,enum=pathwar.db.Achievement_Type" json:"type,omitempty"` IsGlobal bool `protobuf:"varint,101,opt,name=is_global,json=isGlobal,proto3" json:"is_global,omitempty"` Comment string `protobuf:"bytes,102,opt,name=comment,proto3" json:"comment,omitempty"` Argument string `protobuf:"bytes,103,opt,name=argument,proto3" json:"argument,omitempty"` Slug string `protobuf:"bytes,104,opt,name=slug,proto3" json:"slug,omitempty"` Author *User `protobuf:"bytes,200,opt,name=author,proto3" json:"author,omitempty" gorm:"foreignkey:AuthorID"` AuthorID int64 `protobuf:"varint,201,opt,name=author_id,json=authorId,proto3" json:"author_id,omitempty" sql:"not null" gorm:"index"` Team *Team `protobuf:"bytes,202,opt,name=team,proto3" json:"team,omitempty" gorm:"foreignkey:TeamID"` TeamID int64 `protobuf:"varint,203,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty" sql:"not null" gorm:"index"` ChallengeValidation *ChallengeValidation `` /* 160-byte string literal not displayed */ ChallengeValidationID int64 `` /* 157-byte string literal not displayed */ }
func (*Achievement) Descriptor ¶
func (*Achievement) Descriptor() ([]byte, []int)
func (*Achievement) GetArgument ¶
func (m *Achievement) GetArgument() string
func (*Achievement) GetAuthor ¶
func (m *Achievement) GetAuthor() *User
func (*Achievement) GetAuthorID ¶
func (m *Achievement) GetAuthorID() int64
func (*Achievement) GetChallengeValidation ¶
func (m *Achievement) GetChallengeValidation() *ChallengeValidation
func (*Achievement) GetChallengeValidationID ¶
func (m *Achievement) GetChallengeValidationID() int64
func (*Achievement) GetComment ¶
func (m *Achievement) GetComment() string
func (*Achievement) GetCreatedAt ¶
func (m *Achievement) GetCreatedAt() *time.Time
func (*Achievement) GetID ¶
func (m *Achievement) GetID() int64
func (*Achievement) GetIsGlobal ¶
func (m *Achievement) GetIsGlobal() bool
func (*Achievement) GetSlug ¶
func (m *Achievement) GetSlug() string
func (*Achievement) GetTeam ¶
func (m *Achievement) GetTeam() *Team
func (*Achievement) GetTeamID ¶
func (m *Achievement) GetTeamID() int64
func (*Achievement) GetType ¶
func (m *Achievement) GetType() Achievement_Type
func (*Achievement) GetUpdatedAt ¶
func (m *Achievement) GetUpdatedAt() *time.Time
func (*Achievement) Marshal ¶
func (m *Achievement) Marshal() (dAtA []byte, err error)
func (*Achievement) MarshalToSizedBuffer ¶
func (m *Achievement) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Achievement) ProtoMessage ¶
func (*Achievement) ProtoMessage()
func (*Achievement) Reset ¶
func (m *Achievement) Reset()
func (*Achievement) Size ¶
func (m *Achievement) Size() (n int)
func (*Achievement) String ¶
func (m *Achievement) String() string
func (*Achievement) Unmarshal ¶
func (m *Achievement) Unmarshal(dAtA []byte) error
func (*Achievement) XXX_DiscardUnknown ¶
func (m *Achievement) XXX_DiscardUnknown()
func (*Achievement) XXX_Marshal ¶
func (m *Achievement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Achievement) XXX_Merge ¶
func (m *Achievement) XXX_Merge(src proto.Message)
func (*Achievement) XXX_Size ¶
func (m *Achievement) XXX_Size() int
func (*Achievement) XXX_Unmarshal ¶
func (m *Achievement) XXX_Unmarshal(b []byte) error
type Achievement_Type ¶
type Achievement_Type int32
const ( Achievement_Undefined Achievement_Type = 0 Achievement_Buy1Challenge Achievement_Type = 1 Achievement_Buy5Challenges Achievement_Type = 2 Achievement_Buy10Challenges Achievement_Type = 3 Achievement_Buy20Challenges Achievement_Type = 4 Achievement_Buy50Challenges Achievement_Type = 5 Achievement_Validate1Challenge Achievement_Type = 10 Achievement_Validate5Challenges Achievement_Type = 11 Achievement_Validate10Challenges Achievement_Type = 12 Achievement_Validate20Challenges Achievement_Type = 13 Achievement_Validate50Challenges Achievement_Type = 14 Achievement_Validate1Coupon Achievement_Type = 20 Achievement_Validate5Coupons Achievement_Type = 21 Achievement_Validate10Coupons Achievement_Type = 22 Achievement_Validate20Coupons Achievement_Type = 23 Achievement_Validate50Coupons Achievement_Type = 24 Achievement_Validate100Coupons Achievement_Type = 25 Achievement_Author1Challenge Achievement_Type = 30 Achievement_Author2Challenges Achievement_Type = 31 Achievement_Author5Challenges Achievement_Type = 32 Achievement_Author10Challenges Achievement_Type = 33 Achievement_EarlyAdopterTop100 Achievement_Type = 40 Achievement_EarlyAdopterTop1000 Achievement_Type = 41 Achievement_Old1Year Achievement_Type = 50 Achievement_Old2Years Achievement_Type = 51 Achievement_Send1PullRequest Achievement_Type = 90 Achievement_Send2PullRequests Achievement_Type = 91 Achievement_Send5PullRequests Achievement_Type = 92 Achievement_Send10Pullrequests Achievement_Type = 93 Achievement_Staff Achievement_Type = 100 Achievement_Contributor Achievement_Type = 101 Achievement_BugHunter Achievement_Type = 102 Achievement_Moderator Achievement_Type = 103 Achievement_HackThePlatform Achievement_Type = 104 )
func (Achievement_Type) EnumDescriptor ¶
func (Achievement_Type) EnumDescriptor() ([]byte, []int)
func (Achievement_Type) String ¶
func (x Achievement_Type) String() string
type Activity ¶
type Activity struct { ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` CreatedAt *time.Time `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at,omitempty"` UpdatedAt *time.Time `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at,omitempty"` Kind Activity_Kind `protobuf:"varint,100,opt,name=kind,proto3,enum=pathwar.db.Activity_Kind" json:"kind,omitempty"` Author *User `protobuf:"bytes,200,opt,name=author,proto3" json:"author,omitempty" gorm:"foreignkey:AuthorID"` AuthorID int64 `protobuf:"varint,201,opt,name=author_id,json=authorId,proto3" json:"author_id,omitempty" sql:"not null" gorm:"index"` Team *Team `protobuf:"bytes,202,opt,name=team,proto3" json:"team,omitempty" gorm:"foreignkey:TeamID"` TeamID int64 `protobuf:"varint,203,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty" sql:"not null" gorm:"index"` User *User `protobuf:"bytes,204,opt,name=user,proto3" json:"user,omitempty" gorm:"foreignkey:UserID"` UserID int64 `protobuf:"varint,205,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" sql:"not null" gorm:"index"` Organization *Organization `protobuf:"bytes,206,opt,name=organization,proto3" json:"organization,omitempty" gorm:"foreignkey:OrganizationID"` OrganizationID int64 `` /* 134-byte string literal not displayed */ Season *Season `protobuf:"bytes,208,opt,name=season,proto3" json:"season,omitempty" gorm:"foreignkey:SeasonID"` SeasonID int64 `protobuf:"varint,209,opt,name=season_id,json=seasonId,proto3" json:"season_id,omitempty" sql:"not null" gorm:"index"` Challenge *Challenge `protobuf:"bytes,210,opt,name=challenge,proto3" json:"challenge,omitempty" gorm:"foreignkey:ChallengeID"` ChallengeID int64 `protobuf:"varint,211,opt,name=challenge_id,json=challengeId,proto3" json:"challenge_id,omitempty" sql:"not null" gorm:"index"` ChallengeFlavor *ChallengeFlavor `` /* 144-byte string literal not displayed */ ChallengeFlavorID int64 `` /* 145-byte string literal not displayed */ Coupon *Coupon `protobuf:"bytes,214,opt,name=coupon,proto3" json:"coupon,omitempty" gorm:"foreignkey:CouponID"` CouponID int64 `protobuf:"varint,215,opt,name=coupon_id,json=couponId,proto3" json:"coupon_id,omitempty" sql:"not null" gorm:"index"` SeasonChallenge *SeasonChallenge `` /* 144-byte string literal not displayed */ SeasonChallengeID int64 `` /* 145-byte string literal not displayed */ TeamMember *TeamMember `protobuf:"bytes,218,opt,name=team_member,json=teamMember,proto3" json:"team_member,omitempty" gorm:"foreignkey:TeamMemberID"` TeamMemberID int64 `` /* 130-byte string literal not displayed */ ChallengeSubscription *ChallengeSubscription `` /* 168-byte string literal not displayed */ ChallengeSubscriptionID int64 `` /* 163-byte string literal not displayed */ ChallengeInstance *ChallengeInstance `` /* 152-byte string literal not displayed */ ChallengeInstanceID int64 `` /* 151-byte string literal not displayed */ Agent *Agent `protobuf:"bytes,224,opt,name=agent,proto3" json:"agent,omitempty" gorm:"foreignkey:AgentID"` AgentID int64 `protobuf:"varint,225,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty" sql:"not null" gorm:"index"` TeamInvite *Agent `protobuf:"bytes,226,opt,name=team_invite,json=teamInvite,proto3" json:"team_invite,omitempty" gorm:"foreignkey:TeamInviteID"` TeamInviteID int64 `` /* 130-byte string literal not displayed */ }
func (*Activity) Descriptor ¶
func (*Activity) GetAgentID ¶
func (*Activity) GetAuthorID ¶
func (*Activity) GetChallenge ¶
func (*Activity) GetChallengeFlavor ¶
func (m *Activity) GetChallengeFlavor() *ChallengeFlavor
func (*Activity) GetChallengeFlavorID ¶
func (*Activity) GetChallengeID ¶
func (*Activity) GetChallengeInstance ¶
func (m *Activity) GetChallengeInstance() *ChallengeInstance
func (*Activity) GetChallengeInstanceID ¶
func (*Activity) GetChallengeSubscription ¶
func (m *Activity) GetChallengeSubscription() *ChallengeSubscription
func (*Activity) GetChallengeSubscriptionID ¶
func (*Activity) GetCouponID ¶
func (*Activity) GetCreatedAt ¶
func (*Activity) GetKind ¶
func (m *Activity) GetKind() Activity_Kind
func (*Activity) GetOrganization ¶
func (m *Activity) GetOrganization() *Organization
func (*Activity) GetOrganizationID ¶
func (*Activity) GetSeasonChallenge ¶
func (m *Activity) GetSeasonChallenge() *SeasonChallenge
func (*Activity) GetSeasonChallengeID ¶
func (*Activity) GetSeasonID ¶
func (*Activity) GetTeamInvite ¶
func (*Activity) GetTeamInviteID ¶
func (*Activity) GetTeamMember ¶
func (m *Activity) GetTeamMember() *TeamMember
func (*Activity) GetTeamMemberID ¶
func (*Activity) GetUpdatedAt ¶
func (*Activity) MarshalToSizedBuffer ¶
func (*Activity) ProtoMessage ¶
func (*Activity) ProtoMessage()
func (*Activity) XXX_DiscardUnknown ¶
func (m *Activity) XXX_DiscardUnknown()
func (*Activity) XXX_Marshal ¶
func (*Activity) XXX_Unmarshal ¶
type ActivityList ¶
type ActivityList struct {
Items []*Activity `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
}
func (*ActivityList) Descriptor ¶
func (*ActivityList) Descriptor() ([]byte, []int)
func (*ActivityList) GetItems ¶
func (m *ActivityList) GetItems() []*Activity
func (*ActivityList) Marshal ¶
func (m *ActivityList) Marshal() (dAtA []byte, err error)
func (*ActivityList) MarshalToSizedBuffer ¶
func (m *ActivityList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ActivityList) ProtoMessage ¶
func (*ActivityList) ProtoMessage()
func (*ActivityList) Reset ¶
func (m *ActivityList) Reset()
func (*ActivityList) Size ¶
func (m *ActivityList) Size() (n int)
func (*ActivityList) String ¶
func (m *ActivityList) String() string
func (*ActivityList) Unmarshal ¶
func (m *ActivityList) Unmarshal(dAtA []byte) error
func (*ActivityList) XXX_DiscardUnknown ¶
func (m *ActivityList) XXX_DiscardUnknown()
func (*ActivityList) XXX_Marshal ¶
func (m *ActivityList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ActivityList) XXX_Merge ¶
func (m *ActivityList) XXX_Merge(src proto.Message)
func (*ActivityList) XXX_Size ¶
func (m *ActivityList) XXX_Size() int
func (*ActivityList) XXX_Unmarshal ¶
func (m *ActivityList) XXX_Unmarshal(b []byte) error
type Activity_Kind ¶
type Activity_Kind int32
const ( Activity_Unknown Activity_Kind = 0 Activity_UserRegister Activity_Kind = 1 Activity_UserLogin Activity_Kind = 2 Activity_UserSetPreferences Activity_Kind = 3 Activity_UserDeleteAccount Activity_Kind = 4 Activity_SeasonChallengeBuy Activity_Kind = 5 Activity_ChallengeSubscriptionValidate Activity_Kind = 6 Activity_CouponValidate Activity_Kind = 7 Activity_AgentRegister Activity_Kind = 8 Activity_AgentChallengeInstanceCreate Activity_Kind = 9 Activity_AgentChallengeInstanceUpdate Activity_Kind = 10 Activity_TeamCreation Activity_Kind = 11 Activity_TeamInviteSend Activity_Kind = 12 Activity_TeamInviteAccept Activity_Kind = 13 )
func (Activity_Kind) EnumDescriptor ¶
func (Activity_Kind) EnumDescriptor() ([]byte, []int)
func (Activity_Kind) String ¶
func (x Activity_Kind) String() string
type Agent ¶
type Agent struct { ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` CreatedAt *time.Time `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at,omitempty"` UpdatedAt *time.Time `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at,omitempty"` Name string `protobuf:"bytes,100,opt,name=name,proto3" json:"name,omitempty"` Hostname string `protobuf:"bytes,101,opt,name=hostname,proto3" json:"hostname,omitempty"` OS string `protobuf:"bytes,102,opt,name=os,proto3" json:"os,omitempty"` Status Agent_Status `protobuf:"varint,103,opt,name=status,proto3,enum=pathwar.db.Agent_Status" json:"status,omitempty"` ErrMsg string `protobuf:"bytes,104,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"` Arch string `protobuf:"bytes,105,opt,name=arch,proto3" json:"arch,omitempty"` Version string `protobuf:"bytes,106,opt,name=version,proto3" json:"version,omitempty"` Tags string `protobuf:"bytes,107,opt,name=tags,proto3" json:"tags,omitempty"` DomainSuffix string `protobuf:"bytes,108,opt,name=domain_suffix,json=domainSuffix,proto3" json:"domain_suffix,omitempty"` NginxPort int64 `protobuf:"varint,109,opt,name=nginx_port,json=nginxPort,proto3" json:"nginx_port,omitempty"` Metadata string `protobuf:"bytes,110,opt,name=metadata,proto3" json:"metadata,omitempty"` TimesSeen int64 `protobuf:"varint,111,opt,name=times_seen,json=timesSeen,proto3" json:"times_seen,omitempty"` TimesRegistered int64 `protobuf:"varint,112,opt,name=times_registered,json=timesRegistered,proto3" json:"times_registered,omitempty"` LastRegistrationAt *time.Time `` /* 127-byte string literal not displayed */ LastSeenAt *time.Time `protobuf:"bytes,114,opt,name=last_seen_at,json=lastSeenAt,proto3,stdtime" json:"last_seen_at,omitempty"` AuthSalt string `protobuf:"bytes,115,opt,name=auth_salt,json=authSalt,proto3" json:"auth_salt,omitempty"` DefaultAgent bool `protobuf:"varint,116,opt,name=default_agent,json=defaultAgent,proto3" json:"default_agent,omitempty"` Slug string `protobuf:"bytes,117,opt,name=slug,proto3" json:"slug,omitempty"` ChallengeInstances []*ChallengeInstance `` /* 138-byte string literal not displayed */ }
func (*Agent) Descriptor ¶
func (*Agent) GetAuthSalt ¶
func (*Agent) GetChallengeInstances ¶
func (m *Agent) GetChallengeInstances() []*ChallengeInstance
func (*Agent) GetCreatedAt ¶
func (*Agent) GetDefaultAgent ¶
func (*Agent) GetDomainSuffix ¶
func (*Agent) GetHostname ¶
func (*Agent) GetLastRegistrationAt ¶
func (*Agent) GetLastSeenAt ¶
func (*Agent) GetMetadata ¶
func (*Agent) GetNginxPort ¶
func (*Agent) GetStatus ¶
func (m *Agent) GetStatus() Agent_Status
func (*Agent) GetTimesRegistered ¶
func (*Agent) GetTimesSeen ¶
func (*Agent) GetUpdatedAt ¶
func (*Agent) GetVersion ¶
func (*Agent) ProtoMessage ¶
func (*Agent) ProtoMessage()
func (*Agent) XXX_DiscardUnknown ¶
func (m *Agent) XXX_DiscardUnknown()
func (*Agent) XXX_Marshal ¶
func (*Agent) XXX_Unmarshal ¶
type AgentList ¶
type AgentList struct {
Items []*Agent `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
}
func (*AgentList) Descriptor ¶
func (*AgentList) MarshalToSizedBuffer ¶
func (*AgentList) ProtoMessage ¶
func (*AgentList) ProtoMessage()
func (*AgentList) XXX_DiscardUnknown ¶
func (m *AgentList) XXX_DiscardUnknown()
func (*AgentList) XXX_Marshal ¶
func (*AgentList) XXX_Unmarshal ¶
type Agent_Status ¶
type Agent_Status int32
const ( Agent_Unknown Agent_Status = 0 Agent_Active Agent_Status = 1 Agent_Inactive Agent_Status = 2 Agent_Timeout Agent_Status = 3 Agent_Error Agent_Status = 4 )
func (Agent_Status) EnumDescriptor ¶
func (Agent_Status) EnumDescriptor() ([]byte, []int)
func (Agent_Status) String ¶
func (x Agent_Status) String() string
type Challenge ¶
type Challenge struct { ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key" yaml:"id,omitempty"` CreatedAt *time.Time `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at,omitempty" yaml:"created_at,omitempty"` UpdatedAt *time.Time `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at,omitempty" yaml:"updated_at,omitempty"` Name string `protobuf:"bytes,100,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,101,opt,name=description,proto3" json:"description,omitempty"` Author string `protobuf:"bytes,102,opt,name=author,proto3" json:"author,omitempty"` Locale string `protobuf:"bytes,103,opt,name=locale,proto3" json:"locale,omitempty"` IsDraft bool `protobuf:"varint,104,opt,name=is_draft,json=isDraft,proto3" json:"is_draft,omitempty"` PreviewURL string `protobuf:"bytes,105,opt,name=preview_url,json=previewUrl,proto3" json:"preview_url,omitempty"` Homepage string `protobuf:"bytes,106,opt,name=homepage,proto3" json:"homepage,omitempty"` Slug string `protobuf:"bytes,107,opt,name=slug,proto3" json:"slug,omitempty" gorm:"unique_index"` Flavors []*ChallengeFlavor `protobuf:"bytes,200,rep,name=flavors,proto3" json:"flavors,omitempty" gorm:"PRELOAD:false" yaml:"flavors,omitempty"` }
func (*Challenge) Descriptor ¶
func (*Challenge) GetCreatedAt ¶
func (*Challenge) GetDescription ¶
func (*Challenge) GetFlavors ¶
func (m *Challenge) GetFlavors() []*ChallengeFlavor
func (*Challenge) GetHomepage ¶
func (*Challenge) GetIsDraft ¶
func (*Challenge) GetPreviewURL ¶
func (*Challenge) GetUpdatedAt ¶
func (*Challenge) MarshalToSizedBuffer ¶
func (*Challenge) ProtoMessage ¶
func (*Challenge) ProtoMessage()
func (*Challenge) XXX_DiscardUnknown ¶
func (m *Challenge) XXX_DiscardUnknown()
func (*Challenge) XXX_Marshal ¶
func (*Challenge) XXX_Unmarshal ¶
type ChallengeFlavor ¶
type ChallengeFlavor struct { ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key" yaml:"id,omitempty"` CreatedAt *time.Time `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at,omitempty" yaml:"created_at,omitempty"` UpdatedAt *time.Time `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at,omitempty" yaml:"updated_at,omitempty"` Version string `protobuf:"bytes,100,opt,name=version,proto3" json:"version,omitempty"` SourceURL string `protobuf:"bytes,104,opt,name=source_url,json=sourceUrl,proto3" json:"source_url,omitempty"` ComposeBundle string `protobuf:"bytes,105,opt,name=compose_bundle,json=composeBundle,proto3" json:"compose_bundle,omitempty" gorm:"size:100000"` Driver ChallengeFlavor_Driver `protobuf:"varint,106,opt,name=driver,proto3,enum=pathwar.db.ChallengeFlavor_Driver" json:"driver,omitempty" yaml:"-"` PurchasePrice int64 `protobuf:"varint,107,opt,name=purchase_price,json=purchasePrice,proto3" json:"purchase_price,omitempty" yaml:"purchase_price"` ValidationReward int64 `` /* 137-byte string literal not displayed */ Slug string `protobuf:"bytes,109,opt,name=slug,proto3" json:"slug,omitempty" gorm:"unique_index"` Body string `protobuf:"bytes,110,opt,name=body,proto3" json:"body,omitempty"` Passphrases int64 `protobuf:"varint,111,opt,name=passphrases,proto3" json:"passphrases,omitempty"` Category string `protobuf:"bytes,112,opt,name=category,proto3" json:"category,omitempty"` Tags []string `protobuf:"bytes,113,rep,name=tags,proto3" json:"tags,omitempty" gorm:"-"` TagList string `protobuf:"bytes,114,opt,name=tag_list,json=tagList,proto3" json:"tag_list,omitempty" yaml:"-"` RedumpPolicy []*ChallengeFlavor_RedumpPolicy `` /* 129-byte string literal not displayed */ RedumpPolicyConfig string `` /* 128-byte string literal not displayed */ Challenge *Challenge `` /* 130-byte string literal not displayed */ ChallengeID int64 `` /* 155-byte string literal not displayed */ SeasonChallenges []*SeasonChallenge `` /* 187-byte string literal not displayed */ Instances []*ChallengeInstance `` /* 141-byte string literal not displayed */ }
func (*ChallengeFlavor) ASCIIID ¶
func (entity *ChallengeFlavor) ASCIIID() string
func (*ChallengeFlavor) BeforeSave ¶
func (entity *ChallengeFlavor) BeforeSave(db *gorm.DB) error
func (*ChallengeFlavor) Descriptor ¶
func (*ChallengeFlavor) Descriptor() ([]byte, []int)
func (*ChallengeFlavor) GetBody ¶
func (m *ChallengeFlavor) GetBody() string
func (*ChallengeFlavor) GetCategory ¶
func (m *ChallengeFlavor) GetCategory() string
func (*ChallengeFlavor) GetChallenge ¶
func (m *ChallengeFlavor) GetChallenge() *Challenge
func (*ChallengeFlavor) GetChallengeID ¶
func (m *ChallengeFlavor) GetChallengeID() int64
func (*ChallengeFlavor) GetComposeBundle ¶
func (m *ChallengeFlavor) GetComposeBundle() string
func (*ChallengeFlavor) GetCreatedAt ¶
func (m *ChallengeFlavor) GetCreatedAt() *time.Time
func (*ChallengeFlavor) GetDriver ¶
func (m *ChallengeFlavor) GetDriver() ChallengeFlavor_Driver
func (*ChallengeFlavor) GetID ¶
func (m *ChallengeFlavor) GetID() int64
func (*ChallengeFlavor) GetInstances ¶
func (m *ChallengeFlavor) GetInstances() []*ChallengeInstance
func (*ChallengeFlavor) GetPassphrases ¶
func (m *ChallengeFlavor) GetPassphrases() int64
func (*ChallengeFlavor) GetPurchasePrice ¶
func (m *ChallengeFlavor) GetPurchasePrice() int64
func (*ChallengeFlavor) GetRedumpPolicy ¶
func (m *ChallengeFlavor) GetRedumpPolicy() []*ChallengeFlavor_RedumpPolicy
func (*ChallengeFlavor) GetRedumpPolicyConfig ¶
func (m *ChallengeFlavor) GetRedumpPolicyConfig() string
func (*ChallengeFlavor) GetSeasonChallenges ¶
func (m *ChallengeFlavor) GetSeasonChallenges() []*SeasonChallenge
func (*ChallengeFlavor) GetSlug ¶
func (m *ChallengeFlavor) GetSlug() string
func (*ChallengeFlavor) GetSourceURL ¶
func (m *ChallengeFlavor) GetSourceURL() string
func (*ChallengeFlavor) GetTagList ¶
func (m *ChallengeFlavor) GetTagList() string
func (*ChallengeFlavor) GetTags ¶
func (m *ChallengeFlavor) GetTags() []string
func (*ChallengeFlavor) GetUpdatedAt ¶
func (m *ChallengeFlavor) GetUpdatedAt() *time.Time
func (*ChallengeFlavor) GetValidationReward ¶
func (m *ChallengeFlavor) GetValidationReward() int64
func (*ChallengeFlavor) GetVersion ¶
func (m *ChallengeFlavor) GetVersion() string
func (*ChallengeFlavor) Marshal ¶
func (m *ChallengeFlavor) Marshal() (dAtA []byte, err error)
func (*ChallengeFlavor) MarshalToSizedBuffer ¶
func (m *ChallengeFlavor) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (ChallengeFlavor) NameAndVersion ¶
func (cf ChallengeFlavor) NameAndVersion() string
func (*ChallengeFlavor) ProtoMessage ¶
func (*ChallengeFlavor) ProtoMessage()
func (*ChallengeFlavor) Reset ¶
func (m *ChallengeFlavor) Reset()
func (*ChallengeFlavor) Size ¶
func (m *ChallengeFlavor) Size() (n int)
func (*ChallengeFlavor) String ¶
func (m *ChallengeFlavor) String() string
func (*ChallengeFlavor) Unmarshal ¶
func (m *ChallengeFlavor) Unmarshal(dAtA []byte) error
func (*ChallengeFlavor) XXX_DiscardUnknown ¶
func (m *ChallengeFlavor) XXX_DiscardUnknown()
func (*ChallengeFlavor) XXX_Marshal ¶
func (m *ChallengeFlavor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChallengeFlavor) XXX_Merge ¶
func (m *ChallengeFlavor) XXX_Merge(src proto.Message)
func (*ChallengeFlavor) XXX_Size ¶
func (m *ChallengeFlavor) XXX_Size() int
func (*ChallengeFlavor) XXX_Unmarshal ¶
func (m *ChallengeFlavor) XXX_Unmarshal(b []byte) error
type ChallengeFlavor_Driver ¶
type ChallengeFlavor_Driver int32
const ( ChallengeFlavor_Unknown ChallengeFlavor_Driver = 0 ChallengeFlavor_Docker ChallengeFlavor_Driver = 1 ChallengeFlavor_DockerCompose ChallengeFlavor_Driver = 2 )
func (ChallengeFlavor_Driver) EnumDescriptor ¶
func (ChallengeFlavor_Driver) EnumDescriptor() ([]byte, []int)
func (ChallengeFlavor_Driver) String ¶
func (x ChallengeFlavor_Driver) String() string
type ChallengeFlavor_RedumpPolicy ¶
type ChallengeFlavor_RedumpPolicy struct { Strategy string `protobuf:"bytes,1,opt,name=strategy,proto3" json:"strategy,omitempty"` Delay string `protobuf:"bytes,2,opt,name=delay,proto3" json:"delay,omitempty" yaml:"delay,omitempty"` }
func (*ChallengeFlavor_RedumpPolicy) Descriptor ¶
func (*ChallengeFlavor_RedumpPolicy) Descriptor() ([]byte, []int)
func (*ChallengeFlavor_RedumpPolicy) GetDelay ¶
func (m *ChallengeFlavor_RedumpPolicy) GetDelay() string
func (*ChallengeFlavor_RedumpPolicy) GetStrategy ¶
func (m *ChallengeFlavor_RedumpPolicy) GetStrategy() string
func (*ChallengeFlavor_RedumpPolicy) Marshal ¶
func (m *ChallengeFlavor_RedumpPolicy) Marshal() (dAtA []byte, err error)
func (*ChallengeFlavor_RedumpPolicy) MarshalTo ¶
func (m *ChallengeFlavor_RedumpPolicy) MarshalTo(dAtA []byte) (int, error)
func (*ChallengeFlavor_RedumpPolicy) MarshalToSizedBuffer ¶
func (m *ChallengeFlavor_RedumpPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ChallengeFlavor_RedumpPolicy) ProtoMessage ¶
func (*ChallengeFlavor_RedumpPolicy) ProtoMessage()
func (*ChallengeFlavor_RedumpPolicy) Reset ¶
func (m *ChallengeFlavor_RedumpPolicy) Reset()
func (*ChallengeFlavor_RedumpPolicy) Size ¶
func (m *ChallengeFlavor_RedumpPolicy) Size() (n int)
func (*ChallengeFlavor_RedumpPolicy) String ¶
func (m *ChallengeFlavor_RedumpPolicy) String() string
func (*ChallengeFlavor_RedumpPolicy) Unmarshal ¶
func (m *ChallengeFlavor_RedumpPolicy) Unmarshal(dAtA []byte) error
func (*ChallengeFlavor_RedumpPolicy) XXX_DiscardUnknown ¶
func (m *ChallengeFlavor_RedumpPolicy) XXX_DiscardUnknown()
func (*ChallengeFlavor_RedumpPolicy) XXX_Marshal ¶
func (m *ChallengeFlavor_RedumpPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChallengeFlavor_RedumpPolicy) XXX_Merge ¶
func (m *ChallengeFlavor_RedumpPolicy) XXX_Merge(src proto.Message)
func (*ChallengeFlavor_RedumpPolicy) XXX_Size ¶
func (m *ChallengeFlavor_RedumpPolicy) XXX_Size() int
func (*ChallengeFlavor_RedumpPolicy) XXX_Unmarshal ¶
func (m *ChallengeFlavor_RedumpPolicy) XXX_Unmarshal(b []byte) error
type ChallengeInstance ¶
type ChallengeInstance struct { ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` CreatedAt *time.Time `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at,omitempty"` UpdatedAt *time.Time `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at,omitempty"` Status ChallengeInstance_Status `protobuf:"varint,100,opt,name=status,proto3,enum=pathwar.db.ChallengeInstance_Status" json:"status,omitempty"` LastStartedAt *time.Time `protobuf:"bytes,101,opt,name=last_started_at,json=lastStartedAt,proto3,stdtime" json:"last_started_at,omitempty"` LastStoppedAt *time.Time `protobuf:"bytes,102,opt,name=last_stopped_at,json=lastStoppedAt,proto3,stdtime" json:"last_stopped_at,omitempty"` LastRedumpRequestedAt *time.Time `` /* 138-byte string literal not displayed */ StartupError string `protobuf:"bytes,104,opt,name=startup_error,json=startupError,proto3" json:"startup_error,omitempty"` RedumpCount int64 `protobuf:"varint,105,opt,name=redump_count,json=redumpCount,proto3" json:"redump_count,omitempty"` ValidationCount int64 `protobuf:"varint,106,opt,name=validation_count,json=validationCount,proto3" json:"validation_count,omitempty"` InstanceConfig []byte `protobuf:"bytes,107,opt,name=instance_config,json=instanceConfig,proto3" json:"instance_config,omitempty"` // usage metrics to be updated by the agent (unique users, requests, etc) // timestamp last_marked_as_tainted // driver (docker) Slug string `protobuf:"bytes,108,opt,name=slug,proto3" json:"slug,omitempty"` Agent *Agent `protobuf:"bytes,200,opt,name=agent,proto3" json:"agent,omitempty" gorm:"foreignkey:AgentID"` AgentID int64 `protobuf:"varint,201,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty" sql:"not null" gorm:"index"` Flavor *ChallengeFlavor `protobuf:"bytes,202,opt,name=flavor,proto3" json:"flavor,omitempty" gorm:"foreignkey:FlavorID"` FlavorID int64 `protobuf:"varint,203,opt,name=flavor_id,json=flavorId,proto3" json:"flavor_id,omitempty" sql:"not null" gorm:"index"` NginxURL string `protobuf:"bytes,250,opt,name=nginx_url,json=nginxUrl,proto3" json:"nginx_url,omitempty" gorm:"-"` }
func (*ChallengeInstance) ASCIIID ¶
func (entity *ChallengeInstance) ASCIIID() string
func (*ChallengeInstance) BeforeSave ¶
func (entity *ChallengeInstance) BeforeSave(db *gorm.DB) error
func (*ChallengeInstance) Descriptor ¶
func (*ChallengeInstance) Descriptor() ([]byte, []int)
func (*ChallengeInstance) GetAgent ¶
func (m *ChallengeInstance) GetAgent() *Agent
func (*ChallengeInstance) GetAgentID ¶
func (m *ChallengeInstance) GetAgentID() int64
func (*ChallengeInstance) GetCreatedAt ¶
func (m *ChallengeInstance) GetCreatedAt() *time.Time
func (*ChallengeInstance) GetFlavor ¶
func (m *ChallengeInstance) GetFlavor() *ChallengeFlavor
func (*ChallengeInstance) GetFlavorID ¶
func (m *ChallengeInstance) GetFlavorID() int64
func (*ChallengeInstance) GetID ¶
func (m *ChallengeInstance) GetID() int64
func (*ChallengeInstance) GetInstanceConfig ¶
func (m *ChallengeInstance) GetInstanceConfig() []byte
func (*ChallengeInstance) GetLastRedumpRequestedAt ¶
func (m *ChallengeInstance) GetLastRedumpRequestedAt() *time.Time
func (*ChallengeInstance) GetLastStartedAt ¶
func (m *ChallengeInstance) GetLastStartedAt() *time.Time
func (*ChallengeInstance) GetLastStoppedAt ¶
func (m *ChallengeInstance) GetLastStoppedAt() *time.Time
func (*ChallengeInstance) GetNginxURL ¶
func (m *ChallengeInstance) GetNginxURL() string
func (*ChallengeInstance) GetRedumpCount ¶
func (m *ChallengeInstance) GetRedumpCount() int64
func (*ChallengeInstance) GetSlug ¶
func (m *ChallengeInstance) GetSlug() string
func (*ChallengeInstance) GetStartupError ¶
func (m *ChallengeInstance) GetStartupError() string
func (*ChallengeInstance) GetStatus ¶
func (m *ChallengeInstance) GetStatus() ChallengeInstance_Status
func (*ChallengeInstance) GetUpdatedAt ¶
func (m *ChallengeInstance) GetUpdatedAt() *time.Time
func (*ChallengeInstance) GetValidationCount ¶
func (m *ChallengeInstance) GetValidationCount() int64
func (*ChallengeInstance) Marshal ¶
func (m *ChallengeInstance) Marshal() (dAtA []byte, err error)
func (*ChallengeInstance) MarshalTo ¶
func (m *ChallengeInstance) MarshalTo(dAtA []byte) (int, error)
func (*ChallengeInstance) MarshalToSizedBuffer ¶
func (m *ChallengeInstance) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ChallengeInstance) ParseInstanceConfig ¶
func (instance *ChallengeInstance) ParseInstanceConfig() (*pwinit.InitConfig, error)
func (*ChallengeInstance) ProtoMessage ¶
func (*ChallengeInstance) ProtoMessage()
func (*ChallengeInstance) Reset ¶
func (m *ChallengeInstance) Reset()
func (*ChallengeInstance) Size ¶
func (m *ChallengeInstance) Size() (n int)
func (*ChallengeInstance) String ¶
func (m *ChallengeInstance) String() string
func (*ChallengeInstance) Unmarshal ¶
func (m *ChallengeInstance) Unmarshal(dAtA []byte) error
func (*ChallengeInstance) XXX_DiscardUnknown ¶
func (m *ChallengeInstance) XXX_DiscardUnknown()
func (*ChallengeInstance) XXX_Marshal ¶
func (m *ChallengeInstance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChallengeInstance) XXX_Merge ¶
func (m *ChallengeInstance) XXX_Merge(src proto.Message)
func (*ChallengeInstance) XXX_Size ¶
func (m *ChallengeInstance) XXX_Size() int
func (*ChallengeInstance) XXX_Unmarshal ¶
func (m *ChallengeInstance) XXX_Unmarshal(b []byte) error
type ChallengeInstance_Status ¶
type ChallengeInstance_Status int32
const ( ChallengeInstance_Unknown ChallengeInstance_Status = 0 ChallengeInstance_IsNew ChallengeInstance_Status = 1 ChallengeInstance_AcceptedByAgent ChallengeInstance_Status = 2 ChallengeInstance_Available ChallengeInstance_Status = 3 ChallengeInstance_NeedRedump ChallengeInstance_Status = 4 ChallengeInstance_Disabled ChallengeInstance_Status = 5 )
func (ChallengeInstance_Status) EnumDescriptor ¶
func (ChallengeInstance_Status) EnumDescriptor() ([]byte, []int)
func (ChallengeInstance_Status) String ¶
func (x ChallengeInstance_Status) String() string
type ChallengeList ¶
type ChallengeList struct {
Items []*Challenge `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
}
func (*ChallengeList) Descriptor ¶
func (*ChallengeList) Descriptor() ([]byte, []int)
func (*ChallengeList) GetItems ¶
func (m *ChallengeList) GetItems() []*Challenge
func (*ChallengeList) Marshal ¶
func (m *ChallengeList) Marshal() (dAtA []byte, err error)
func (*ChallengeList) MarshalToSizedBuffer ¶
func (m *ChallengeList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ChallengeList) ProtoMessage ¶
func (*ChallengeList) ProtoMessage()
func (*ChallengeList) Reset ¶
func (m *ChallengeList) Reset()
func (*ChallengeList) Size ¶
func (m *ChallengeList) Size() (n int)
func (*ChallengeList) String ¶
func (m *ChallengeList) String() string
func (*ChallengeList) Unmarshal ¶
func (m *ChallengeList) Unmarshal(dAtA []byte) error
func (*ChallengeList) XXX_DiscardUnknown ¶
func (m *ChallengeList) XXX_DiscardUnknown()
func (*ChallengeList) XXX_Marshal ¶
func (m *ChallengeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChallengeList) XXX_Merge ¶
func (m *ChallengeList) XXX_Merge(src proto.Message)
func (*ChallengeList) XXX_Size ¶
func (m *ChallengeList) XXX_Size() int
func (*ChallengeList) XXX_Unmarshal ¶
func (m *ChallengeList) XXX_Unmarshal(b []byte) error
type ChallengeSubscription ¶
type ChallengeSubscription struct { ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` CreatedAt *time.Time `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at,omitempty"` UpdatedAt *time.Time `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at,omitempty"` Status ChallengeSubscription_Status `protobuf:"varint,100,opt,name=status,proto3,enum=pathwar.db.ChallengeSubscription_Status" json:"status,omitempty"` ClosedAt *time.Time `protobuf:"bytes,101,opt,name=closed_at,json=closedAt,proto3,stdtime" json:"closed_at,omitempty"` Slug string `protobuf:"bytes,102,opt,name=slug,proto3" json:"slug,omitempty"` Team *Team `protobuf:"bytes,200,opt,name=team,proto3" json:"team,omitempty" gorm:"foreignkey:TeamID"` TeamID int64 `` /* 143-byte string literal not displayed */ SeasonChallenge *SeasonChallenge `` /* 144-byte string literal not displayed */ SeasonChallengeID int64 `` /* 178-byte string literal not displayed */ Buyer *User `protobuf:"bytes,204,opt,name=buyer,proto3" json:"buyer,omitempty" gorm:"foreignkey:BuyerID"` BuyerID int64 `protobuf:"varint,205,opt,name=buyer_id,json=buyerId,proto3" json:"buyer_id,omitempty" sql:"not null" gorm:"index"` Closer *User `protobuf:"bytes,206,opt,name=closer,proto3" json:"closer,omitempty" gorm:"foreignkey:CloserID"` CloserID int64 `protobuf:"varint,207,opt,name=closer_id,json=closerId,proto3" json:"closer_id,omitempty" sql:"null" gorm:"index"` Validations []*ChallengeValidation `protobuf:"bytes,208,rep,name=validations,proto3" json:"validations,omitempty" gorm:"PRELOAD:false"` }
func (*ChallengeSubscription) ASCIIID ¶
func (entity *ChallengeSubscription) ASCIIID() string
func (*ChallengeSubscription) BeforeSave ¶
func (entity *ChallengeSubscription) BeforeSave(db *gorm.DB) error
func (*ChallengeSubscription) Descriptor ¶
func (*ChallengeSubscription) Descriptor() ([]byte, []int)
func (*ChallengeSubscription) GetBuyer ¶
func (m *ChallengeSubscription) GetBuyer() *User
func (*ChallengeSubscription) GetBuyerID ¶
func (m *ChallengeSubscription) GetBuyerID() int64
func (*ChallengeSubscription) GetClosedAt ¶
func (m *ChallengeSubscription) GetClosedAt() *time.Time
func (*ChallengeSubscription) GetCloser ¶
func (m *ChallengeSubscription) GetCloser() *User
func (*ChallengeSubscription) GetCloserID ¶
func (m *ChallengeSubscription) GetCloserID() int64
func (*ChallengeSubscription) GetCreatedAt ¶
func (m *ChallengeSubscription) GetCreatedAt() *time.Time
func (*ChallengeSubscription) GetID ¶
func (m *ChallengeSubscription) GetID() int64
func (*ChallengeSubscription) GetSeasonChallenge ¶
func (m *ChallengeSubscription) GetSeasonChallenge() *SeasonChallenge
func (*ChallengeSubscription) GetSeasonChallengeID ¶
func (m *ChallengeSubscription) GetSeasonChallengeID() int64
func (*ChallengeSubscription) GetSlug ¶
func (m *ChallengeSubscription) GetSlug() string
func (*ChallengeSubscription) GetStatus ¶
func (m *ChallengeSubscription) GetStatus() ChallengeSubscription_Status
func (*ChallengeSubscription) GetTeam ¶
func (m *ChallengeSubscription) GetTeam() *Team
func (*ChallengeSubscription) GetTeamID ¶
func (m *ChallengeSubscription) GetTeamID() int64
func (*ChallengeSubscription) GetUpdatedAt ¶
func (m *ChallengeSubscription) GetUpdatedAt() *time.Time
func (*ChallengeSubscription) GetValidations ¶
func (m *ChallengeSubscription) GetValidations() []*ChallengeValidation
func (*ChallengeSubscription) Marshal ¶
func (m *ChallengeSubscription) Marshal() (dAtA []byte, err error)
func (*ChallengeSubscription) MarshalTo ¶
func (m *ChallengeSubscription) MarshalTo(dAtA []byte) (int, error)
func (*ChallengeSubscription) MarshalToSizedBuffer ¶
func (m *ChallengeSubscription) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ChallengeSubscription) ProtoMessage ¶
func (*ChallengeSubscription) ProtoMessage()
func (*ChallengeSubscription) Reset ¶
func (m *ChallengeSubscription) Reset()
func (*ChallengeSubscription) Size ¶
func (m *ChallengeSubscription) Size() (n int)
func (*ChallengeSubscription) String ¶
func (m *ChallengeSubscription) String() string
func (*ChallengeSubscription) Unmarshal ¶
func (m *ChallengeSubscription) Unmarshal(dAtA []byte) error
func (*ChallengeSubscription) XXX_DiscardUnknown ¶
func (m *ChallengeSubscription) XXX_DiscardUnknown()
func (*ChallengeSubscription) XXX_Marshal ¶
func (m *ChallengeSubscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChallengeSubscription) XXX_Merge ¶
func (m *ChallengeSubscription) XXX_Merge(src proto.Message)
func (*ChallengeSubscription) XXX_Size ¶
func (m *ChallengeSubscription) XXX_Size() int
func (*ChallengeSubscription) XXX_Unmarshal ¶
func (m *ChallengeSubscription) XXX_Unmarshal(b []byte) error
type ChallengeSubscription_Status ¶
type ChallengeSubscription_Status int32
const ( ChallengeSubscription_Unknown ChallengeSubscription_Status = 0 ChallengeSubscription_Active ChallengeSubscription_Status = 1 ChallengeSubscription_Closed ChallengeSubscription_Status = 2 )
func (ChallengeSubscription_Status) EnumDescriptor ¶
func (ChallengeSubscription_Status) EnumDescriptor() ([]byte, []int)
func (ChallengeSubscription_Status) String ¶
func (x ChallengeSubscription_Status) String() string
type ChallengeValidation ¶
type ChallengeValidation struct { ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` CreatedAt *time.Time `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at,omitempty"` UpdatedAt *time.Time `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at,omitempty"` Status ChallengeValidation_Status `protobuf:"varint,100,opt,name=status,proto3,enum=pathwar.db.ChallengeValidation_Status" json:"status,omitempty"` AuthorComment string `protobuf:"bytes,101,opt,name=author_comment,json=authorComment,proto3" json:"author_comment,omitempty"` CorrectorComment string `protobuf:"bytes,102,opt,name=corrector_comment,json=correctorComment,proto3" json:"corrector_comment,omitempty"` Passphrases string `protobuf:"bytes,105,opt,name=passphrases,proto3" json:"passphrases,omitempty"` Slug string `protobuf:"bytes,106,opt,name=slug,proto3" json:"slug,omitempty"` ChallengeSubscription *ChallengeSubscription `` /* 168-byte string literal not displayed */ ChallengeSubscriptionID int64 `` /* 163-byte string literal not displayed */ Author *User `protobuf:"bytes,202,opt,name=author,proto3" json:"author,omitempty" gorm:"foreignkey:AuthorID"` AuthorID int64 `protobuf:"varint,203,opt,name=author_id,json=authorId,proto3" json:"author_id,omitempty" sql:"not null" gorm:"index"` Team *Team `protobuf:"bytes,204,opt,name=team,proto3" json:"team,omitempty" gorm:"foreignkey:TeamID"` TeamID int64 `protobuf:"varint,205,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty" sql:"not null" gorm:"index"` }
func (*ChallengeValidation) BeforeSave ¶
func (entity *ChallengeValidation) BeforeSave(db *gorm.DB) error
func (*ChallengeValidation) Descriptor ¶
func (*ChallengeValidation) Descriptor() ([]byte, []int)
func (*ChallengeValidation) GetAuthor ¶
func (m *ChallengeValidation) GetAuthor() *User
func (*ChallengeValidation) GetAuthorComment ¶
func (m *ChallengeValidation) GetAuthorComment() string
func (*ChallengeValidation) GetAuthorID ¶
func (m *ChallengeValidation) GetAuthorID() int64
func (*ChallengeValidation) GetChallengeSubscription ¶
func (m *ChallengeValidation) GetChallengeSubscription() *ChallengeSubscription
func (*ChallengeValidation) GetChallengeSubscriptionID ¶
func (m *ChallengeValidation) GetChallengeSubscriptionID() int64
func (*ChallengeValidation) GetCorrectorComment ¶
func (m *ChallengeValidation) GetCorrectorComment() string
func (*ChallengeValidation) GetCreatedAt ¶
func (m *ChallengeValidation) GetCreatedAt() *time.Time
func (*ChallengeValidation) GetID ¶
func (m *ChallengeValidation) GetID() int64
func (*ChallengeValidation) GetPassphrases ¶
func (m *ChallengeValidation) GetPassphrases() string
func (*ChallengeValidation) GetSlug ¶
func (m *ChallengeValidation) GetSlug() string
func (*ChallengeValidation) GetStatus ¶
func (m *ChallengeValidation) GetStatus() ChallengeValidation_Status
func (*ChallengeValidation) GetTeam ¶
func (m *ChallengeValidation) GetTeam() *Team
func (*ChallengeValidation) GetTeamID ¶
func (m *ChallengeValidation) GetTeamID() int64
func (*ChallengeValidation) GetUpdatedAt ¶
func (m *ChallengeValidation) GetUpdatedAt() *time.Time
func (*ChallengeValidation) Marshal ¶
func (m *ChallengeValidation) Marshal() (dAtA []byte, err error)
func (*ChallengeValidation) MarshalTo ¶
func (m *ChallengeValidation) MarshalTo(dAtA []byte) (int, error)
func (*ChallengeValidation) MarshalToSizedBuffer ¶
func (m *ChallengeValidation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ChallengeValidation) ProtoMessage ¶
func (*ChallengeValidation) ProtoMessage()
func (*ChallengeValidation) Reset ¶
func (m *ChallengeValidation) Reset()
func (*ChallengeValidation) Size ¶
func (m *ChallengeValidation) Size() (n int)
func (*ChallengeValidation) String ¶
func (m *ChallengeValidation) String() string
func (*ChallengeValidation) Unmarshal ¶
func (m *ChallengeValidation) Unmarshal(dAtA []byte) error
func (*ChallengeValidation) XXX_DiscardUnknown ¶
func (m *ChallengeValidation) XXX_DiscardUnknown()
func (*ChallengeValidation) XXX_Marshal ¶
func (m *ChallengeValidation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChallengeValidation) XXX_Merge ¶
func (m *ChallengeValidation) XXX_Merge(src proto.Message)
func (*ChallengeValidation) XXX_Size ¶
func (m *ChallengeValidation) XXX_Size() int
func (*ChallengeValidation) XXX_Unmarshal ¶
func (m *ChallengeValidation) XXX_Unmarshal(b []byte) error
type ChallengeValidation_Status ¶
type ChallengeValidation_Status int32
const ( ChallengeValidation_Unknown ChallengeValidation_Status = 0 ChallengeValidation_NeedReview ChallengeValidation_Status = 1 ChallengeValidation_Accepted ChallengeValidation_Status = 2 ChallengeValidation_Refused ChallengeValidation_Status = 3 ChallengeValidation_AutoAccepted ChallengeValidation_Status = 4 )
func (ChallengeValidation_Status) EnumDescriptor ¶
func (ChallengeValidation_Status) EnumDescriptor() ([]byte, []int)
func (ChallengeValidation_Status) String ¶
func (x ChallengeValidation_Status) String() string
type Coupon ¶
type Coupon struct { ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` CreatedAt *time.Time `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at,omitempty"` UpdatedAt *time.Time `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at,omitempty"` Hash string `protobuf:"bytes,100,opt,name=hash,proto3" json:"hash,omitempty" gorm:"unique_index"` Value int64 `protobuf:"varint,101,opt,name=value,proto3" json:"value,omitempty"` MaxValidationCount int64 `protobuf:"varint,102,opt,name=max_validation_count,json=maxValidationCount,proto3" json:"max_validation_count,omitempty"` Season *Season `protobuf:"bytes,200,opt,name=season,proto3" json:"season,omitempty" gorm:"foreignkey:SeasonID"` SeasonID int64 `protobuf:"varint,201,opt,name=season_id,json=seasonId,proto3" json:"season_id,omitempty" gorm:"index"` Validations []*CouponValidation `protobuf:"bytes,202,rep,name=validations,proto3" json:"validations,omitempty" gorm:"PRELOAD:false"` }
func (*Coupon) Descriptor ¶
func (*Coupon) GetCreatedAt ¶
func (*Coupon) GetMaxValidationCount ¶
func (*Coupon) GetSeasonID ¶
func (*Coupon) GetUpdatedAt ¶
func (*Coupon) GetValidations ¶
func (m *Coupon) GetValidations() []*CouponValidation
func (*Coupon) MarshalToSizedBuffer ¶
func (*Coupon) ProtoMessage ¶
func (*Coupon) ProtoMessage()
func (*Coupon) XXX_DiscardUnknown ¶
func (m *Coupon) XXX_DiscardUnknown()
func (*Coupon) XXX_Marshal ¶
func (*Coupon) XXX_Unmarshal ¶
type CouponValidation ¶
type CouponValidation struct { ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` CreatedAt *time.Time `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at,omitempty"` UpdatedAt *time.Time `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at,omitempty"` Comment string `protobuf:"bytes,100,opt,name=comment,proto3" json:"comment,omitempty"` Author *User `protobuf:"bytes,200,opt,name=author,proto3" json:"author,omitempty" gorm:"foreignkey:AuthorID"` AuthorID int64 `protobuf:"varint,201,opt,name=author_id,json=authorId,proto3" json:"author_id,omitempty" sql:"not null" gorm:"index"` Team *Team `protobuf:"bytes,202,opt,name=team,proto3" json:"team,omitempty" gorm:"foreignkey:TeamID"` TeamID int64 `protobuf:"varint,203,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty" sql:"not null" gorm:"index"` Coupon *Coupon `protobuf:"bytes,204,opt,name=coupon,proto3" json:"coupon,omitempty" gorm:"foreignkey:CouponID"` CouponID int64 `protobuf:"varint,205,opt,name=coupon_id,json=couponId,proto3" json:"coupon_id,omitempty" sql:"not null" gorm:"index"` }
func (*CouponValidation) Descriptor ¶
func (*CouponValidation) Descriptor() ([]byte, []int)
func (*CouponValidation) GetAuthor ¶
func (m *CouponValidation) GetAuthor() *User
func (*CouponValidation) GetAuthorID ¶
func (m *CouponValidation) GetAuthorID() int64
func (*CouponValidation) GetComment ¶
func (m *CouponValidation) GetComment() string
func (*CouponValidation) GetCoupon ¶
func (m *CouponValidation) GetCoupon() *Coupon
func (*CouponValidation) GetCouponID ¶
func (m *CouponValidation) GetCouponID() int64
func (*CouponValidation) GetCreatedAt ¶
func (m *CouponValidation) GetCreatedAt() *time.Time
func (*CouponValidation) GetID ¶
func (m *CouponValidation) GetID() int64
func (*CouponValidation) GetTeam ¶
func (m *CouponValidation) GetTeam() *Team
func (*CouponValidation) GetTeamID ¶
func (m *CouponValidation) GetTeamID() int64
func (*CouponValidation) GetUpdatedAt ¶
func (m *CouponValidation) GetUpdatedAt() *time.Time
func (*CouponValidation) Marshal ¶
func (m *CouponValidation) Marshal() (dAtA []byte, err error)
func (*CouponValidation) MarshalToSizedBuffer ¶
func (m *CouponValidation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CouponValidation) ProtoMessage ¶
func (*CouponValidation) ProtoMessage()
func (*CouponValidation) Reset ¶
func (m *CouponValidation) Reset()
func (*CouponValidation) Size ¶
func (m *CouponValidation) Size() (n int)
func (*CouponValidation) String ¶
func (m *CouponValidation) String() string
func (*CouponValidation) Unmarshal ¶
func (m *CouponValidation) Unmarshal(dAtA []byte) error
func (*CouponValidation) XXX_DiscardUnknown ¶
func (m *CouponValidation) XXX_DiscardUnknown()
func (*CouponValidation) XXX_Marshal ¶
func (m *CouponValidation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CouponValidation) XXX_Merge ¶
func (m *CouponValidation) XXX_Merge(src proto.Message)
func (*CouponValidation) XXX_Size ¶
func (m *CouponValidation) XXX_Size() int
func (*CouponValidation) XXX_Unmarshal ¶
func (m *CouponValidation) XXX_Unmarshal(b []byte) error
type DeletionStatus ¶
type DeletionStatus int32
const ( DeletionStatus_Unknown DeletionStatus = 0 DeletionStatus_Active DeletionStatus = 1 DeletionStatus_Requested DeletionStatus = 2 DeletionStatus_Anonymized DeletionStatus = 3 )
func (DeletionStatus) EnumDescriptor ¶
func (DeletionStatus) EnumDescriptor() ([]byte, []int)
func (DeletionStatus) String ¶
func (x DeletionStatus) String() string
type Dump ¶
type Dump struct { Achievements []*Achievement `protobuf:"bytes,1,rep,name=achievements,proto3" json:"achievements,omitempty"` Challenges []*Challenge `protobuf:"bytes,2,rep,name=challenges,proto3" json:"challenges,omitempty"` ChallengeFlavors []*ChallengeFlavor `protobuf:"bytes,3,rep,name=challenge_flavors,json=challengeFlavors,proto3" json:"challenge_flavors,omitempty"` ChallengeInstances []*ChallengeInstance `protobuf:"bytes,4,rep,name=challenge_instances,json=challengeInstances,proto3" json:"challenge_instances,omitempty"` ChallengeSubscriptions []*ChallengeSubscription `` /* 127-byte string literal not displayed */ ChallengeValidations []*ChallengeValidation `protobuf:"bytes,6,rep,name=challenge_validations,json=challengeValidations,proto3" json:"challenge_validations,omitempty"` Coupons []*Coupon `protobuf:"bytes,7,rep,name=coupons,proto3" json:"coupons,omitempty"` CouponValidations []*CouponValidation `protobuf:"bytes,8,rep,name=coupon_validations,json=couponValidations,proto3" json:"coupon_validations,omitempty"` Agents []*Agent `protobuf:"bytes,9,rep,name=agents,proto3" json:"agents,omitempty"` InventoryItems []*InventoryItem `protobuf:"bytes,10,rep,name=inventory_items,json=inventoryItems,proto3" json:"inventory_items,omitempty"` Notifications []*Notification `protobuf:"bytes,11,rep,name=notifications,proto3" json:"notifications,omitempty"` Organizations []*Organization `protobuf:"bytes,12,rep,name=organizations,proto3" json:"organizations,omitempty"` OrganizationMembers []*OrganizationMember `protobuf:"bytes,13,rep,name=organization_members,json=organizationMembers,proto3" json:"organization_members,omitempty"` Seasons []*Season `protobuf:"bytes,14,rep,name=seasons,proto3" json:"seasons,omitempty"` SeasonChallenges []*SeasonChallenge `protobuf:"bytes,15,rep,name=season_challenges,json=seasonChallenges,proto3" json:"season_challenges,omitempty"` Teams []*Team `protobuf:"bytes,16,rep,name=teams,proto3" json:"teams,omitempty"` TeamMembers []*TeamMember `protobuf:"bytes,17,rep,name=team_members,json=teamMembers,proto3" json:"team_members,omitempty"` Users []*User `protobuf:"bytes,18,rep,name=users,proto3" json:"users,omitempty"` WhoswhoAttempts []*WhoswhoAttempt `protobuf:"bytes,19,rep,name=whoswho_attempts,json=whoswhoAttempts,proto3" json:"whoswho_attempts,omitempty"` }
func (*Dump) Descriptor ¶
func (*Dump) GetAchievements ¶
func (m *Dump) GetAchievements() []*Achievement
func (*Dump) GetChallengeFlavors ¶
func (m *Dump) GetChallengeFlavors() []*ChallengeFlavor
func (*Dump) GetChallengeInstances ¶
func (m *Dump) GetChallengeInstances() []*ChallengeInstance
func (*Dump) GetChallengeSubscriptions ¶
func (m *Dump) GetChallengeSubscriptions() []*ChallengeSubscription
func (*Dump) GetChallengeValidations ¶
func (m *Dump) GetChallengeValidations() []*ChallengeValidation
func (*Dump) GetChallenges ¶
func (*Dump) GetCouponValidations ¶
func (m *Dump) GetCouponValidations() []*CouponValidation
func (*Dump) GetCoupons ¶
func (*Dump) GetInventoryItems ¶
func (m *Dump) GetInventoryItems() []*InventoryItem
func (*Dump) GetNotifications ¶
func (m *Dump) GetNotifications() []*Notification
func (*Dump) GetOrganizationMembers ¶
func (m *Dump) GetOrganizationMembers() []*OrganizationMember
func (*Dump) GetOrganizations ¶
func (m *Dump) GetOrganizations() []*Organization
func (*Dump) GetSeasonChallenges ¶
func (m *Dump) GetSeasonChallenges() []*SeasonChallenge
func (*Dump) GetSeasons ¶
func (*Dump) GetTeamMembers ¶
func (m *Dump) GetTeamMembers() []*TeamMember
func (*Dump) GetWhoswhoAttempts ¶
func (m *Dump) GetWhoswhoAttempts() []*WhoswhoAttempt
func (*Dump) ProtoMessage ¶
func (*Dump) ProtoMessage()
func (*Dump) XXX_DiscardUnknown ¶
func (m *Dump) XXX_DiscardUnknown()
func (*Dump) XXX_Unmarshal ¶
type Info ¶
func (*Info) Descriptor ¶
func (*Info) GetTableRows ¶
func (*Info) ProtoMessage ¶
func (*Info) ProtoMessage()
func (*Info) XXX_DiscardUnknown ¶
func (m *Info) XXX_DiscardUnknown()
func (*Info) XXX_Unmarshal ¶
type InventoryItem ¶
type InventoryItem struct { ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` CreatedAt *time.Time `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at,omitempty"` UpdatedAt *time.Time `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at,omitempty"` Item InventoryItem_Item `protobuf:"varint,100,opt,name=item,proto3,enum=pathwar.db.InventoryItem_Item" json:"item,omitempty"` Slug string `protobuf:"bytes,101,opt,name=slug,proto3" json:"slug,omitempty"` Owner *TeamMember `protobuf:"bytes,200,opt,name=owner,proto3" json:"owner,omitempty" gorm:"foreignkey:OwnerID"` OwnerID int64 `protobuf:"varint,201,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty" sql:"not null" gorm:"index"` }
func (*InventoryItem) Descriptor ¶
func (*InventoryItem) Descriptor() ([]byte, []int)
func (*InventoryItem) GetCreatedAt ¶
func (m *InventoryItem) GetCreatedAt() *time.Time
func (*InventoryItem) GetID ¶
func (m *InventoryItem) GetID() int64
func (*InventoryItem) GetItem ¶
func (m *InventoryItem) GetItem() InventoryItem_Item
func (*InventoryItem) GetOwner ¶
func (m *InventoryItem) GetOwner() *TeamMember
func (*InventoryItem) GetOwnerID ¶
func (m *InventoryItem) GetOwnerID() int64
func (*InventoryItem) GetSlug ¶
func (m *InventoryItem) GetSlug() string
func (*InventoryItem) GetUpdatedAt ¶
func (m *InventoryItem) GetUpdatedAt() *time.Time
func (*InventoryItem) Marshal ¶
func (m *InventoryItem) Marshal() (dAtA []byte, err error)
func (*InventoryItem) MarshalToSizedBuffer ¶
func (m *InventoryItem) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*InventoryItem) ProtoMessage ¶
func (*InventoryItem) ProtoMessage()
func (*InventoryItem) Reset ¶
func (m *InventoryItem) Reset()
func (*InventoryItem) Size ¶
func (m *InventoryItem) Size() (n int)
func (*InventoryItem) String ¶
func (m *InventoryItem) String() string
func (*InventoryItem) Unmarshal ¶
func (m *InventoryItem) Unmarshal(dAtA []byte) error
func (*InventoryItem) XXX_DiscardUnknown ¶
func (m *InventoryItem) XXX_DiscardUnknown()
func (*InventoryItem) XXX_Marshal ¶
func (m *InventoryItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InventoryItem) XXX_Merge ¶
func (m *InventoryItem) XXX_Merge(src proto.Message)
func (*InventoryItem) XXX_Size ¶
func (m *InventoryItem) XXX_Size() int
func (*InventoryItem) XXX_Unmarshal ¶
func (m *InventoryItem) XXX_Unmarshal(b []byte) error
type InventoryItem_Item ¶
type InventoryItem_Item int32
const (
InventoryItem_Unknown InventoryItem_Item = 0
)
func (InventoryItem_Item) EnumDescriptor ¶
func (InventoryItem_Item) EnumDescriptor() ([]byte, []int)
func (InventoryItem_Item) String ¶
func (x InventoryItem_Item) String() string
type Notification ¶
type Notification struct { ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` CreatedAt *time.Time `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at,omitempty"` UpdatedAt *time.Time `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at,omitempty"` ReadAt *time.Time `protobuf:"bytes,100,opt,name=read_at,json=readAt,proto3,stdtime" json:"read_at,omitempty"` ClickURL string `protobuf:"bytes,101,opt,name=click_url,json=clickUrl,proto3" json:"click_url,omitempty"` Msg string `protobuf:"bytes,102,opt,name=msg,proto3" json:"msg,omitempty"` Args string `protobuf:"bytes,103,opt,name=args,proto3" json:"args,omitempty"` User *User `protobuf:"bytes,200,opt,name=user,proto3" json:"user,omitempty" gorm:"foreignkey:UserID"` UserID int64 `protobuf:"varint,201,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" sql:"not null" gorm:"index"` }
func (*Notification) Descriptor ¶
func (*Notification) Descriptor() ([]byte, []int)
func (*Notification) GetArgs ¶
func (m *Notification) GetArgs() string
func (*Notification) GetClickURL ¶
func (m *Notification) GetClickURL() string
func (*Notification) GetCreatedAt ¶
func (m *Notification) GetCreatedAt() *time.Time
func (*Notification) GetID ¶
func (m *Notification) GetID() int64
func (*Notification) GetMsg ¶
func (m *Notification) GetMsg() string
func (*Notification) GetReadAt ¶
func (m *Notification) GetReadAt() *time.Time
func (*Notification) GetUpdatedAt ¶
func (m *Notification) GetUpdatedAt() *time.Time
func (*Notification) GetUser ¶
func (m *Notification) GetUser() *User
func (*Notification) GetUserID ¶
func (m *Notification) GetUserID() int64
func (*Notification) Marshal ¶
func (m *Notification) Marshal() (dAtA []byte, err error)
func (*Notification) MarshalToSizedBuffer ¶
func (m *Notification) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Notification) ProtoMessage ¶
func (*Notification) ProtoMessage()
func (*Notification) Reset ¶
func (m *Notification) Reset()
func (*Notification) Size ¶
func (m *Notification) Size() (n int)
func (*Notification) String ¶
func (m *Notification) String() string
func (*Notification) Unmarshal ¶
func (m *Notification) Unmarshal(dAtA []byte) error
func (*Notification) XXX_DiscardUnknown ¶
func (m *Notification) XXX_DiscardUnknown()
func (*Notification) XXX_Marshal ¶
func (m *Notification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Notification) XXX_Merge ¶
func (m *Notification) XXX_Merge(src proto.Message)
func (*Notification) XXX_Size ¶
func (m *Notification) XXX_Size() int
func (*Notification) XXX_Unmarshal ¶
func (m *Notification) XXX_Unmarshal(b []byte) error
type Organization ¶
type Organization struct { ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` CreatedAt *time.Time `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at,omitempty"` UpdatedAt *time.Time `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at,omitempty"` DeletedAt *time.Time `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,stdtime" json:"deleted_at,omitempty"` Name string `protobuf:"bytes,100,opt,name=name,proto3" json:"name,omitempty"` GravatarURL string `protobuf:"bytes,101,opt,name=gravatar_url,json=gravatarUrl,proto3" json:"gravatar_url,omitempty"` Locale string `protobuf:"bytes,102,opt,name=locale,proto3" json:"locale,omitempty"` DeletionStatus DeletionStatus `` /* 137-byte string literal not displayed */ GlobalSeason bool `protobuf:"varint,104,opt,name=global_season,json=globalSeason,proto3" json:"global_season,omitempty"` Slug string `protobuf:"bytes,105,opt,name=slug,proto3" json:"slug,omitempty"` Teams []*Team `protobuf:"bytes,200,rep,name=teams,proto3" json:"teams,omitempty" gorm:"PRELOAD:false"` ReceivedWhoswhoAttempts []*WhoswhoAttempt `` /* 155-byte string literal not displayed */ Members []*OrganizationMember `protobuf:"bytes,202,rep,name=members,proto3" json:"members,omitempty" gorm:"PRELOAD:false"` }
func (*Organization) ASCIIID ¶
func (entity *Organization) ASCIIID() string
func (*Organization) BeforeSave ¶
func (entity *Organization) BeforeSave(db *gorm.DB) error
func (*Organization) Descriptor ¶
func (*Organization) Descriptor() ([]byte, []int)
func (*Organization) GetCreatedAt ¶
func (m *Organization) GetCreatedAt() *time.Time
func (*Organization) GetDeletedAt ¶
func (m *Organization) GetDeletedAt() *time.Time
func (*Organization) GetDeletionStatus ¶
func (m *Organization) GetDeletionStatus() DeletionStatus
func (*Organization) GetGlobalSeason ¶
func (m *Organization) GetGlobalSeason() bool
func (*Organization) GetGravatarURL ¶
func (m *Organization) GetGravatarURL() string
func (*Organization) GetID ¶
func (m *Organization) GetID() int64
func (*Organization) GetLocale ¶
func (m *Organization) GetLocale() string
func (*Organization) GetMembers ¶
func (m *Organization) GetMembers() []*OrganizationMember
func (*Organization) GetName ¶
func (m *Organization) GetName() string
func (*Organization) GetReceivedWhoswhoAttempts ¶
func (m *Organization) GetReceivedWhoswhoAttempts() []*WhoswhoAttempt
func (*Organization) GetSlug ¶
func (m *Organization) GetSlug() string
func (*Organization) GetTeams ¶
func (m *Organization) GetTeams() []*Team
func (*Organization) GetUpdatedAt ¶
func (m *Organization) GetUpdatedAt() *time.Time
func (*Organization) Marshal ¶
func (m *Organization) Marshal() (dAtA []byte, err error)
func (*Organization) MarshalToSizedBuffer ¶
func (m *Organization) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Organization) ProtoMessage ¶
func (*Organization) ProtoMessage()
func (*Organization) Reset ¶
func (m *Organization) Reset()
func (*Organization) Size ¶
func (m *Organization) Size() (n int)
func (*Organization) String ¶
func (m *Organization) String() string
func (*Organization) Unmarshal ¶
func (m *Organization) Unmarshal(dAtA []byte) error
func (*Organization) XXX_DiscardUnknown ¶
func (m *Organization) XXX_DiscardUnknown()
func (*Organization) XXX_Marshal ¶
func (m *Organization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Organization) XXX_Merge ¶
func (m *Organization) XXX_Merge(src proto.Message)
func (*Organization) XXX_Size ¶
func (m *Organization) XXX_Size() int
func (*Organization) XXX_Unmarshal ¶
func (m *Organization) XXX_Unmarshal(b []byte) error
type OrganizationList ¶
type OrganizationList struct {
Items []*Organization `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
}
func (*OrganizationList) Descriptor ¶
func (*OrganizationList) Descriptor() ([]byte, []int)
func (*OrganizationList) GetItems ¶
func (m *OrganizationList) GetItems() []*Organization
func (*OrganizationList) Marshal ¶
func (m *OrganizationList) Marshal() (dAtA []byte, err error)
func (*OrganizationList) MarshalToSizedBuffer ¶
func (m *OrganizationList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*OrganizationList) ProtoMessage ¶
func (*OrganizationList) ProtoMessage()
func (*OrganizationList) Reset ¶
func (m *OrganizationList) Reset()
func (*OrganizationList) Size ¶
func (m *OrganizationList) Size() (n int)
func (*OrganizationList) String ¶
func (m *OrganizationList) String() string
func (*OrganizationList) Unmarshal ¶
func (m *OrganizationList) Unmarshal(dAtA []byte) error
func (*OrganizationList) XXX_DiscardUnknown ¶
func (m *OrganizationList) XXX_DiscardUnknown()
func (*OrganizationList) XXX_Marshal ¶
func (m *OrganizationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OrganizationList) XXX_Merge ¶
func (m *OrganizationList) XXX_Merge(src proto.Message)
func (*OrganizationList) XXX_Size ¶
func (m *OrganizationList) XXX_Size() int
func (*OrganizationList) XXX_Unmarshal ¶
func (m *OrganizationList) XXX_Unmarshal(b []byte) error
type OrganizationMember ¶
type OrganizationMember struct { ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` CreatedAt *time.Time `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at,omitempty"` UpdatedAt *time.Time `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at,omitempty"` Role OrganizationMember_Role `protobuf:"varint,100,opt,name=role,proto3,enum=pathwar.db.OrganizationMember_Role" json:"role,omitempty"` Slug string `protobuf:"bytes,101,opt,name=slug,proto3" json:"slug,omitempty"` User *User `protobuf:"bytes,200,opt,name=user,proto3" json:"user,omitempty" gorm:"foreignkey:UserID"` UserID int64 `protobuf:"varint,201,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" sql:"not null" gorm:"index"` Organization *Organization `protobuf:"bytes,202,opt,name=organization,proto3" json:"organization,omitempty" gorm:"foreignkey:OrganizationID"` OrganizationID int64 `` /* 134-byte string literal not displayed */ }
func (*OrganizationMember) BeforeSave ¶
func (entity *OrganizationMember) BeforeSave(db *gorm.DB) error
func (*OrganizationMember) Descriptor ¶
func (*OrganizationMember) Descriptor() ([]byte, []int)
func (*OrganizationMember) GetCreatedAt ¶
func (m *OrganizationMember) GetCreatedAt() *time.Time
func (*OrganizationMember) GetID ¶
func (m *OrganizationMember) GetID() int64
func (*OrganizationMember) GetOrganization ¶
func (m *OrganizationMember) GetOrganization() *Organization
func (*OrganizationMember) GetOrganizationID ¶
func (m *OrganizationMember) GetOrganizationID() int64
func (*OrganizationMember) GetRole ¶
func (m *OrganizationMember) GetRole() OrganizationMember_Role
func (*OrganizationMember) GetSlug ¶
func (m *OrganizationMember) GetSlug() string
func (*OrganizationMember) GetUpdatedAt ¶
func (m *OrganizationMember) GetUpdatedAt() *time.Time
func (*OrganizationMember) GetUser ¶
func (m *OrganizationMember) GetUser() *User
func (*OrganizationMember) GetUserID ¶
func (m *OrganizationMember) GetUserID() int64
func (*OrganizationMember) Marshal ¶
func (m *OrganizationMember) Marshal() (dAtA []byte, err error)
func (*OrganizationMember) MarshalTo ¶
func (m *OrganizationMember) MarshalTo(dAtA []byte) (int, error)
func (*OrganizationMember) MarshalToSizedBuffer ¶
func (m *OrganizationMember) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*OrganizationMember) ProtoMessage ¶
func (*OrganizationMember) ProtoMessage()
func (*OrganizationMember) Reset ¶
func (m *OrganizationMember) Reset()
func (*OrganizationMember) Size ¶
func (m *OrganizationMember) Size() (n int)
func (*OrganizationMember) String ¶
func (m *OrganizationMember) String() string
func (*OrganizationMember) Unmarshal ¶
func (m *OrganizationMember) Unmarshal(dAtA []byte) error
func (*OrganizationMember) XXX_DiscardUnknown ¶
func (m *OrganizationMember) XXX_DiscardUnknown()
func (*OrganizationMember) XXX_Marshal ¶
func (m *OrganizationMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OrganizationMember) XXX_Merge ¶
func (m *OrganizationMember) XXX_Merge(src proto.Message)
func (*OrganizationMember) XXX_Size ¶
func (m *OrganizationMember) XXX_Size() int
func (*OrganizationMember) XXX_Unmarshal ¶
func (m *OrganizationMember) XXX_Unmarshal(b []byte) error
type OrganizationMember_Role ¶
type OrganizationMember_Role int32
const ( OrganizationMember_Undefined OrganizationMember_Role = 0 OrganizationMember_Owner OrganizationMember_Role = 1 OrganizationMember_Member OrganizationMember_Role = 2 )
func (OrganizationMember_Role) EnumDescriptor ¶
func (OrganizationMember_Role) EnumDescriptor() ([]byte, []int)
func (OrganizationMember_Role) String ¶
func (x OrganizationMember_Role) String() string
type Season ¶
type Season struct { ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` CreatedAt *time.Time `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at,omitempty"` UpdatedAt *time.Time `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at,omitempty"` Name string `protobuf:"bytes,100,opt,name=name,proto3" json:"name,omitempty"` Status Season_Status `protobuf:"varint,101,opt,name=status,proto3,enum=pathwar.db.Season_Status" json:"status,omitempty"` Visibility Season_Visibility `protobuf:"varint,102,opt,name=visibility,proto3,enum=pathwar.db.Season_Visibility" json:"visibility,omitempty"` Subscription Season_Subscription `protobuf:"varint,103,opt,name=subscription,proto3,enum=pathwar.db.Season_Subscription" json:"subscription,omitempty"` IsGlobal bool `protobuf:"varint,104,opt,name=is_global,json=isGlobal,proto3" json:"is_global,omitempty"` Slug string `protobuf:"bytes,105,opt,name=slug,proto3" json:"slug,omitempty"` IsTesting bool `protobuf:"varint,106,opt,name=is_testing,json=isTesting,proto3" json:"is_testing,omitempty"` Teams []*Team `protobuf:"bytes,200,rep,name=teams,proto3" json:"teams,omitempty" gorm:"PRELOAD:false"` Coupons []*Coupon `protobuf:"bytes,201,rep,name=coupons,proto3" json:"coupons,omitempty" gorm:"PRELOAD:false"` }
func (*Season) Descriptor ¶
func (*Season) GetCoupons ¶
func (*Season) GetCreatedAt ¶
func (*Season) GetIsGlobal ¶
func (*Season) GetIsTesting ¶
func (*Season) GetStatus ¶
func (m *Season) GetStatus() Season_Status
func (*Season) GetSubscription ¶
func (m *Season) GetSubscription() Season_Subscription
func (*Season) GetUpdatedAt ¶
func (*Season) GetVisibility ¶
func (m *Season) GetVisibility() Season_Visibility
func (*Season) MarshalToSizedBuffer ¶
func (*Season) ProtoMessage ¶
func (*Season) ProtoMessage()
func (*Season) XXX_DiscardUnknown ¶
func (m *Season) XXX_DiscardUnknown()
func (*Season) XXX_Marshal ¶
func (*Season) XXX_Unmarshal ¶
type SeasonChallenge ¶
type SeasonChallenge struct { ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` CreatedAt *time.Time `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at,omitempty"` UpdatedAt *time.Time `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at,omitempty"` Slug string `protobuf:"bytes,100,opt,name=slug,proto3" json:"slug,omitempty"` Flavor *ChallengeFlavor `protobuf:"bytes,200,opt,name=flavor,proto3" json:"flavor,omitempty" gorm:"foreignkey:FlavorID"` FlavorID int64 `` /* 163-byte string literal not displayed */ Season *Season `protobuf:"bytes,202,opt,name=season,proto3" json:"season,omitempty" gorm:"foreignkey:SeasonID"` SeasonID int64 `` /* 163-byte string literal not displayed */ Subscriptions []*ChallengeSubscription `protobuf:"bytes,204,rep,name=subscriptions,proto3" json:"subscriptions,omitempty" gorm:"PRELOAD:false"` }
func (*SeasonChallenge) ASCIIID ¶
func (entity *SeasonChallenge) ASCIIID() string
func (*SeasonChallenge) BeforeSave ¶
func (entity *SeasonChallenge) BeforeSave(db *gorm.DB) error
func (*SeasonChallenge) Descriptor ¶
func (*SeasonChallenge) Descriptor() ([]byte, []int)
func (*SeasonChallenge) GetActiveSubscriptions ¶
func (m *SeasonChallenge) GetActiveSubscriptions() []*ChallengeSubscription
func (*SeasonChallenge) GetCreatedAt ¶
func (m *SeasonChallenge) GetCreatedAt() *time.Time
func (*SeasonChallenge) GetFlavor ¶
func (m *SeasonChallenge) GetFlavor() *ChallengeFlavor
func (*SeasonChallenge) GetFlavorID ¶
func (m *SeasonChallenge) GetFlavorID() int64
func (*SeasonChallenge) GetID ¶
func (m *SeasonChallenge) GetID() int64
func (*SeasonChallenge) GetSeason ¶
func (m *SeasonChallenge) GetSeason() *Season
func (*SeasonChallenge) GetSeasonID ¶
func (m *SeasonChallenge) GetSeasonID() int64
func (*SeasonChallenge) GetSlug ¶
func (m *SeasonChallenge) GetSlug() string
func (*SeasonChallenge) GetSubscriptions ¶
func (m *SeasonChallenge) GetSubscriptions() []*ChallengeSubscription
func (*SeasonChallenge) GetUpdatedAt ¶
func (m *SeasonChallenge) GetUpdatedAt() *time.Time
func (*SeasonChallenge) Marshal ¶
func (m *SeasonChallenge) Marshal() (dAtA []byte, err error)
func (*SeasonChallenge) MarshalToSizedBuffer ¶
func (m *SeasonChallenge) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SeasonChallenge) ProtoMessage ¶
func (*SeasonChallenge) ProtoMessage()
func (*SeasonChallenge) Reset ¶
func (m *SeasonChallenge) Reset()
func (*SeasonChallenge) Size ¶
func (m *SeasonChallenge) Size() (n int)
func (*SeasonChallenge) String ¶
func (m *SeasonChallenge) String() string
func (*SeasonChallenge) Unmarshal ¶
func (m *SeasonChallenge) Unmarshal(dAtA []byte) error
func (*SeasonChallenge) XXX_DiscardUnknown ¶
func (m *SeasonChallenge) XXX_DiscardUnknown()
func (*SeasonChallenge) XXX_Marshal ¶
func (m *SeasonChallenge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SeasonChallenge) XXX_Merge ¶
func (m *SeasonChallenge) XXX_Merge(src proto.Message)
func (*SeasonChallenge) XXX_Size ¶
func (m *SeasonChallenge) XXX_Size() int
func (*SeasonChallenge) XXX_Unmarshal ¶
func (m *SeasonChallenge) XXX_Unmarshal(b []byte) error
type SeasonChallengeList ¶
type SeasonChallengeList struct {
Items []*SeasonChallenge `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
}
func (*SeasonChallengeList) Descriptor ¶
func (*SeasonChallengeList) Descriptor() ([]byte, []int)
func (*SeasonChallengeList) GetItems ¶
func (m *SeasonChallengeList) GetItems() []*SeasonChallenge
func (*SeasonChallengeList) Marshal ¶
func (m *SeasonChallengeList) Marshal() (dAtA []byte, err error)
func (*SeasonChallengeList) MarshalTo ¶
func (m *SeasonChallengeList) MarshalTo(dAtA []byte) (int, error)
func (*SeasonChallengeList) MarshalToSizedBuffer ¶
func (m *SeasonChallengeList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SeasonChallengeList) ProtoMessage ¶
func (*SeasonChallengeList) ProtoMessage()
func (*SeasonChallengeList) Reset ¶
func (m *SeasonChallengeList) Reset()
func (*SeasonChallengeList) Size ¶
func (m *SeasonChallengeList) Size() (n int)
func (*SeasonChallengeList) String ¶
func (m *SeasonChallengeList) String() string
func (*SeasonChallengeList) Unmarshal ¶
func (m *SeasonChallengeList) Unmarshal(dAtA []byte) error
func (*SeasonChallengeList) XXX_DiscardUnknown ¶
func (m *SeasonChallengeList) XXX_DiscardUnknown()
func (*SeasonChallengeList) XXX_Marshal ¶
func (m *SeasonChallengeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SeasonChallengeList) XXX_Merge ¶
func (m *SeasonChallengeList) XXX_Merge(src proto.Message)
func (*SeasonChallengeList) XXX_Size ¶
func (m *SeasonChallengeList) XXX_Size() int
func (*SeasonChallengeList) XXX_Unmarshal ¶
func (m *SeasonChallengeList) XXX_Unmarshal(b []byte) error
type SeasonList ¶
type SeasonList struct {
Items []*Season `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
}
func (*SeasonList) Descriptor ¶
func (*SeasonList) Descriptor() ([]byte, []int)
func (*SeasonList) GetItems ¶
func (m *SeasonList) GetItems() []*Season
func (*SeasonList) Marshal ¶
func (m *SeasonList) Marshal() (dAtA []byte, err error)
func (*SeasonList) MarshalToSizedBuffer ¶
func (m *SeasonList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SeasonList) ProtoMessage ¶
func (*SeasonList) ProtoMessage()
func (*SeasonList) Reset ¶
func (m *SeasonList) Reset()
func (*SeasonList) Size ¶
func (m *SeasonList) Size() (n int)
func (*SeasonList) String ¶
func (m *SeasonList) String() string
func (*SeasonList) Unmarshal ¶
func (m *SeasonList) Unmarshal(dAtA []byte) error
func (*SeasonList) XXX_DiscardUnknown ¶
func (m *SeasonList) XXX_DiscardUnknown()
func (*SeasonList) XXX_Marshal ¶
func (m *SeasonList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SeasonList) XXX_Merge ¶
func (m *SeasonList) XXX_Merge(src proto.Message)
func (*SeasonList) XXX_Size ¶
func (m *SeasonList) XXX_Size() int
func (*SeasonList) XXX_Unmarshal ¶
func (m *SeasonList) XXX_Unmarshal(b []byte) error
type Season_Status ¶
type Season_Status int32
const ( Season_UnknownStatus Season_Status = 0 Season_Started Season_Status = 1 Season_Stopped Season_Status = 2 )
func (Season_Status) EnumDescriptor ¶
func (Season_Status) EnumDescriptor() ([]byte, []int)
func (Season_Status) String ¶
func (x Season_Status) String() string
type Season_Subscription ¶
type Season_Subscription int32
const ( Season_UnknownSubscription Season_Subscription = 0 Season_Open Season_Subscription = 1 Season_Close Season_Subscription = 2 )
func (Season_Subscription) EnumDescriptor ¶
func (Season_Subscription) EnumDescriptor() ([]byte, []int)
func (Season_Subscription) String ¶
func (x Season_Subscription) String() string
type Season_Visibility ¶
type Season_Visibility int32
const ( Season_UnknownVisibility Season_Visibility = 0 Season_Private Season_Visibility = 1 Season_Unlisted Season_Visibility = 2 Season_Public Season_Visibility = 3 )
func (Season_Visibility) EnumDescriptor ¶
func (Season_Visibility) EnumDescriptor() ([]byte, []int)
func (Season_Visibility) String ¶
func (x Season_Visibility) String() string
type Team ¶
type Team struct { ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` CreatedAt *time.Time `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at,omitempty"` UpdatedAt *time.Time `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at,omitempty"` DeletedAt *time.Time `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,stdtime" json:"deleted_at,omitempty"` IsGlobal bool `protobuf:"varint,100,opt,name=is_global,json=isGlobal,proto3" json:"is_global,omitempty"` DeletionStatus DeletionStatus `` /* 137-byte string literal not displayed */ Cash int64 `protobuf:"varint,102,opt,name=cash,proto3" json:"cash,omitempty"` Score int64 `protobuf:"varint,103,opt,name=score,proto3" json:"score,omitempty"` GoldMedals int64 `protobuf:"varint,104,opt,name=gold_medals,json=goldMedals,proto3" json:"gold_medals,omitempty"` SilverMedals int64 `protobuf:"varint,105,opt,name=silver_medals,json=silverMedals,proto3" json:"silver_medals,omitempty"` BronzeMedals int64 `protobuf:"varint,106,opt,name=bronze_medals,json=bronzeMedals,proto3" json:"bronze_medals,omitempty"` NbAchievements int64 `protobuf:"varint,107,opt,name=nb_achievements,json=nbAchievements,proto3" json:"nb_achievements,omitempty"` Slug string `protobuf:"bytes,108,opt,name=slug,proto3" json:"slug,omitempty"` Season *Season `protobuf:"bytes,200,opt,name=season,proto3" json:"season,omitempty" gorm:"foreignkey:SeasonID"` SeasonID int64 `` /* 158-byte string literal not displayed */ Organization *Organization `protobuf:"bytes,202,opt,name=organization,proto3" json:"organization,omitempty" gorm:"foreignkey:OrganizationID"` OrganizationID int64 `` /* 176-byte string literal not displayed */ ChallengeSubscriptions []*ChallengeSubscription `` /* 150-byte string literal not displayed */ Members []*TeamMember `protobuf:"bytes,206,rep,name=members,proto3" json:"members,omitempty" gorm:"PRELOAD:false"` Achievements []*Achievement `protobuf:"bytes,207,rep,name=achievements,proto3" json:"achievements,omitempty" gorm:"PRELOAD:false"` }
func (*Team) Descriptor ¶
func (*Team) GetAchievements ¶
func (m *Team) GetAchievements() []*Achievement
func (*Team) GetBronzeMedals ¶
func (*Team) GetChallengeSubscriptions ¶
func (m *Team) GetChallengeSubscriptions() []*ChallengeSubscription
func (*Team) GetCreatedAt ¶
func (*Team) GetDeletedAt ¶
func (*Team) GetDeletionStatus ¶
func (m *Team) GetDeletionStatus() DeletionStatus
func (*Team) GetGoldMedals ¶
func (*Team) GetIsGlobal ¶
func (*Team) GetMembers ¶
func (m *Team) GetMembers() []*TeamMember
func (*Team) GetNbAchievements ¶
func (*Team) GetOrganization ¶
func (m *Team) GetOrganization() *Organization
func (*Team) GetOrganizationID ¶
func (*Team) GetSeasonID ¶
func (*Team) GetSilverMedals ¶
func (*Team) GetUpdatedAt ¶
func (*Team) ProtoMessage ¶
func (*Team) ProtoMessage()
func (*Team) XXX_DiscardUnknown ¶
func (m *Team) XXX_DiscardUnknown()
func (*Team) XXX_Unmarshal ¶
type TeamInvite ¶
type TeamInvite struct { ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` CreatedAt *time.Time `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at,omitempty"` UpdatedAt *time.Time `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at,omitempty"` DeletedAt *time.Time `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,stdtime" json:"deleted_at,omitempty"` User *User `protobuf:"bytes,200,opt,name=user,proto3" json:"user,omitempty" gorm:"foreignkey:UserID"` UserID int64 `protobuf:"varint,201,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" sql:"not null" gorm:"index"` Team *Team `protobuf:"bytes,202,opt,name=team,proto3" json:"team,omitempty" gorm:"foreignkey:TeamID"` TeamID int64 `protobuf:"varint,203,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty" sql:"not null" gorm:"index"` Slug string `protobuf:"bytes,204,opt,name=slug,proto3" json:"slug,omitempty"` }
func (*TeamInvite) BeforeSave ¶
func (entity *TeamInvite) BeforeSave(db *gorm.DB) error
func (*TeamInvite) Descriptor ¶
func (*TeamInvite) Descriptor() ([]byte, []int)
func (*TeamInvite) GetCreatedAt ¶
func (m *TeamInvite) GetCreatedAt() *time.Time
func (*TeamInvite) GetDeletedAt ¶
func (m *TeamInvite) GetDeletedAt() *time.Time
func (*TeamInvite) GetID ¶
func (m *TeamInvite) GetID() int64
func (*TeamInvite) GetSlug ¶
func (m *TeamInvite) GetSlug() string
func (*TeamInvite) GetTeam ¶
func (m *TeamInvite) GetTeam() *Team
func (*TeamInvite) GetTeamID ¶
func (m *TeamInvite) GetTeamID() int64
func (*TeamInvite) GetUpdatedAt ¶
func (m *TeamInvite) GetUpdatedAt() *time.Time
func (*TeamInvite) GetUser ¶
func (m *TeamInvite) GetUser() *User
func (*TeamInvite) GetUserID ¶
func (m *TeamInvite) GetUserID() int64
func (*TeamInvite) Marshal ¶
func (m *TeamInvite) Marshal() (dAtA []byte, err error)
func (*TeamInvite) MarshalToSizedBuffer ¶
func (m *TeamInvite) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TeamInvite) ProtoMessage ¶
func (*TeamInvite) ProtoMessage()
func (*TeamInvite) Reset ¶
func (m *TeamInvite) Reset()
func (*TeamInvite) Size ¶
func (m *TeamInvite) Size() (n int)
func (*TeamInvite) String ¶
func (m *TeamInvite) String() string
func (*TeamInvite) Unmarshal ¶
func (m *TeamInvite) Unmarshal(dAtA []byte) error
func (*TeamInvite) XXX_DiscardUnknown ¶
func (m *TeamInvite) XXX_DiscardUnknown()
func (*TeamInvite) XXX_Marshal ¶
func (m *TeamInvite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TeamInvite) XXX_Merge ¶
func (m *TeamInvite) XXX_Merge(src proto.Message)
func (*TeamInvite) XXX_Size ¶
func (m *TeamInvite) XXX_Size() int
func (*TeamInvite) XXX_Unmarshal ¶
func (m *TeamInvite) XXX_Unmarshal(b []byte) error
type TeamList ¶
type TeamList struct {
Items []*Team `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
}
func (*TeamList) Descriptor ¶
func (*TeamList) MarshalToSizedBuffer ¶
func (*TeamList) ProtoMessage ¶
func (*TeamList) ProtoMessage()
func (*TeamList) XXX_DiscardUnknown ¶
func (m *TeamList) XXX_DiscardUnknown()
func (*TeamList) XXX_Marshal ¶
func (*TeamList) XXX_Unmarshal ¶
type TeamMember ¶
type TeamMember struct { ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` CreatedAt *time.Time `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at,omitempty"` UpdatedAt *time.Time `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at,omitempty"` Role TeamMember_Role `protobuf:"varint,100,opt,name=role,proto3,enum=pathwar.db.TeamMember_Role" json:"role,omitempty"` Slug string `protobuf:"bytes,102,opt,name=slug,proto3" json:"slug,omitempty"` User *User `protobuf:"bytes,200,opt,name=user,proto3" json:"user,omitempty" gorm:"foreignkey:UserID"` UserID int64 `protobuf:"varint,201,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" sql:"not null" gorm:"index"` Team *Team `protobuf:"bytes,202,opt,name=team,proto3" json:"team,omitempty" gorm:"foreignkey:TeamID"` TeamID int64 `protobuf:"varint,203,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty" sql:"not null" gorm:"index"` Coupons []*Coupon `protobuf:"bytes,204,rep,name=coupons,proto3" json:"coupons,omitempty" gorm:"PRELOAD:false"` Achievements []*Achievement `protobuf:"bytes,205,rep,name=achievements,proto3" json:"achievements,omitempty" gorm:"PRELOAD:false"` SentWhoswhoAttempts []*WhoswhoAttempt `` /* 143-byte string literal not displayed */ ReceivedWhoswhoAttempts []*WhoswhoAttempt `` /* 155-byte string literal not displayed */ Items []*InventoryItem `protobuf:"bytes,208,rep,name=items,proto3" json:"items,omitempty" gorm:"PRELOAD:false"` ChallengeValidations []*ChallengeValidation `` /* 144-byte string literal not displayed */ }
func (*TeamMember) ASCIIID ¶
func (entity *TeamMember) ASCIIID() string
func (*TeamMember) BeforeSave ¶
func (entity *TeamMember) BeforeSave(db *gorm.DB) error
func (*TeamMember) Descriptor ¶
func (*TeamMember) Descriptor() ([]byte, []int)
func (*TeamMember) GetAchievements ¶
func (m *TeamMember) GetAchievements() []*Achievement
func (*TeamMember) GetChallengeValidations ¶
func (m *TeamMember) GetChallengeValidations() []*ChallengeValidation
func (*TeamMember) GetCoupons ¶
func (m *TeamMember) GetCoupons() []*Coupon
func (*TeamMember) GetCreatedAt ¶
func (m *TeamMember) GetCreatedAt() *time.Time
func (*TeamMember) GetID ¶
func (m *TeamMember) GetID() int64
func (*TeamMember) GetItems ¶
func (m *TeamMember) GetItems() []*InventoryItem
func (*TeamMember) GetReceivedWhoswhoAttempts ¶
func (m *TeamMember) GetReceivedWhoswhoAttempts() []*WhoswhoAttempt
func (*TeamMember) GetRole ¶
func (m *TeamMember) GetRole() TeamMember_Role
func (*TeamMember) GetSentWhoswhoAttempts ¶
func (m *TeamMember) GetSentWhoswhoAttempts() []*WhoswhoAttempt
func (*TeamMember) GetSlug ¶
func (m *TeamMember) GetSlug() string
func (*TeamMember) GetTeam ¶
func (m *TeamMember) GetTeam() *Team
func (*TeamMember) GetTeamID ¶
func (m *TeamMember) GetTeamID() int64
func (*TeamMember) GetUpdatedAt ¶
func (m *TeamMember) GetUpdatedAt() *time.Time
func (*TeamMember) GetUser ¶
func (m *TeamMember) GetUser() *User
func (*TeamMember) GetUserID ¶
func (m *TeamMember) GetUserID() int64
func (*TeamMember) Marshal ¶
func (m *TeamMember) Marshal() (dAtA []byte, err error)
func (*TeamMember) MarshalToSizedBuffer ¶
func (m *TeamMember) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TeamMember) ProtoMessage ¶
func (*TeamMember) ProtoMessage()
func (*TeamMember) Reset ¶
func (m *TeamMember) Reset()
func (*TeamMember) Size ¶
func (m *TeamMember) Size() (n int)
func (*TeamMember) String ¶
func (m *TeamMember) String() string
func (*TeamMember) Unmarshal ¶
func (m *TeamMember) Unmarshal(dAtA []byte) error
func (*TeamMember) XXX_DiscardUnknown ¶
func (m *TeamMember) XXX_DiscardUnknown()
func (*TeamMember) XXX_Marshal ¶
func (m *TeamMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TeamMember) XXX_Merge ¶
func (m *TeamMember) XXX_Merge(src proto.Message)
func (*TeamMember) XXX_Size ¶
func (m *TeamMember) XXX_Size() int
func (*TeamMember) XXX_Unmarshal ¶
func (m *TeamMember) XXX_Unmarshal(b []byte) error
type TeamMember_Role ¶
type TeamMember_Role int32
const ( TeamMember_Undefined TeamMember_Role = 0 TeamMember_Owner TeamMember_Role = 1 TeamMember_Member TeamMember_Role = 2 )
func (TeamMember_Role) EnumDescriptor ¶
func (TeamMember_Role) EnumDescriptor() ([]byte, []int)
func (TeamMember_Role) String ¶
func (x TeamMember_Role) String() string
type User ¶
type User struct { ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` CreatedAt *time.Time `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at,omitempty"` UpdatedAt *time.Time `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at,omitempty"` DeletedAt *time.Time `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,stdtime" json:"deleted_at,omitempty"` Username string `protobuf:"bytes,100,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,101,opt,name=email,proto3" json:"email,omitempty"` GravatarURL string `protobuf:"bytes,102,opt,name=gravatar_url,json=gravatarUrl,proto3" json:"gravatar_url,omitempty"` WebsiteURL string `protobuf:"bytes,103,opt,name=website_url,json=websiteUrl,proto3" json:"website_url,omitempty"` Locale string `protobuf:"bytes,104,opt,name=locale,proto3" json:"locale,omitempty"` OAuthSubject string `protobuf:"bytes,105,opt,name=oauth_subject,json=oauthSubject,proto3" json:"oauth_subject,omitempty" gorm:"unique_index"` DeletionReason string `protobuf:"bytes,106,opt,name=deletion_reason,json=deletionReason,proto3" json:"deletion_reason,omitempty"` DeletionStatus DeletionStatus `` /* 137-byte string literal not displayed */ Slug string `protobuf:"bytes,108,opt,name=slug,proto3" json:"slug,omitempty"` TeamMemberships []*TeamMember `` /* 129-byte string literal not displayed */ Notifications []*Notification `protobuf:"bytes,201,rep,name=notifications,proto3" json:"notifications,omitempty" gorm:"PRELOAD:false"` OrganizationMemberships []*OrganizationMember `` /* 153-byte string literal not displayed */ ActiveTeamMember *TeamMember `` /* 164-byte string literal not displayed */ ActiveTeamMemberID int64 `` /* 150-byte string literal not displayed */ ActiveSeason *Season `` /* 146-byte string literal not displayed */ ActiveSeasonID int64 `` /* 136-byte string literal not displayed */ }
User defines a User Account / Profile
func (*User) Descriptor ¶
func (*User) GetActiveSeason ¶
func (*User) GetActiveSeasonID ¶
func (*User) GetActiveTeamMember ¶
func (m *User) GetActiveTeamMember() *TeamMember
func (*User) GetActiveTeamMemberID ¶
func (*User) GetCreatedAt ¶
func (*User) GetDeletedAt ¶
func (*User) GetDeletionReason ¶
func (*User) GetDeletionStatus ¶
func (m *User) GetDeletionStatus() DeletionStatus
func (*User) GetGravatarURL ¶
func (*User) GetNotifications ¶
func (m *User) GetNotifications() []*Notification
func (*User) GetOAuthSubject ¶
func (*User) GetOrganizationMemberships ¶
func (m *User) GetOrganizationMemberships() []*OrganizationMember
func (*User) GetTeamMemberships ¶
func (m *User) GetTeamMemberships() []*TeamMember
func (*User) GetUpdatedAt ¶
func (*User) GetUsername ¶
func (*User) GetWebsiteURL ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_Unmarshal ¶
type UserList ¶
type UserList struct {
Items []*User `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
}
func (*UserList) Descriptor ¶
func (*UserList) MarshalToSizedBuffer ¶
func (*UserList) ProtoMessage ¶
func (*UserList) ProtoMessage()
func (*UserList) XXX_DiscardUnknown ¶
func (m *UserList) XXX_DiscardUnknown()
func (*UserList) XXX_Marshal ¶
func (*UserList) XXX_Unmarshal ¶
type WhoswhoAttempt ¶
type WhoswhoAttempt struct { ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` CreatedAt *time.Time `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at,omitempty"` UpdatedAt *time.Time `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at,omitempty"` Success bool `protobuf:"varint,100,opt,name=success,proto3" json:"success,omitempty"` Slug string `protobuf:"bytes,101,opt,name=slug,proto3" json:"slug,omitempty"` Author *User `protobuf:"bytes,200,opt,name=author,proto3" json:"author,omitempty" sql:"not null" gorm:"foreignkey:AuthorID"` AuthorID int64 `protobuf:"varint,201,opt,name=author_id,json=authorId,proto3" json:"author_id,omitempty" sql:"not null" gorm:"index"` AuthorTeam *Team `` /* 139-byte string literal not displayed */ AuthorTeamID int64 `` /* 130-byte string literal not displayed */ TargetUser *User `` /* 139-byte string literal not displayed */ TargetUserID int64 `` /* 130-byte string literal not displayed */ TargetTeam *Team `` /* 139-byte string literal not displayed */ TargetTeamID int64 `` /* 130-byte string literal not displayed */ }
func (*WhoswhoAttempt) Descriptor ¶
func (*WhoswhoAttempt) Descriptor() ([]byte, []int)
func (*WhoswhoAttempt) GetAuthor ¶
func (m *WhoswhoAttempt) GetAuthor() *User
func (*WhoswhoAttempt) GetAuthorID ¶
func (m *WhoswhoAttempt) GetAuthorID() int64
func (*WhoswhoAttempt) GetAuthorTeam ¶
func (m *WhoswhoAttempt) GetAuthorTeam() *Team
func (*WhoswhoAttempt) GetAuthorTeamID ¶
func (m *WhoswhoAttempt) GetAuthorTeamID() int64
func (*WhoswhoAttempt) GetCreatedAt ¶
func (m *WhoswhoAttempt) GetCreatedAt() *time.Time
func (*WhoswhoAttempt) GetID ¶
func (m *WhoswhoAttempt) GetID() int64
func (*WhoswhoAttempt) GetSlug ¶
func (m *WhoswhoAttempt) GetSlug() string
func (*WhoswhoAttempt) GetSuccess ¶
func (m *WhoswhoAttempt) GetSuccess() bool
func (*WhoswhoAttempt) GetTargetTeam ¶
func (m *WhoswhoAttempt) GetTargetTeam() *Team
func (*WhoswhoAttempt) GetTargetTeamID ¶
func (m *WhoswhoAttempt) GetTargetTeamID() int64
func (*WhoswhoAttempt) GetTargetUser ¶
func (m *WhoswhoAttempt) GetTargetUser() *User
func (*WhoswhoAttempt) GetTargetUserID ¶
func (m *WhoswhoAttempt) GetTargetUserID() int64
func (*WhoswhoAttempt) GetUpdatedAt ¶
func (m *WhoswhoAttempt) GetUpdatedAt() *time.Time
func (*WhoswhoAttempt) Marshal ¶
func (m *WhoswhoAttempt) Marshal() (dAtA []byte, err error)
func (*WhoswhoAttempt) MarshalToSizedBuffer ¶
func (m *WhoswhoAttempt) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*WhoswhoAttempt) ProtoMessage ¶
func (*WhoswhoAttempt) ProtoMessage()
func (*WhoswhoAttempt) Reset ¶
func (m *WhoswhoAttempt) Reset()
func (*WhoswhoAttempt) Size ¶
func (m *WhoswhoAttempt) Size() (n int)
func (*WhoswhoAttempt) String ¶
func (m *WhoswhoAttempt) String() string
func (*WhoswhoAttempt) Unmarshal ¶
func (m *WhoswhoAttempt) Unmarshal(dAtA []byte) error
func (*WhoswhoAttempt) XXX_DiscardUnknown ¶
func (m *WhoswhoAttempt) XXX_DiscardUnknown()
func (*WhoswhoAttempt) XXX_Marshal ¶
func (m *WhoswhoAttempt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WhoswhoAttempt) XXX_Merge ¶
func (m *WhoswhoAttempt) XXX_Merge(src proto.Message)
func (*WhoswhoAttempt) XXX_Size ¶
func (m *WhoswhoAttempt) XXX_Size() int
func (*WhoswhoAttempt) XXX_Unmarshal ¶
func (m *WhoswhoAttempt) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.