Documentation
¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type ActivityFunc
- func (s *ActivityFunc) Decode(d *jx.Decoder) error
- func (s ActivityFunc) Encode(e *jx.Encoder)
- func (s ActivityFunc) GetActivityFuncFilter() (v ActivityFuncFilter, ok bool)
- func (s ActivityFunc) GetActivityFuncMap() (v ActivityFuncMap, ok bool)
- func (s ActivityFunc) GetActivityFuncSlice() (v ActivityFuncSlice, ok bool)
- func (s ActivityFunc) GetActivityFuncSort() (v ActivityFuncSort, ok bool)
- func (s ActivityFunc) IsActivityFuncFilter() bool
- func (s ActivityFunc) IsActivityFuncMap() bool
- func (s ActivityFunc) IsActivityFuncSlice() bool
- func (s ActivityFunc) IsActivityFuncSort() bool
- func (s ActivityFunc) MarshalJSON() ([]byte, error)
- func (s *ActivityFunc) SetActivityFuncFilter(v ActivityFuncFilter)
- func (s *ActivityFunc) SetActivityFuncMap(v ActivityFuncMap)
- func (s *ActivityFunc) SetActivityFuncSlice(v ActivityFuncSlice)
- func (s *ActivityFunc) SetActivityFuncSort(v ActivityFuncSort)
- func (s *ActivityFunc) UnmarshalJSON(data []byte) error
- func (s ActivityFunc) Validate() error
- type ActivityFuncFilter
- func (s *ActivityFuncFilter) Decode(d *jx.Decoder) error
- func (s *ActivityFuncFilter) Encode(e *jx.Encoder)
- func (s *ActivityFuncFilter) GetKey() string
- func (s *ActivityFuncFilter) GetKind() ActivityFuncKind
- func (s *ActivityFuncFilter) GetOp() ActivityFuncFilterOp
- func (s *ActivityFuncFilter) GetValue() ActivityFuncFilterValue
- func (s *ActivityFuncFilter) MarshalJSON() ([]byte, error)
- func (s *ActivityFuncFilter) SetKey(val string)
- func (s *ActivityFuncFilter) SetKind(val ActivityFuncKind)
- func (s *ActivityFuncFilter) SetOp(val ActivityFuncFilterOp)
- func (s *ActivityFuncFilter) SetValue(val ActivityFuncFilterValue)
- func (s *ActivityFuncFilter) UnmarshalJSON(data []byte) error
- func (s *ActivityFuncFilter) Validate() error
- type ActivityFuncFilterOp
- func (ActivityFuncFilterOp) AllValues() []ActivityFuncFilterOp
- func (s *ActivityFuncFilterOp) Decode(d *jx.Decoder) error
- func (s ActivityFuncFilterOp) Encode(e *jx.Encoder)
- func (s ActivityFuncFilterOp) MarshalJSON() ([]byte, error)
- func (s ActivityFuncFilterOp) MarshalText() ([]byte, error)
- func (s *ActivityFuncFilterOp) UnmarshalJSON(data []byte) error
- func (s *ActivityFuncFilterOp) UnmarshalText(data []byte) error
- func (s ActivityFuncFilterOp) Validate() error
- type ActivityFuncFilterValue
- func (s *ActivityFuncFilterValue) Decode(d *jx.Decoder) error
- func (s ActivityFuncFilterValue) Encode(e *jx.Encoder)
- func (s ActivityFuncFilterValue) GetFloat64() (v float64, ok bool)
- func (s ActivityFuncFilterValue) IsFloat64() bool
- func (s ActivityFuncFilterValue) MarshalJSON() ([]byte, error)
- func (s *ActivityFuncFilterValue) SetFloat64(v float64)
- func (s *ActivityFuncFilterValue) UnmarshalJSON(data []byte) error
- func (s ActivityFuncFilterValue) Validate() error
- type ActivityFuncFilterValueType
- type ActivityFuncKind
- type ActivityFuncMap
- func (s *ActivityFuncMap) Decode(d *jx.Decoder) error
- func (s *ActivityFuncMap) Encode(e *jx.Encoder)
- func (s *ActivityFuncMap) GetFormula() string
- func (s *ActivityFuncMap) GetKey() string
- func (s *ActivityFuncMap) GetKind() ActivityFuncKind
- func (s *ActivityFuncMap) MarshalJSON() ([]byte, error)
- func (s *ActivityFuncMap) SetFormula(val string)
- func (s *ActivityFuncMap) SetKey(val string)
- func (s *ActivityFuncMap) SetKind(val ActivityFuncKind)
- func (s *ActivityFuncMap) UnmarshalJSON(data []byte) error
- func (s *ActivityFuncMap) Validate() error
- type ActivityFuncSlice
- func (s *ActivityFuncSlice) Decode(d *jx.Decoder) error
- func (s *ActivityFuncSlice) Encode(e *jx.Encoder)
- func (s *ActivityFuncSlice) GetKind() ActivityFuncKind
- func (s *ActivityFuncSlice) GetLeft() OptInt32
- func (s *ActivityFuncSlice) GetRight() int32
- func (s *ActivityFuncSlice) MarshalJSON() ([]byte, error)
- func (s *ActivityFuncSlice) SetKind(val ActivityFuncKind)
- func (s *ActivityFuncSlice) SetLeft(val OptInt32)
- func (s *ActivityFuncSlice) SetRight(val int32)
- func (s *ActivityFuncSlice) UnmarshalJSON(data []byte) error
- func (s *ActivityFuncSlice) Validate() error
- type ActivityFuncSort
- func (s *ActivityFuncSort) Decode(d *jx.Decoder) error
- func (s *ActivityFuncSort) Encode(e *jx.Encoder)
- func (s *ActivityFuncSort) GetKey() string
- func (s *ActivityFuncSort) GetKind() ActivityFuncKind
- func (s *ActivityFuncSort) GetOrdering() ActivityFuncSortOrdering
- func (s *ActivityFuncSort) MarshalJSON() ([]byte, error)
- func (s *ActivityFuncSort) SetKey(val string)
- func (s *ActivityFuncSort) SetKind(val ActivityFuncKind)
- func (s *ActivityFuncSort) SetOrdering(val ActivityFuncSortOrdering)
- func (s *ActivityFuncSort) UnmarshalJSON(data []byte) error
- func (s *ActivityFuncSort) Validate() error
- type ActivityFuncSortOrdering
- func (ActivityFuncSortOrdering) AllValues() []ActivityFuncSortOrdering
- func (s *ActivityFuncSortOrdering) Decode(d *jx.Decoder) error
- func (s ActivityFuncSortOrdering) Encode(e *jx.Encoder)
- func (s ActivityFuncSortOrdering) MarshalJSON() ([]byte, error)
- func (s ActivityFuncSortOrdering) MarshalText() ([]byte, error)
- func (s *ActivityFuncSortOrdering) UnmarshalJSON(data []byte) error
- func (s *ActivityFuncSortOrdering) UnmarshalText(data []byte) error
- func (s ActivityFuncSortOrdering) Validate() error
- type ActivityFuncType
- type ActivityFuncs
- type AdminAccessRequired
- func (s *AdminAccessRequired) Decode(d *jx.Decoder) error
- func (s *AdminAccessRequired) Encode(e *jx.Encoder)
- func (s *AdminAccessRequired) GetErrorMessage() string
- func (s *AdminAccessRequired) MarshalJSON() ([]byte, error)
- func (s *AdminAccessRequired) SetErrorMessage(val string)
- func (s *AdminAccessRequired) UnmarshalJSON(data []byte) error
- type ApplicationID
- type AwardsListOKHeaders
- type AwardsListOKItem
- func (s *AwardsListOKItem) Decode(d *jx.Decoder) error
- func (s *AwardsListOKItem) Encode(e *jx.Encoder)
- func (s *AwardsListOKItem) GetApplications() []ApplicationID
- func (s *AwardsListOKItem) GetAwardLevel() int32
- func (s *AwardsListOKItem) GetCreatedAt() time.Time
- func (s *AwardsListOKItem) GetDependencyLevel() int32
- func (s *AwardsListOKItem) GetDescription() string
- func (s *AwardsListOKItem) GetID() int32
- func (s *AwardsListOKItem) GetIconURL() string
- func (s *AwardsListOKItem) GetInstrumentID() NilInstrumentID
- func (s *AwardsListOKItem) GetName() string
- func (s *AwardsListOKItem) GetRequiredScores() float64
- func (s *AwardsListOKItem) GetTraditionID() NilTraditionID
- func (s *AwardsListOKItem) GetUpdatedAt() time.Time
- func (s *AwardsListOKItem) MarshalJSON() ([]byte, error)
- func (s *AwardsListOKItem) SetApplications(val []ApplicationID)
- func (s *AwardsListOKItem) SetAwardLevel(val int32)
- func (s *AwardsListOKItem) SetCreatedAt(val time.Time)
- func (s *AwardsListOKItem) SetDependencyLevel(val int32)
- func (s *AwardsListOKItem) SetDescription(val string)
- func (s *AwardsListOKItem) SetID(val int32)
- func (s *AwardsListOKItem) SetIconURL(val string)
- func (s *AwardsListOKItem) SetInstrumentID(val NilInstrumentID)
- func (s *AwardsListOKItem) SetName(val string)
- func (s *AwardsListOKItem) SetRequiredScores(val float64)
- func (s *AwardsListOKItem) SetTraditionID(val NilTraditionID)
- func (s *AwardsListOKItem) SetUpdatedAt(val time.Time)
- func (s *AwardsListOKItem) UnmarshalJSON(data []byte) error
- func (s *AwardsListOKItem) Validate() error
- type AwardsListOrderBy
- type AwardsListParams
- type BerlogaJWT
- type ChallengesListOKHeaders
- func (s *ChallengesListOKHeaders) GetResponse() []ChallengesListOKItem
- func (s *ChallengesListOKHeaders) GetXCount() int64
- func (s *ChallengesListOKHeaders) SetResponse(val []ChallengesListOKItem)
- func (s *ChallengesListOKHeaders) SetXCount(val int64)
- func (s *ChallengesListOKHeaders) Validate() error
- type ChallengesListOKItem
- func (s *ChallengesListOKItem) Decode(d *jx.Decoder) error
- func (s *ChallengesListOKItem) Encode(e *jx.Encoder)
- func (s *ChallengesListOKItem) GetApplications() []ApplicationID
- func (s *ChallengesListOKItem) GetDescription() string
- func (s *ChallengesListOKItem) GetID() int32
- func (s *ChallengesListOKItem) GetIconURL() string
- func (s *ChallengesListOKItem) MarshalJSON() ([]byte, error)
- func (s *ChallengesListOKItem) SetApplications(val []ApplicationID)
- func (s *ChallengesListOKItem) SetDescription(val string)
- func (s *ChallengesListOKItem) SetID(val int32)
- func (s *ChallengesListOKItem) SetIconURL(val string)
- func (s *ChallengesListOKItem) UnmarshalJSON(data []byte) error
- func (s *ChallengesListOKItem) Validate() error
- type ChallengesListParams
- type Client
- func (c *Client) AwardsList(ctx context.Context, params AwardsListParams) (*AwardsListOKHeaders, error)
- func (c *Client) ChallengesList(ctx context.Context, params ChallengesListParams) (*ChallengesListOKHeaders, error)
- func (c *Client) ComplexChallengeCreate(ctx context.Context, request *ComplexChallengeCreateReq) (ComplexChallengeCreateRes, error)
- func (c *Client) ComplexChallengeGoalCreate(ctx context.Context, request *ComplexChallengeGoalCreateReq, ...) (ComplexChallengeGoalCreateRes, error)
- func (c *Client) ComplexChallengeGoalDelete(ctx context.Context, params ComplexChallengeGoalDeleteParams) (ComplexChallengeGoalDeleteRes, error)
- func (c *Client) ComplexChallengeGoalRead(ctx context.Context, params ComplexChallengeGoalReadParams) (ComplexChallengeGoalReadRes, error)
- func (c *Client) ComplexChallengeGoalUpdate(ctx context.Context, request *ComplexChallengeGoalFields, ...) (ComplexChallengeGoalUpdateRes, error)
- func (c *Client) ComplexChallengeGoalsList(ctx context.Context, params ComplexChallengeGoalsListParams) (ComplexChallengeGoalsListRes, error)
- func (c *Client) ComplexChallengePublic(ctx context.Context, params ComplexChallengePublicParams) (ComplexChallengePublicRes, error)
- func (c *Client) ComplexChallengeRead(ctx context.Context, params ComplexChallengeReadParams) (ComplexChallengeReadRes, error)
- func (c *Client) ComplexChallengeUpdate(ctx context.Context, request *ComplexChallengeUpdateReq, ...) (ComplexChallengeUpdateRes, error)
- func (c *Client) ComplexChallengeValidate(ctx context.Context, params ComplexChallengeValidateParams) (ComplexChallengeValidateRes, error)
- func (c *Client) ComplexChallengesList(ctx context.Context, params ComplexChallengesListParams) (*ComplexChallengesListOKHeaders, error)
- func (c *Client) ComplexChallengesResultsList(ctx context.Context, params ComplexChallengesResultsListParams) (*ComplexChallengesResultsListOKHeaders, error)
- func (c *Client) FormulaParse(ctx context.Context, request *FormulaParseReq) (FormulaParseRes, error)
- func (c *Client) InstrumentCreate(ctx context.Context, request *InstrumentCreateRequest) (InstrumentCreateRes, error)
- func (c *Client) InstrumentRead(ctx context.Context, params InstrumentReadParams) (InstrumentReadRes, error)
- func (c *Client) InstrumentUpdate(ctx context.Context, request *InstrumentUpdateRequest, ...) (InstrumentUpdateRes, error)
- func (c *Client) InstrumentsList(ctx context.Context, params InstrumentsListParams) (*InstrumentsListOKHeaders, error)
- func (c *Client) PassedChallengesList(ctx context.Context, params PassedChallengesListParams) (*PassedChallengesListOKHeaders, error)
- func (c *Client) TraditionCreate(ctx context.Context, request *TraditionCreateRequest) (TraditionCreateRes, error)
- func (c *Client) TraditionInstrumentsList(ctx context.Context, params TraditionInstrumentsListParams) ([]Instrument, error)
- func (c *Client) TraditionRead(ctx context.Context, params TraditionReadParams) (TraditionReadRes, error)
- func (c *Client) TraditionUpdate(ctx context.Context, request *TraditionUpdateRequest, ...) (TraditionUpdateRes, error)
- func (c *Client) TraditionsList(ctx context.Context, params TraditionsListParams) ([]Tradition, error)
- func (c *Client) UserAwardDisplayed(ctx context.Context, params UserAwardDisplayedParams) error
- func (c *Client) UserAwardsList(ctx context.Context, params UserAwardsListParams) (*UserAwardsListOKHeaders, error)
- func (c *Client) UserProgressList(ctx context.Context, params UserProgressListParams) (*UserProgressListOKHeaders, error)
- type ClientOption
- type ComplexChallenge
- func (s *ComplexChallenge) Decode(d *jx.Decoder) error
- func (s *ComplexChallenge) Encode(e *jx.Encoder)
- func (s *ComplexChallenge) GetCreatedAt() time.Time
- func (s *ComplexChallenge) GetID() int32
- func (s *ComplexChallenge) GetName() string
- func (s *ComplexChallenge) GetPeriodFrom() NilDateTime
- func (s *ComplexChallenge) GetPeriodTo() NilDateTime
- func (s *ComplexChallenge) GetPublic() bool
- func (s *ComplexChallenge) GetRequiredScore() float64
- func (s *ComplexChallenge) GetScoreFormula() string
- func (s *ComplexChallenge) GetUpdateStrategy() ComplexChallengeUpdateStrategy
- func (s *ComplexChallenge) GetUpdatedAt() time.Time
- func (s *ComplexChallenge) MarshalJSON() ([]byte, error)
- func (s *ComplexChallenge) SetCreatedAt(val time.Time)
- func (s *ComplexChallenge) SetID(val int32)
- func (s *ComplexChallenge) SetName(val string)
- func (s *ComplexChallenge) SetPeriodFrom(val NilDateTime)
- func (s *ComplexChallenge) SetPeriodTo(val NilDateTime)
- func (s *ComplexChallenge) SetPublic(val bool)
- func (s *ComplexChallenge) SetRequiredScore(val float64)
- func (s *ComplexChallenge) SetScoreFormula(val string)
- func (s *ComplexChallenge) SetUpdateStrategy(val ComplexChallengeUpdateStrategy)
- func (s *ComplexChallenge) SetUpdatedAt(val time.Time)
- func (s *ComplexChallenge) UnmarshalJSON(data []byte) error
- func (s *ComplexChallenge) Validate() error
- type ComplexChallengeBase
- func (s *ComplexChallengeBase) Decode(d *jx.Decoder) error
- func (s *ComplexChallengeBase) Encode(e *jx.Encoder)
- func (s *ComplexChallengeBase) GetCreatedAt() time.Time
- func (s *ComplexChallengeBase) GetID() int32
- func (s *ComplexChallengeBase) GetName() string
- func (s *ComplexChallengeBase) GetPeriodFrom() NilDateTime
- func (s *ComplexChallengeBase) GetPeriodTo() NilDateTime
- func (s *ComplexChallengeBase) GetPublic() bool
- func (s *ComplexChallengeBase) GetUpdateStrategy() ComplexChallengeUpdateStrategy
- func (s *ComplexChallengeBase) GetUpdatedAt() time.Time
- func (s *ComplexChallengeBase) MarshalJSON() ([]byte, error)
- func (s *ComplexChallengeBase) SetCreatedAt(val time.Time)
- func (s *ComplexChallengeBase) SetID(val int32)
- func (s *ComplexChallengeBase) SetName(val string)
- func (s *ComplexChallengeBase) SetPeriodFrom(val NilDateTime)
- func (s *ComplexChallengeBase) SetPeriodTo(val NilDateTime)
- func (s *ComplexChallengeBase) SetPublic(val bool)
- func (s *ComplexChallengeBase) SetUpdateStrategy(val ComplexChallengeUpdateStrategy)
- func (s *ComplexChallengeBase) SetUpdatedAt(val time.Time)
- func (s *ComplexChallengeBase) UnmarshalJSON(data []byte) error
- func (s *ComplexChallengeBase) Validate() error
- type ComplexChallengeCreateReq
- func (s *ComplexChallengeCreateReq) Decode(d *jx.Decoder) error
- func (s *ComplexChallengeCreateReq) Encode(e *jx.Encoder)
- func (s *ComplexChallengeCreateReq) GetName() string
- func (s *ComplexChallengeCreateReq) MarshalJSON() ([]byte, error)
- func (s *ComplexChallengeCreateReq) SetName(val string)
- func (s *ComplexChallengeCreateReq) UnmarshalJSON(data []byte) error
- func (s *ComplexChallengeCreateReq) Validate() error
- type ComplexChallengeCreateRes
- type ComplexChallengeGoal
- func (s *ComplexChallengeGoal) Decode(d *jx.Decoder) error
- func (s *ComplexChallengeGoal) Encode(e *jx.Encoder)
- func (s *ComplexChallengeGoal) GetActivityFuncs() ActivityFuncs
- func (s *ComplexChallengeGoal) GetActivityLimit() OptNilInt32
- func (s *ComplexChallengeGoal) GetApplicationID() OptNilUUID
- func (s *ComplexChallengeGoal) GetComplexchID() int32
- func (s *ComplexChallengeGoal) GetContextIds() []uuid.UUID
- func (s *ComplexChallengeGoal) GetContextProperties() []string
- func (s *ComplexChallengeGoal) GetCreatedAt() time.Time
- func (s *ComplexChallengeGoal) GetID() int32
- func (s *ComplexChallengeGoal) GetName() string
- func (s *ComplexChallengeGoal) GetRequiredScore() float64
- func (s *ComplexChallengeGoal) GetScoreFormula() string
- func (s *ComplexChallengeGoal) GetUpdatedAt() time.Time
- func (s *ComplexChallengeGoal) GetVariableName() string
- func (s *ComplexChallengeGoal) MarshalJSON() ([]byte, error)
- func (s *ComplexChallengeGoal) SetActivityFuncs(val ActivityFuncs)
- func (s *ComplexChallengeGoal) SetActivityLimit(val OptNilInt32)
- func (s *ComplexChallengeGoal) SetApplicationID(val OptNilUUID)
- func (s *ComplexChallengeGoal) SetComplexchID(val int32)
- func (s *ComplexChallengeGoal) SetContextIds(val []uuid.UUID)
- func (s *ComplexChallengeGoal) SetContextProperties(val []string)
- func (s *ComplexChallengeGoal) SetCreatedAt(val time.Time)
- func (s *ComplexChallengeGoal) SetID(val int32)
- func (s *ComplexChallengeGoal) SetName(val string)
- func (s *ComplexChallengeGoal) SetRequiredScore(val float64)
- func (s *ComplexChallengeGoal) SetScoreFormula(val string)
- func (s *ComplexChallengeGoal) SetUpdatedAt(val time.Time)
- func (s *ComplexChallengeGoal) SetVariableName(val string)
- func (s *ComplexChallengeGoal) UnmarshalJSON(data []byte) error
- func (s *ComplexChallengeGoal) Validate() error
- type ComplexChallengeGoalCreateParams
- type ComplexChallengeGoalCreateReq
- func (s *ComplexChallengeGoalCreateReq) Decode(d *jx.Decoder) error
- func (s *ComplexChallengeGoalCreateReq) Encode(e *jx.Encoder)
- func (s *ComplexChallengeGoalCreateReq) GetActivityFuncs() ActivityFuncs
- func (s *ComplexChallengeGoalCreateReq) GetActivityLimit() OptNilInt32
- func (s *ComplexChallengeGoalCreateReq) GetApplicationID() OptNilUUID
- func (s *ComplexChallengeGoalCreateReq) GetContextIds() []uuid.UUID
- func (s *ComplexChallengeGoalCreateReq) GetContextProperties() []string
- func (s *ComplexChallengeGoalCreateReq) GetName() string
- func (s *ComplexChallengeGoalCreateReq) GetRequiredScore() OptFloat64
- func (s *ComplexChallengeGoalCreateReq) GetScoreFormula() OptString
- func (s *ComplexChallengeGoalCreateReq) GetVariableName() OptString
- func (s *ComplexChallengeGoalCreateReq) MarshalJSON() ([]byte, error)
- func (s *ComplexChallengeGoalCreateReq) SetActivityFuncs(val ActivityFuncs)
- func (s *ComplexChallengeGoalCreateReq) SetActivityLimit(val OptNilInt32)
- func (s *ComplexChallengeGoalCreateReq) SetApplicationID(val OptNilUUID)
- func (s *ComplexChallengeGoalCreateReq) SetContextIds(val []uuid.UUID)
- func (s *ComplexChallengeGoalCreateReq) SetContextProperties(val []string)
- func (s *ComplexChallengeGoalCreateReq) SetName(val string)
- func (s *ComplexChallengeGoalCreateReq) SetRequiredScore(val OptFloat64)
- func (s *ComplexChallengeGoalCreateReq) SetScoreFormula(val OptString)
- func (s *ComplexChallengeGoalCreateReq) SetVariableName(val OptString)
- func (s *ComplexChallengeGoalCreateReq) UnmarshalJSON(data []byte) error
- func (s *ComplexChallengeGoalCreateReq) Validate() error
- type ComplexChallengeGoalCreateRes
- type ComplexChallengeGoalDeleteNoContent
- type ComplexChallengeGoalDeleteParams
- type ComplexChallengeGoalDeleteRes
- type ComplexChallengeGoalFields
- func (s *ComplexChallengeGoalFields) Decode(d *jx.Decoder) error
- func (s *ComplexChallengeGoalFields) Encode(e *jx.Encoder)
- func (s *ComplexChallengeGoalFields) GetActivityFuncs() ActivityFuncs
- func (s *ComplexChallengeGoalFields) GetActivityLimit() OptNilInt32
- func (s *ComplexChallengeGoalFields) GetApplicationID() OptNilUUID
- func (s *ComplexChallengeGoalFields) GetContextIds() []uuid.UUID
- func (s *ComplexChallengeGoalFields) GetContextProperties() []string
- func (s *ComplexChallengeGoalFields) GetName() OptString
- func (s *ComplexChallengeGoalFields) GetRequiredScore() OptFloat64
- func (s *ComplexChallengeGoalFields) GetScoreFormula() OptString
- func (s *ComplexChallengeGoalFields) GetVariableName() OptString
- func (s *ComplexChallengeGoalFields) MarshalJSON() ([]byte, error)
- func (s *ComplexChallengeGoalFields) SetActivityFuncs(val ActivityFuncs)
- func (s *ComplexChallengeGoalFields) SetActivityLimit(val OptNilInt32)
- func (s *ComplexChallengeGoalFields) SetApplicationID(val OptNilUUID)
- func (s *ComplexChallengeGoalFields) SetContextIds(val []uuid.UUID)
- func (s *ComplexChallengeGoalFields) SetContextProperties(val []string)
- func (s *ComplexChallengeGoalFields) SetName(val OptString)
- func (s *ComplexChallengeGoalFields) SetRequiredScore(val OptFloat64)
- func (s *ComplexChallengeGoalFields) SetScoreFormula(val OptString)
- func (s *ComplexChallengeGoalFields) SetVariableName(val OptString)
- func (s *ComplexChallengeGoalFields) UnmarshalJSON(data []byte) error
- func (s *ComplexChallengeGoalFields) Validate() error
- type ComplexChallengeGoalReadParams
- type ComplexChallengeGoalReadRes
- type ComplexChallengeGoalUpdateParams
- type ComplexChallengeGoalUpdateRes
- type ComplexChallengeGoalsListOKHeaders
- func (s *ComplexChallengeGoalsListOKHeaders) GetResponse() []ComplexChallengeGoal
- func (s *ComplexChallengeGoalsListOKHeaders) GetXCount() int64
- func (s *ComplexChallengeGoalsListOKHeaders) SetResponse(val []ComplexChallengeGoal)
- func (s *ComplexChallengeGoalsListOKHeaders) SetXCount(val int64)
- func (s *ComplexChallengeGoalsListOKHeaders) Validate() error
- type ComplexChallengeGoalsListParams
- type ComplexChallengeGoalsListRes
- type ComplexChallengePublicNoContent
- type ComplexChallengePublicParams
- type ComplexChallengePublicRes
- type ComplexChallengeRead
- func (s *ComplexChallengeRead) Decode(d *jx.Decoder) error
- func (s *ComplexChallengeRead) Encode(e *jx.Encoder)
- func (s *ComplexChallengeRead) GetCreatedAt() time.Time
- func (s *ComplexChallengeRead) GetGoals() []ComplexChallengeGoal
- func (s *ComplexChallengeRead) GetID() int32
- func (s *ComplexChallengeRead) GetName() string
- func (s *ComplexChallengeRead) GetPeriodFrom() NilDateTime
- func (s *ComplexChallengeRead) GetPeriodTo() NilDateTime
- func (s *ComplexChallengeRead) GetPublic() bool
- func (s *ComplexChallengeRead) GetRequiredScore() OptFloat64
- func (s *ComplexChallengeRead) GetScoreFormula() OptString
- func (s *ComplexChallengeRead) GetUpdateStrategy() ComplexChallengeUpdateStrategy
- func (s *ComplexChallengeRead) GetUpdatedAt() time.Time
- func (s *ComplexChallengeRead) MarshalJSON() ([]byte, error)
- func (s *ComplexChallengeRead) SetCreatedAt(val time.Time)
- func (s *ComplexChallengeRead) SetGoals(val []ComplexChallengeGoal)
- func (s *ComplexChallengeRead) SetID(val int32)
- func (s *ComplexChallengeRead) SetName(val string)
- func (s *ComplexChallengeRead) SetPeriodFrom(val NilDateTime)
- func (s *ComplexChallengeRead) SetPeriodTo(val NilDateTime)
- func (s *ComplexChallengeRead) SetPublic(val bool)
- func (s *ComplexChallengeRead) SetRequiredScore(val OptFloat64)
- func (s *ComplexChallengeRead) SetScoreFormula(val OptString)
- func (s *ComplexChallengeRead) SetUpdateStrategy(val ComplexChallengeUpdateStrategy)
- func (s *ComplexChallengeRead) SetUpdatedAt(val time.Time)
- func (s *ComplexChallengeRead) UnmarshalJSON(data []byte) error
- func (s *ComplexChallengeRead) Validate() error
- type ComplexChallengeReadParams
- type ComplexChallengeReadRes
- type ComplexChallengeResult
- func (s *ComplexChallengeResult) Decode(d *jx.Decoder) error
- func (s *ComplexChallengeResult) Encode(e *jx.Encoder)
- func (s *ComplexChallengeResult) GetComplexchID() int32
- func (s *ComplexChallengeResult) GetCreatedAt() time.Time
- func (s *ComplexChallengeResult) GetID() int64
- func (s *ComplexChallengeResult) GetPassed() bool
- func (s *ComplexChallengeResult) GetPassedWas() bool
- func (s *ComplexChallengeResult) GetScore() NilFloat64
- func (s *ComplexChallengeResult) GetUpdatedAt() time.Time
- func (s *ComplexChallengeResult) GetUserID() int32
- func (s *ComplexChallengeResult) MarshalJSON() ([]byte, error)
- func (s *ComplexChallengeResult) SetComplexchID(val int32)
- func (s *ComplexChallengeResult) SetCreatedAt(val time.Time)
- func (s *ComplexChallengeResult) SetID(val int64)
- func (s *ComplexChallengeResult) SetPassed(val bool)
- func (s *ComplexChallengeResult) SetPassedWas(val bool)
- func (s *ComplexChallengeResult) SetScore(val NilFloat64)
- func (s *ComplexChallengeResult) SetUpdatedAt(val time.Time)
- func (s *ComplexChallengeResult) SetUserID(val int32)
- func (s *ComplexChallengeResult) UnmarshalJSON(data []byte) error
- func (s *ComplexChallengeResult) Validate() error
- type ComplexChallengeUpdateParams
- type ComplexChallengeUpdateReq
- func (s *ComplexChallengeUpdateReq) Decode(d *jx.Decoder) error
- func (s *ComplexChallengeUpdateReq) Encode(e *jx.Encoder)
- func (s *ComplexChallengeUpdateReq) GetName() OptString
- func (s *ComplexChallengeUpdateReq) GetPeriodFrom() OptNilDateTime
- func (s *ComplexChallengeUpdateReq) GetPeriodTo() OptNilDateTime
- func (s *ComplexChallengeUpdateReq) GetRequiredScore() OptFloat64
- func (s *ComplexChallengeUpdateReq) GetScoreFormula() OptString
- func (s *ComplexChallengeUpdateReq) GetUpdateStrategy() OptComplexChallengeUpdateStrategy
- func (s *ComplexChallengeUpdateReq) MarshalJSON() ([]byte, error)
- func (s *ComplexChallengeUpdateReq) SetName(val OptString)
- func (s *ComplexChallengeUpdateReq) SetPeriodFrom(val OptNilDateTime)
- func (s *ComplexChallengeUpdateReq) SetPeriodTo(val OptNilDateTime)
- func (s *ComplexChallengeUpdateReq) SetRequiredScore(val OptFloat64)
- func (s *ComplexChallengeUpdateReq) SetScoreFormula(val OptString)
- func (s *ComplexChallengeUpdateReq) SetUpdateStrategy(val OptComplexChallengeUpdateStrategy)
- func (s *ComplexChallengeUpdateReq) UnmarshalJSON(data []byte) error
- func (s *ComplexChallengeUpdateReq) Validate() error
- type ComplexChallengeUpdateRes
- type ComplexChallengeUpdateStrategy
- func (ComplexChallengeUpdateStrategy) AllValues() []ComplexChallengeUpdateStrategy
- func (s *ComplexChallengeUpdateStrategy) Decode(d *jx.Decoder) error
- func (s ComplexChallengeUpdateStrategy) Encode(e *jx.Encoder)
- func (s ComplexChallengeUpdateStrategy) MarshalJSON() ([]byte, error)
- func (s ComplexChallengeUpdateStrategy) MarshalText() ([]byte, error)
- func (s *ComplexChallengeUpdateStrategy) UnmarshalJSON(data []byte) error
- func (s *ComplexChallengeUpdateStrategy) UnmarshalText(data []byte) error
- func (s ComplexChallengeUpdateStrategy) Validate() error
- type ComplexChallengeValidateNoContent
- type ComplexChallengeValidateParams
- type ComplexChallengeValidateRes
- type ComplexChallengesListOKHeaders
- func (s *ComplexChallengesListOKHeaders) GetResponse() []ComplexChallengeBase
- func (s *ComplexChallengesListOKHeaders) GetXCount() int64
- func (s *ComplexChallengesListOKHeaders) SetResponse(val []ComplexChallengeBase)
- func (s *ComplexChallengesListOKHeaders) SetXCount(val int64)
- func (s *ComplexChallengesListOKHeaders) Validate() error
- type ComplexChallengesListParams
- type ComplexChallengesResultsListOKHeaders
- func (s *ComplexChallengesResultsListOKHeaders) GetResponse() []ComplexChallengeResult
- func (s *ComplexChallengesResultsListOKHeaders) GetXCount() int64
- func (s *ComplexChallengesResultsListOKHeaders) SetResponse(val []ComplexChallengeResult)
- func (s *ComplexChallengesResultsListOKHeaders) SetXCount(val int64)
- func (s *ComplexChallengesResultsListOKHeaders) Validate() error
- type ComplexChallengesResultsListOrderBy
- func (ComplexChallengesResultsListOrderBy) AllValues() []ComplexChallengesResultsListOrderBy
- func (s ComplexChallengesResultsListOrderBy) MarshalText() ([]byte, error)
- func (s *ComplexChallengesResultsListOrderBy) UnmarshalText(data []byte) error
- func (s ComplexChallengesResultsListOrderBy) Validate() error
- type ComplexChallengesResultsListParams
- type ComplexchGoalNotFound
- func (s *ComplexchGoalNotFound) Decode(d *jx.Decoder) error
- func (s *ComplexchGoalNotFound) Encode(e *jx.Encoder)
- func (s *ComplexchGoalNotFound) GetErrorMessage() string
- func (s *ComplexchGoalNotFound) MarshalJSON() ([]byte, error)
- func (s *ComplexchGoalNotFound) SetErrorMessage(val string)
- func (s *ComplexchGoalNotFound) UnmarshalJSON(data []byte) error
- type ComplexchNotFound
- func (s *ComplexchNotFound) Decode(d *jx.Decoder) error
- func (s *ComplexchNotFound) Encode(e *jx.Encoder)
- func (s *ComplexchNotFound) GetErrorMessage() string
- func (s *ComplexchNotFound) MarshalJSON() ([]byte, error)
- func (s *ComplexchNotFound) SetErrorMessage(val string)
- func (s *ComplexchNotFound) UnmarshalJSON(data []byte) error
- type ComplexchNotUpdatable
- type Error
- func (s *Error) Decode(d *jx.Decoder) error
- func (s *Error) Encode(e *jx.Encoder)
- func (s *Error) GetErrorMessage() string
- func (s *Error) GetVerboseMessage() OptString
- func (s *Error) MarshalJSON() ([]byte, error)
- func (s *Error) SetErrorMessage(val string)
- func (s *Error) SetVerboseMessage(val OptString)
- func (s *Error) UnmarshalJSON(data []byte) error
- type FormulaOperand
- func (s *FormulaOperand) Decode(d *jx.Decoder) error
- func (s *FormulaOperand) Encode(e *jx.Encoder)
- func (s *FormulaOperand) GetAggFunc() OptString
- func (s *FormulaOperand) GetChildren() []FormulaOperation
- func (s *FormulaOperand) GetFuncArgument() OptString
- func (s *FormulaOperand) GetLiteralValue() OptFloat64
- func (s *FormulaOperand) GetType() FormulaOperandType
- func (s *FormulaOperand) GetVariableName() OptString
- func (s *FormulaOperand) MarshalJSON() ([]byte, error)
- func (s *FormulaOperand) SetAggFunc(val OptString)
- func (s *FormulaOperand) SetChildren(val []FormulaOperation)
- func (s *FormulaOperand) SetFuncArgument(val OptString)
- func (s *FormulaOperand) SetLiteralValue(val OptFloat64)
- func (s *FormulaOperand) SetType(val FormulaOperandType)
- func (s *FormulaOperand) SetVariableName(val OptString)
- func (s *FormulaOperand) UnmarshalJSON(data []byte) error
- func (s *FormulaOperand) Validate() error
- type FormulaOperandType
- func (FormulaOperandType) AllValues() []FormulaOperandType
- func (s *FormulaOperandType) Decode(d *jx.Decoder) error
- func (s FormulaOperandType) Encode(e *jx.Encoder)
- func (s FormulaOperandType) MarshalJSON() ([]byte, error)
- func (s FormulaOperandType) MarshalText() ([]byte, error)
- func (s *FormulaOperandType) UnmarshalJSON(data []byte) error
- func (s *FormulaOperandType) UnmarshalText(data []byte) error
- func (s FormulaOperandType) Validate() error
- type FormulaOperation
- func (s *FormulaOperation) Decode(d *jx.Decoder) error
- func (s *FormulaOperation) Encode(e *jx.Encoder)
- func (s *FormulaOperation) GetOperand() FormulaOperand
- func (s *FormulaOperation) GetOperator() FormulaOperationOperator
- func (s *FormulaOperation) MarshalJSON() ([]byte, error)
- func (s *FormulaOperation) SetOperand(val FormulaOperand)
- func (s *FormulaOperation) SetOperator(val FormulaOperationOperator)
- func (s *FormulaOperation) UnmarshalJSON(data []byte) error
- func (s *FormulaOperation) Validate() error
- type FormulaOperationOperator
- func (FormulaOperationOperator) AllValues() []FormulaOperationOperator
- func (s *FormulaOperationOperator) Decode(d *jx.Decoder) error
- func (s FormulaOperationOperator) Encode(e *jx.Encoder)
- func (s FormulaOperationOperator) MarshalJSON() ([]byte, error)
- func (s FormulaOperationOperator) MarshalText() ([]byte, error)
- func (s *FormulaOperationOperator) UnmarshalJSON(data []byte) error
- func (s *FormulaOperationOperator) UnmarshalText(data []byte) error
- func (s FormulaOperationOperator) Validate() error
- type FormulaParseOKApplicationJSON
- func (s *FormulaParseOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s FormulaParseOKApplicationJSON) Encode(e *jx.Encoder)
- func (s FormulaParseOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *FormulaParseOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s FormulaParseOKApplicationJSON) Validate() error
- type FormulaParseReq
- func (s *FormulaParseReq) Decode(d *jx.Decoder) error
- func (s *FormulaParseReq) Encode(e *jx.Encoder)
- func (s *FormulaParseReq) GetBody() string
- func (s *FormulaParseReq) GetType() FormulaParseReqType
- func (s *FormulaParseReq) MarshalJSON() ([]byte, error)
- func (s *FormulaParseReq) SetBody(val string)
- func (s *FormulaParseReq) SetType(val FormulaParseReqType)
- func (s *FormulaParseReq) UnmarshalJSON(data []byte) error
- func (s *FormulaParseReq) Validate() error
- type FormulaParseReqType
- func (FormulaParseReqType) AllValues() []FormulaParseReqType
- func (s *FormulaParseReqType) Decode(d *jx.Decoder) error
- func (s FormulaParseReqType) Encode(e *jx.Encoder)
- func (s FormulaParseReqType) MarshalJSON() ([]byte, error)
- func (s FormulaParseReqType) MarshalText() ([]byte, error)
- func (s *FormulaParseReqType) UnmarshalJSON(data []byte) error
- func (s *FormulaParseReqType) UnmarshalText(data []byte) error
- func (s FormulaParseReqType) Validate() error
- type FormulaParseRes
- type FormulaValidationError
- func (s *FormulaValidationError) Decode(d *jx.Decoder) error
- func (s *FormulaValidationError) Encode(e *jx.Encoder)
- func (s *FormulaValidationError) GetErrorMessage() string
- func (s *FormulaValidationError) GetErrorPlace() string
- func (s *FormulaValidationError) GetPosLeft() int
- func (s *FormulaValidationError) GetPosRight() int
- func (s *FormulaValidationError) MarshalJSON() ([]byte, error)
- func (s *FormulaValidationError) SetErrorMessage(val string)
- func (s *FormulaValidationError) SetErrorPlace(val string)
- func (s *FormulaValidationError) SetPosLeft(val int)
- func (s *FormulaValidationError) SetPosRight(val int)
- func (s *FormulaValidationError) UnmarshalJSON(data []byte) error
- type Instrument
- func (s *Instrument) Decode(d *jx.Decoder) error
- func (s *Instrument) Encode(e *jx.Encoder)
- func (s *Instrument) GetCompetencyID() int32
- func (s *Instrument) GetDescription() string
- func (s *Instrument) GetID() int32
- func (s *Instrument) GetImage() url.URL
- func (s *Instrument) GetIsActive() bool
- func (s *Instrument) GetName() string
- func (s *Instrument) GetTraditionID() int32
- func (s *Instrument) MarshalJSON() ([]byte, error)
- func (s *Instrument) SetCompetencyID(val int32)
- func (s *Instrument) SetDescription(val string)
- func (s *Instrument) SetID(val int32)
- func (s *Instrument) SetImage(val url.URL)
- func (s *Instrument) SetIsActive(val bool)
- func (s *Instrument) SetName(val string)
- func (s *Instrument) SetTraditionID(val int32)
- func (s *Instrument) UnmarshalJSON(data []byte) error
- type InstrumentCreateConflict
- type InstrumentCreateRequest
- func (s *InstrumentCreateRequest) Decode(d *jx.Decoder) error
- func (s *InstrumentCreateRequest) Encode(e *jx.Encoder)
- func (s *InstrumentCreateRequest) GetCompetencyID() int32
- func (s *InstrumentCreateRequest) GetDescription() string
- func (s *InstrumentCreateRequest) GetImage() url.URL
- func (s *InstrumentCreateRequest) GetName() string
- func (s *InstrumentCreateRequest) GetTraditionID() int32
- func (s *InstrumentCreateRequest) MarshalJSON() ([]byte, error)
- func (s *InstrumentCreateRequest) SetCompetencyID(val int32)
- func (s *InstrumentCreateRequest) SetDescription(val string)
- func (s *InstrumentCreateRequest) SetImage(val url.URL)
- func (s *InstrumentCreateRequest) SetName(val string)
- func (s *InstrumentCreateRequest) SetTraditionID(val int32)
- func (s *InstrumentCreateRequest) UnmarshalJSON(data []byte) error
- type InstrumentCreateRes
- type InstrumentCreateUnprocessableEntity
- type InstrumentID
- type InstrumentReadParams
- type InstrumentReadRes
- type InstrumentUpdateConflict
- type InstrumentUpdateNotFound
- type InstrumentUpdateParams
- type InstrumentUpdateRequest
- func (s *InstrumentUpdateRequest) Decode(d *jx.Decoder) error
- func (s *InstrumentUpdateRequest) Encode(e *jx.Encoder)
- func (s *InstrumentUpdateRequest) GetCompetencyID() OptInt32
- func (s *InstrumentUpdateRequest) GetDescription() OptString
- func (s *InstrumentUpdateRequest) GetImage() OptURI
- func (s *InstrumentUpdateRequest) GetIsActive() OptBool
- func (s *InstrumentUpdateRequest) GetName() OptString
- func (s *InstrumentUpdateRequest) GetTraditionID() OptInt32
- func (s *InstrumentUpdateRequest) MarshalJSON() ([]byte, error)
- func (s *InstrumentUpdateRequest) SetCompetencyID(val OptInt32)
- func (s *InstrumentUpdateRequest) SetDescription(val OptString)
- func (s *InstrumentUpdateRequest) SetImage(val OptURI)
- func (s *InstrumentUpdateRequest) SetIsActive(val OptBool)
- func (s *InstrumentUpdateRequest) SetName(val OptString)
- func (s *InstrumentUpdateRequest) SetTraditionID(val OptInt32)
- func (s *InstrumentUpdateRequest) UnmarshalJSON(data []byte) error
- type InstrumentUpdateRes
- type InstrumentUpdateUnprocessableEntity
- type InstrumentsListIsActive
- type InstrumentsListOKHeaders
- type InstrumentsListOrderBy
- type InstrumentsListParams
- type Invoker
- type NilDateTime
- func (o *NilDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error
- func (o NilDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))
- func (o NilDateTime) Get() (v time.Time, ok bool)
- func (o NilDateTime) IsNull() bool
- func (s NilDateTime) MarshalJSON() ([]byte, error)
- func (o NilDateTime) Or(d time.Time) time.Time
- func (o *NilDateTime) SetTo(v time.Time)
- func (o *NilDateTime) SetToNull()
- func (s *NilDateTime) UnmarshalJSON(data []byte) error
- type NilFloat64
- func (o *NilFloat64) Decode(d *jx.Decoder) error
- func (o NilFloat64) Encode(e *jx.Encoder)
- func (o NilFloat64) Get() (v float64, ok bool)
- func (o NilFloat64) IsNull() bool
- func (s NilFloat64) MarshalJSON() ([]byte, error)
- func (o NilFloat64) Or(d float64) float64
- func (o *NilFloat64) SetTo(v float64)
- func (o *NilFloat64) SetToNull()
- func (s *NilFloat64) UnmarshalJSON(data []byte) error
- type NilInstrumentID
- func (o *NilInstrumentID) Decode(d *jx.Decoder) error
- func (o NilInstrumentID) Encode(e *jx.Encoder)
- func (o NilInstrumentID) Get() (v InstrumentID, ok bool)
- func (o NilInstrumentID) IsNull() bool
- func (s NilInstrumentID) MarshalJSON() ([]byte, error)
- func (o NilInstrumentID) Or(d InstrumentID) InstrumentID
- func (o *NilInstrumentID) SetTo(v InstrumentID)
- func (o *NilInstrumentID) SetToNull()
- func (s *NilInstrumentID) UnmarshalJSON(data []byte) error
- type NilTraditionID
- func (o *NilTraditionID) Decode(d *jx.Decoder) error
- func (o NilTraditionID) Encode(e *jx.Encoder)
- func (o NilTraditionID) Get() (v TraditionID, ok bool)
- func (o NilTraditionID) IsNull() bool
- func (s NilTraditionID) MarshalJSON() ([]byte, error)
- func (o NilTraditionID) Or(d TraditionID) TraditionID
- func (o *NilTraditionID) SetTo(v TraditionID)
- func (o *NilTraditionID) SetToNull()
- func (s *NilTraditionID) UnmarshalJSON(data []byte) error
- type OptAwardsListOrderBy
- type OptBool
- func (o *OptBool) Decode(d *jx.Decoder) error
- func (o OptBool) Encode(e *jx.Encoder)
- func (o OptBool) Get() (v bool, ok bool)
- func (o OptBool) IsSet() bool
- func (s OptBool) MarshalJSON() ([]byte, error)
- func (o OptBool) Or(d bool) bool
- func (o *OptBool) Reset()
- func (o *OptBool) SetTo(v bool)
- func (s *OptBool) UnmarshalJSON(data []byte) error
- type OptComplexChallengeUpdateStrategy
- func (o *OptComplexChallengeUpdateStrategy) Decode(d *jx.Decoder) error
- func (o OptComplexChallengeUpdateStrategy) Encode(e *jx.Encoder)
- func (o OptComplexChallengeUpdateStrategy) Get() (v ComplexChallengeUpdateStrategy, ok bool)
- func (o OptComplexChallengeUpdateStrategy) IsSet() bool
- func (s OptComplexChallengeUpdateStrategy) MarshalJSON() ([]byte, error)
- func (o OptComplexChallengeUpdateStrategy) Or(d ComplexChallengeUpdateStrategy) ComplexChallengeUpdateStrategy
- func (o *OptComplexChallengeUpdateStrategy) Reset()
- func (o *OptComplexChallengeUpdateStrategy) SetTo(v ComplexChallengeUpdateStrategy)
- func (s *OptComplexChallengeUpdateStrategy) UnmarshalJSON(data []byte) error
- type OptComplexChallengesResultsListOrderBy
- func (o OptComplexChallengesResultsListOrderBy) Get() (v ComplexChallengesResultsListOrderBy, ok bool)
- func (o OptComplexChallengesResultsListOrderBy) IsSet() bool
- func (o OptComplexChallengesResultsListOrderBy) Or(d ComplexChallengesResultsListOrderBy) ComplexChallengesResultsListOrderBy
- func (o *OptComplexChallengesResultsListOrderBy) Reset()
- func (o *OptComplexChallengesResultsListOrderBy) SetTo(v ComplexChallengesResultsListOrderBy)
- type OptFloat64
- func (o *OptFloat64) Decode(d *jx.Decoder) error
- func (o OptFloat64) Encode(e *jx.Encoder)
- func (o OptFloat64) Get() (v float64, ok bool)
- func (o OptFloat64) IsSet() bool
- func (s OptFloat64) MarshalJSON() ([]byte, error)
- func (o OptFloat64) Or(d float64) float64
- func (o *OptFloat64) Reset()
- func (o *OptFloat64) SetTo(v float64)
- func (s *OptFloat64) UnmarshalJSON(data []byte) error
- type OptInstrumentsListIsActive
- func (o OptInstrumentsListIsActive) Get() (v InstrumentsListIsActive, ok bool)
- func (o OptInstrumentsListIsActive) IsSet() bool
- func (o OptInstrumentsListIsActive) Or(d InstrumentsListIsActive) InstrumentsListIsActive
- func (o *OptInstrumentsListIsActive) Reset()
- func (o *OptInstrumentsListIsActive) SetTo(v InstrumentsListIsActive)
- type OptInstrumentsListOrderBy
- func (o OptInstrumentsListOrderBy) Get() (v InstrumentsListOrderBy, ok bool)
- func (o OptInstrumentsListOrderBy) IsSet() bool
- func (o OptInstrumentsListOrderBy) Or(d InstrumentsListOrderBy) InstrumentsListOrderBy
- func (o *OptInstrumentsListOrderBy) Reset()
- func (o *OptInstrumentsListOrderBy) SetTo(v InstrumentsListOrderBy)
- type OptInt32
- func (o *OptInt32) Decode(d *jx.Decoder) error
- func (o OptInt32) Encode(e *jx.Encoder)
- func (o OptInt32) Get() (v int32, ok bool)
- func (o OptInt32) IsSet() bool
- func (s OptInt32) MarshalJSON() ([]byte, error)
- func (o OptInt32) Or(d int32) int32
- func (o *OptInt32) Reset()
- func (o *OptInt32) SetTo(v int32)
- func (s *OptInt32) UnmarshalJSON(data []byte) error
- type OptInt64
- type OptNilDateTime
- func (o *OptNilDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error
- func (o OptNilDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))
- func (o OptNilDateTime) Get() (v time.Time, ok bool)
- func (o OptNilDateTime) IsNull() bool
- func (o OptNilDateTime) IsSet() bool
- func (s OptNilDateTime) MarshalJSON() ([]byte, error)
- func (o OptNilDateTime) Or(d time.Time) time.Time
- func (o *OptNilDateTime) Reset()
- func (o *OptNilDateTime) SetTo(v time.Time)
- func (o *OptNilDateTime) SetToNull()
- func (s *OptNilDateTime) UnmarshalJSON(data []byte) error
- type OptNilInt32
- func (o *OptNilInt32) Decode(d *jx.Decoder) error
- func (o OptNilInt32) Encode(e *jx.Encoder)
- func (o OptNilInt32) Get() (v int32, ok bool)
- func (o OptNilInt32) IsNull() bool
- func (o OptNilInt32) IsSet() bool
- func (s OptNilInt32) MarshalJSON() ([]byte, error)
- func (o OptNilInt32) Or(d int32) int32
- func (o *OptNilInt32) Reset()
- func (o *OptNilInt32) SetTo(v int32)
- func (o *OptNilInt32) SetToNull()
- func (s *OptNilInt32) UnmarshalJSON(data []byte) error
- type OptNilUUID
- func (o *OptNilUUID) Decode(d *jx.Decoder) error
- func (o OptNilUUID) Encode(e *jx.Encoder)
- func (o OptNilUUID) Get() (v uuid.UUID, ok bool)
- func (o OptNilUUID) IsNull() bool
- func (o OptNilUUID) IsSet() bool
- func (s OptNilUUID) MarshalJSON() ([]byte, error)
- func (o OptNilUUID) Or(d uuid.UUID) uuid.UUID
- func (o *OptNilUUID) Reset()
- func (o *OptNilUUID) SetTo(v uuid.UUID)
- func (o *OptNilUUID) SetToNull()
- func (s *OptNilUUID) UnmarshalJSON(data []byte) error
- type OptString
- func (o *OptString) Decode(d *jx.Decoder) error
- func (o OptString) Encode(e *jx.Encoder)
- func (o OptString) Get() (v string, ok bool)
- func (o OptString) IsSet() bool
- func (s OptString) MarshalJSON() ([]byte, error)
- func (o OptString) Or(d string) string
- func (o *OptString) Reset()
- func (o *OptString) SetTo(v string)
- func (s *OptString) UnmarshalJSON(data []byte) error
- type OptTraditionsListIsActive
- func (o OptTraditionsListIsActive) Get() (v TraditionsListIsActive, ok bool)
- func (o OptTraditionsListIsActive) IsSet() bool
- func (o OptTraditionsListIsActive) Or(d TraditionsListIsActive) TraditionsListIsActive
- func (o *OptTraditionsListIsActive) Reset()
- func (o *OptTraditionsListIsActive) SetTo(v TraditionsListIsActive)
- type OptURI
- func (o *OptURI) Decode(d *jx.Decoder) error
- func (o OptURI) Encode(e *jx.Encoder)
- func (o OptURI) Get() (v url.URL, ok bool)
- func (o OptURI) IsSet() bool
- func (s OptURI) MarshalJSON() ([]byte, error)
- func (o OptURI) Or(d url.URL) url.URL
- func (o *OptURI) Reset()
- func (o *OptURI) SetTo(v url.URL)
- func (s *OptURI) UnmarshalJSON(data []byte) error
- type OptUUID
- type OptUserProgressListOrderBy
- func (o OptUserProgressListOrderBy) Get() (v UserProgressListOrderBy, ok bool)
- func (o OptUserProgressListOrderBy) IsSet() bool
- func (o OptUserProgressListOrderBy) Or(d UserProgressListOrderBy) UserProgressListOrderBy
- func (o *OptUserProgressListOrderBy) Reset()
- func (o *OptUserProgressListOrderBy) SetTo(v UserProgressListOrderBy)
- type Option
- type PassedChallengesListOKHeaders
- func (s *PassedChallengesListOKHeaders) GetResponse() []PassedChallengesListOKItem
- func (s *PassedChallengesListOKHeaders) GetXCount() int64
- func (s *PassedChallengesListOKHeaders) SetResponse(val []PassedChallengesListOKItem)
- func (s *PassedChallengesListOKHeaders) SetXCount(val int64)
- func (s *PassedChallengesListOKHeaders) Validate() error
- type PassedChallengesListOKItem
- func (s *PassedChallengesListOKItem) Decode(d *jx.Decoder) error
- func (s *PassedChallengesListOKItem) Encode(e *jx.Encoder)
- func (s *PassedChallengesListOKItem) GetChallengeID() int32
- func (s *PassedChallengesListOKItem) GetPassedAt() time.Time
- func (s *PassedChallengesListOKItem) MarshalJSON() ([]byte, error)
- func (s *PassedChallengesListOKItem) SetChallengeID(val int32)
- func (s *PassedChallengesListOKItem) SetPassedAt(val time.Time)
- func (s *PassedChallengesListOKItem) UnmarshalJSON(data []byte) error
- type PassedChallengesListParams
- type PlayerAward
- func (s *PlayerAward) Decode(d *jx.Decoder) error
- func (s *PlayerAward) Encode(e *jx.Encoder)
- func (s *PlayerAward) GetAwardID() int32
- func (s *PlayerAward) GetAwardedAt() time.Time
- func (s *PlayerAward) GetDisplayedAt() NilDateTime
- func (s *PlayerAward) MarshalJSON() ([]byte, error)
- func (s *PlayerAward) SetAwardID(val int32)
- func (s *PlayerAward) SetAwardedAt(val time.Time)
- func (s *PlayerAward) SetDisplayedAt(val NilDateTime)
- func (s *PlayerAward) UnmarshalJSON(data []byte) error
- type Progress
- func (s *Progress) Decode(d *jx.Decoder) error
- func (s *Progress) Encode(e *jx.Encoder)
- func (s *Progress) GetAwardLevel() int32
- func (s *Progress) GetInstrumentID() NilInstrumentID
- func (s *Progress) GetScores() float64
- func (s *Progress) GetTraditionID() NilTraditionID
- func (s *Progress) MarshalJSON() ([]byte, error)
- func (s *Progress) SetAwardLevel(val int32)
- func (s *Progress) SetInstrumentID(val NilInstrumentID)
- func (s *Progress) SetScores(val float64)
- func (s *Progress) SetTraditionID(val NilTraditionID)
- func (s *Progress) UnmarshalJSON(data []byte) error
- func (s *Progress) Validate() error
- type SecuritySource
- type TalentOAuth
- type TalentUserAward
- func (s *TalentUserAward) Decode(d *jx.Decoder) error
- func (s *TalentUserAward) Encode(e *jx.Encoder)
- func (s *TalentUserAward) GetAwardID() int32
- func (s *TalentUserAward) GetAwardedAt() time.Time
- func (s *TalentUserAward) GetDisplayed() []TalentUserAwardDisplayedItem
- func (s *TalentUserAward) MarshalJSON() ([]byte, error)
- func (s *TalentUserAward) SetAwardID(val int32)
- func (s *TalentUserAward) SetAwardedAt(val time.Time)
- func (s *TalentUserAward) SetDisplayed(val []TalentUserAwardDisplayedItem)
- func (s *TalentUserAward) UnmarshalJSON(data []byte) error
- func (s *TalentUserAward) Validate() error
- type TalentUserAwardDisplayedItem
- func (s *TalentUserAwardDisplayedItem) Decode(d *jx.Decoder) error
- func (s *TalentUserAwardDisplayedItem) Encode(e *jx.Encoder)
- func (s *TalentUserAwardDisplayedItem) GetApplicationID() ApplicationID
- func (s *TalentUserAwardDisplayedItem) GetDisplayedAt() time.Time
- func (s *TalentUserAwardDisplayedItem) MarshalJSON() ([]byte, error)
- func (s *TalentUserAwardDisplayedItem) SetApplicationID(val ApplicationID)
- func (s *TalentUserAwardDisplayedItem) SetDisplayedAt(val time.Time)
- func (s *TalentUserAwardDisplayedItem) UnmarshalJSON(data []byte) error
- type Tradition
- func (s *Tradition) Decode(d *jx.Decoder) error
- func (s *Tradition) Encode(e *jx.Encoder)
- func (s *Tradition) GetDescription() string
- func (s *Tradition) GetID() int32
- func (s *Tradition) GetImage() url.URL
- func (s *Tradition) GetIsActive() bool
- func (s *Tradition) GetName() string
- func (s *Tradition) MarshalJSON() ([]byte, error)
- func (s *Tradition) SetDescription(val string)
- func (s *Tradition) SetID(val int32)
- func (s *Tradition) SetImage(val url.URL)
- func (s *Tradition) SetIsActive(val bool)
- func (s *Tradition) SetName(val string)
- func (s *Tradition) UnmarshalJSON(data []byte) error
- type TraditionCreateRequest
- func (s *TraditionCreateRequest) Decode(d *jx.Decoder) error
- func (s *TraditionCreateRequest) Encode(e *jx.Encoder)
- func (s *TraditionCreateRequest) GetDescription() string
- func (s *TraditionCreateRequest) GetImage() url.URL
- func (s *TraditionCreateRequest) GetName() string
- func (s *TraditionCreateRequest) MarshalJSON() ([]byte, error)
- func (s *TraditionCreateRequest) SetDescription(val string)
- func (s *TraditionCreateRequest) SetImage(val url.URL)
- func (s *TraditionCreateRequest) SetName(val string)
- func (s *TraditionCreateRequest) UnmarshalJSON(data []byte) error
- type TraditionCreateRes
- type TraditionID
- type TraditionInstrumentsListParams
- type TraditionReadParams
- type TraditionReadRes
- type TraditionUpdateConflict
- type TraditionUpdateNotFound
- type TraditionUpdateParams
- type TraditionUpdateRequest
- func (s *TraditionUpdateRequest) Decode(d *jx.Decoder) error
- func (s *TraditionUpdateRequest) Encode(e *jx.Encoder)
- func (s *TraditionUpdateRequest) GetDescription() OptString
- func (s *TraditionUpdateRequest) GetImage() OptURI
- func (s *TraditionUpdateRequest) GetIsActive() OptBool
- func (s *TraditionUpdateRequest) GetName() OptString
- func (s *TraditionUpdateRequest) MarshalJSON() ([]byte, error)
- func (s *TraditionUpdateRequest) SetDescription(val OptString)
- func (s *TraditionUpdateRequest) SetImage(val OptURI)
- func (s *TraditionUpdateRequest) SetIsActive(val OptBool)
- func (s *TraditionUpdateRequest) SetName(val OptString)
- func (s *TraditionUpdateRequest) UnmarshalJSON(data []byte) error
- type TraditionUpdateRes
- type TraditionsListIsActive
- type TraditionsListParams
- type UserAwardDisplayedOK
- type UserAwardDisplayedParams
- type UserAwardsListOKHeaders
- func (s *UserAwardsListOKHeaders) GetResponse() []UserAwardsListOKItem
- func (s *UserAwardsListOKHeaders) GetXCount() int64
- func (s *UserAwardsListOKHeaders) SetResponse(val []UserAwardsListOKItem)
- func (s *UserAwardsListOKHeaders) SetXCount(val int64)
- func (s *UserAwardsListOKHeaders) Validate() error
- type UserAwardsListOKItem
- func (s *UserAwardsListOKItem) Decode(d *jx.Decoder) error
- func (s UserAwardsListOKItem) Encode(e *jx.Encoder)
- func (s UserAwardsListOKItem) GetPlayerAward() (v PlayerAward, ok bool)
- func (s UserAwardsListOKItem) GetTalentUserAward() (v TalentUserAward, ok bool)
- func (s UserAwardsListOKItem) IsPlayerAward() bool
- func (s UserAwardsListOKItem) IsTalentUserAward() bool
- func (s UserAwardsListOKItem) MarshalJSON() ([]byte, error)
- func (s *UserAwardsListOKItem) SetPlayerAward(v PlayerAward)
- func (s *UserAwardsListOKItem) SetTalentUserAward(v TalentUserAward)
- func (s *UserAwardsListOKItem) UnmarshalJSON(data []byte) error
- func (s UserAwardsListOKItem) Validate() error
- type UserAwardsListOKItemType
- type UserAwardsListParams
- type UserProgressListOKHeaders
- type UserProgressListOrderBy
- type UserProgressListParams
- type ValidationError
- func (s *ValidationError) Decode(d *jx.Decoder) error
- func (s *ValidationError) Encode(e *jx.Encoder)
- func (s *ValidationError) GetErrorMessage() string
- func (s *ValidationError) GetFields() []string
- func (s *ValidationError) MarshalJSON() ([]byte, error)
- func (s *ValidationError) SetErrorMessage(val string)
- func (s *ValidationError) SetFields(val []string)
- func (s *ValidationError) UnmarshalJSON(data []byte) error
- func (s *ValidationError) Validate() error
- type ValidationErrors
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActivityFunc ¶
type ActivityFunc struct { Type ActivityFuncType // switch on this field ActivityFuncSlice ActivityFuncSlice ActivityFuncSort ActivityFuncSort ActivityFuncFilter ActivityFuncFilter ActivityFuncMap ActivityFuncMap }
Ref: #/components/schemas/ActivityFunc ActivityFunc represents sum type.
func NewActivityFuncFilterActivityFunc ¶
func NewActivityFuncFilterActivityFunc(v ActivityFuncFilter) ActivityFunc
NewActivityFuncFilterActivityFunc returns new ActivityFunc from ActivityFuncFilter.
func NewActivityFuncMapActivityFunc ¶
func NewActivityFuncMapActivityFunc(v ActivityFuncMap) ActivityFunc
NewActivityFuncMapActivityFunc returns new ActivityFunc from ActivityFuncMap.
func NewActivityFuncSliceActivityFunc ¶
func NewActivityFuncSliceActivityFunc(v ActivityFuncSlice) ActivityFunc
NewActivityFuncSliceActivityFunc returns new ActivityFunc from ActivityFuncSlice.
func NewActivityFuncSortActivityFunc ¶
func NewActivityFuncSortActivityFunc(v ActivityFuncSort) ActivityFunc
NewActivityFuncSortActivityFunc returns new ActivityFunc from ActivityFuncSort.
func (*ActivityFunc) Decode ¶
func (s *ActivityFunc) Decode(d *jx.Decoder) error
Decode decodes ActivityFunc from json.
func (ActivityFunc) Encode ¶
func (s ActivityFunc) Encode(e *jx.Encoder)
Encode encodes ActivityFunc as json.
func (ActivityFunc) GetActivityFuncFilter ¶
func (s ActivityFunc) GetActivityFuncFilter() (v ActivityFuncFilter, ok bool)
GetActivityFuncFilter returns ActivityFuncFilter and true boolean if ActivityFunc is ActivityFuncFilter.
func (ActivityFunc) GetActivityFuncMap ¶
func (s ActivityFunc) GetActivityFuncMap() (v ActivityFuncMap, ok bool)
GetActivityFuncMap returns ActivityFuncMap and true boolean if ActivityFunc is ActivityFuncMap.
func (ActivityFunc) GetActivityFuncSlice ¶
func (s ActivityFunc) GetActivityFuncSlice() (v ActivityFuncSlice, ok bool)
GetActivityFuncSlice returns ActivityFuncSlice and true boolean if ActivityFunc is ActivityFuncSlice.
func (ActivityFunc) GetActivityFuncSort ¶
func (s ActivityFunc) GetActivityFuncSort() (v ActivityFuncSort, ok bool)
GetActivityFuncSort returns ActivityFuncSort and true boolean if ActivityFunc is ActivityFuncSort.
func (ActivityFunc) IsActivityFuncFilter ¶
func (s ActivityFunc) IsActivityFuncFilter() bool
IsActivityFuncFilter reports whether ActivityFunc is ActivityFuncFilter.
func (ActivityFunc) IsActivityFuncMap ¶
func (s ActivityFunc) IsActivityFuncMap() bool
IsActivityFuncMap reports whether ActivityFunc is ActivityFuncMap.
func (ActivityFunc) IsActivityFuncSlice ¶
func (s ActivityFunc) IsActivityFuncSlice() bool
IsActivityFuncSlice reports whether ActivityFunc is ActivityFuncSlice.
func (ActivityFunc) IsActivityFuncSort ¶
func (s ActivityFunc) IsActivityFuncSort() bool
IsActivityFuncSort reports whether ActivityFunc is ActivityFuncSort.
func (ActivityFunc) MarshalJSON ¶
func (s ActivityFunc) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ActivityFunc) SetActivityFuncFilter ¶
func (s *ActivityFunc) SetActivityFuncFilter(v ActivityFuncFilter)
SetActivityFuncFilter sets ActivityFunc to ActivityFuncFilter.
func (*ActivityFunc) SetActivityFuncMap ¶
func (s *ActivityFunc) SetActivityFuncMap(v ActivityFuncMap)
SetActivityFuncMap sets ActivityFunc to ActivityFuncMap.
func (*ActivityFunc) SetActivityFuncSlice ¶
func (s *ActivityFunc) SetActivityFuncSlice(v ActivityFuncSlice)
SetActivityFuncSlice sets ActivityFunc to ActivityFuncSlice.
func (*ActivityFunc) SetActivityFuncSort ¶
func (s *ActivityFunc) SetActivityFuncSort(v ActivityFuncSort)
SetActivityFuncSort sets ActivityFunc to ActivityFuncSort.
func (*ActivityFunc) UnmarshalJSON ¶
func (s *ActivityFunc) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ActivityFunc) Validate ¶
func (s ActivityFunc) Validate() error
type ActivityFuncFilter ¶
type ActivityFuncFilter struct { Kind ActivityFuncKind `json:"kind"` // Ключ значения в активности. Key string `json:"key"` // Операция сравнения. Op ActivityFuncFilterOp `json:"op"` // Значение, с которым выполняется сравнение. // > На данный момент поддерживается только числовое // значение. Value ActivityFuncFilterValue `json:"value"` }
Ref: #/components/schemas/ActivityFuncFilter
func (*ActivityFuncFilter) Decode ¶
func (s *ActivityFuncFilter) Decode(d *jx.Decoder) error
Decode decodes ActivityFuncFilter from json.
func (*ActivityFuncFilter) Encode ¶
func (s *ActivityFuncFilter) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ActivityFuncFilter) GetKey ¶
func (s *ActivityFuncFilter) GetKey() string
GetKey returns the value of Key.
func (*ActivityFuncFilter) GetKind ¶
func (s *ActivityFuncFilter) GetKind() ActivityFuncKind
GetKind returns the value of Kind.
func (*ActivityFuncFilter) GetOp ¶
func (s *ActivityFuncFilter) GetOp() ActivityFuncFilterOp
GetOp returns the value of Op.
func (*ActivityFuncFilter) GetValue ¶
func (s *ActivityFuncFilter) GetValue() ActivityFuncFilterValue
GetValue returns the value of Value.
func (*ActivityFuncFilter) MarshalJSON ¶
func (s *ActivityFuncFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ActivityFuncFilter) SetKey ¶
func (s *ActivityFuncFilter) SetKey(val string)
SetKey sets the value of Key.
func (*ActivityFuncFilter) SetKind ¶
func (s *ActivityFuncFilter) SetKind(val ActivityFuncKind)
SetKind sets the value of Kind.
func (*ActivityFuncFilter) SetOp ¶
func (s *ActivityFuncFilter) SetOp(val ActivityFuncFilterOp)
SetOp sets the value of Op.
func (*ActivityFuncFilter) SetValue ¶
func (s *ActivityFuncFilter) SetValue(val ActivityFuncFilterValue)
SetValue sets the value of Value.
func (*ActivityFuncFilter) UnmarshalJSON ¶
func (s *ActivityFuncFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ActivityFuncFilter) Validate ¶
func (s *ActivityFuncFilter) Validate() error
type ActivityFuncFilterOp ¶
type ActivityFuncFilterOp string
Операция сравнения.
const ( ActivityFuncFilterOpLess ActivityFuncFilterOp = "<" ActivityFuncFilterOpGreater ActivityFuncFilterOp = ">" ActivityFuncFilterOpGreaterEq ActivityFuncFilterOp = ">=" ActivityFuncFilterOpLessEq ActivityFuncFilterOp = "<=" ActivityFuncFilterOpEqEq ActivityFuncFilterOp = "==" ActivityFuncFilterOpEq ActivityFuncFilterOp = "!=" )
func (ActivityFuncFilterOp) AllValues ¶
func (ActivityFuncFilterOp) AllValues() []ActivityFuncFilterOp
AllValues returns all ActivityFuncFilterOp values.
func (*ActivityFuncFilterOp) Decode ¶
func (s *ActivityFuncFilterOp) Decode(d *jx.Decoder) error
Decode decodes ActivityFuncFilterOp from json.
func (ActivityFuncFilterOp) Encode ¶
func (s ActivityFuncFilterOp) Encode(e *jx.Encoder)
Encode encodes ActivityFuncFilterOp as json.
func (ActivityFuncFilterOp) MarshalJSON ¶
func (s ActivityFuncFilterOp) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ActivityFuncFilterOp) MarshalText ¶
func (s ActivityFuncFilterOp) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ActivityFuncFilterOp) UnmarshalJSON ¶
func (s *ActivityFuncFilterOp) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ActivityFuncFilterOp) UnmarshalText ¶
func (s *ActivityFuncFilterOp) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ActivityFuncFilterOp) Validate ¶
func (s ActivityFuncFilterOp) Validate() error
type ActivityFuncFilterValue ¶
type ActivityFuncFilterValue struct { Type ActivityFuncFilterValueType // switch on this field Float64 float64 }
Значение, с которым выполняется сравнение. > На данный момент поддерживается только числовое значение. ActivityFuncFilterValue represents sum type.
func NewFloat64ActivityFuncFilterValue ¶
func NewFloat64ActivityFuncFilterValue(v float64) ActivityFuncFilterValue
NewFloat64ActivityFuncFilterValue returns new ActivityFuncFilterValue from float64.
func (*ActivityFuncFilterValue) Decode ¶
func (s *ActivityFuncFilterValue) Decode(d *jx.Decoder) error
Decode decodes ActivityFuncFilterValue from json.
func (ActivityFuncFilterValue) Encode ¶
func (s ActivityFuncFilterValue) Encode(e *jx.Encoder)
Encode encodes ActivityFuncFilterValue as json.
func (ActivityFuncFilterValue) GetFloat64 ¶
func (s ActivityFuncFilterValue) GetFloat64() (v float64, ok bool)
GetFloat64 returns float64 and true boolean if ActivityFuncFilterValue is float64.
func (ActivityFuncFilterValue) IsFloat64 ¶
func (s ActivityFuncFilterValue) IsFloat64() bool
IsFloat64 reports whether ActivityFuncFilterValue is float64.
func (ActivityFuncFilterValue) MarshalJSON ¶
func (s ActivityFuncFilterValue) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ActivityFuncFilterValue) SetFloat64 ¶
func (s *ActivityFuncFilterValue) SetFloat64(v float64)
SetFloat64 sets ActivityFuncFilterValue to float64.
func (*ActivityFuncFilterValue) UnmarshalJSON ¶
func (s *ActivityFuncFilterValue) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ActivityFuncFilterValue) Validate ¶
func (s ActivityFuncFilterValue) Validate() error
type ActivityFuncFilterValueType ¶
type ActivityFuncFilterValueType string
ActivityFuncFilterValueType is oneOf type of ActivityFuncFilterValue.
const (
Float64ActivityFuncFilterValue ActivityFuncFilterValueType = "float64"
)
Possible values for ActivityFuncFilterValueType.
type ActivityFuncKind ¶
type ActivityFuncKind string
func (*ActivityFuncKind) Decode ¶
func (s *ActivityFuncKind) Decode(d *jx.Decoder) error
Decode decodes ActivityFuncKind from json.
func (ActivityFuncKind) Encode ¶
func (s ActivityFuncKind) Encode(e *jx.Encoder)
Encode encodes ActivityFuncKind as json.
func (ActivityFuncKind) MarshalJSON ¶
func (s ActivityFuncKind) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ActivityFuncKind) UnmarshalJSON ¶
func (s *ActivityFuncKind) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ActivityFuncMap ¶
type ActivityFuncMap struct { Kind ActivityFuncKind `json:"kind"` // Ключ в который будет помещено значение возвращенное // формулой. Key string `json:"key"` // Формула вычисления значения. Formula string `json:"formula"` }
Ref: #/components/schemas/ActivityFuncMap
func (*ActivityFuncMap) Decode ¶
func (s *ActivityFuncMap) Decode(d *jx.Decoder) error
Decode decodes ActivityFuncMap from json.
func (*ActivityFuncMap) Encode ¶
func (s *ActivityFuncMap) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ActivityFuncMap) GetFormula ¶
func (s *ActivityFuncMap) GetFormula() string
GetFormula returns the value of Formula.
func (*ActivityFuncMap) GetKey ¶
func (s *ActivityFuncMap) GetKey() string
GetKey returns the value of Key.
func (*ActivityFuncMap) GetKind ¶
func (s *ActivityFuncMap) GetKind() ActivityFuncKind
GetKind returns the value of Kind.
func (*ActivityFuncMap) MarshalJSON ¶
func (s *ActivityFuncMap) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ActivityFuncMap) SetFormula ¶
func (s *ActivityFuncMap) SetFormula(val string)
SetFormula sets the value of Formula.
func (*ActivityFuncMap) SetKey ¶
func (s *ActivityFuncMap) SetKey(val string)
SetKey sets the value of Key.
func (*ActivityFuncMap) SetKind ¶
func (s *ActivityFuncMap) SetKind(val ActivityFuncKind)
SetKind sets the value of Kind.
func (*ActivityFuncMap) UnmarshalJSON ¶
func (s *ActivityFuncMap) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ActivityFuncMap) Validate ¶
func (s *ActivityFuncMap) Validate() error
type ActivityFuncSlice ¶
type ActivityFuncSlice struct { Kind ActivityFuncKind `json:"kind"` // Левая граница среза. Left OptInt32 `json:"left"` // Правая граница среза. Right int32 `json:"right"` }
Ref: #/components/schemas/ActivityFuncSlice
func (*ActivityFuncSlice) Decode ¶
func (s *ActivityFuncSlice) Decode(d *jx.Decoder) error
Decode decodes ActivityFuncSlice from json.
func (*ActivityFuncSlice) Encode ¶
func (s *ActivityFuncSlice) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ActivityFuncSlice) GetKind ¶
func (s *ActivityFuncSlice) GetKind() ActivityFuncKind
GetKind returns the value of Kind.
func (*ActivityFuncSlice) GetLeft ¶
func (s *ActivityFuncSlice) GetLeft() OptInt32
GetLeft returns the value of Left.
func (*ActivityFuncSlice) GetRight ¶
func (s *ActivityFuncSlice) GetRight() int32
GetRight returns the value of Right.
func (*ActivityFuncSlice) MarshalJSON ¶
func (s *ActivityFuncSlice) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ActivityFuncSlice) SetKind ¶
func (s *ActivityFuncSlice) SetKind(val ActivityFuncKind)
SetKind sets the value of Kind.
func (*ActivityFuncSlice) SetLeft ¶
func (s *ActivityFuncSlice) SetLeft(val OptInt32)
SetLeft sets the value of Left.
func (*ActivityFuncSlice) SetRight ¶
func (s *ActivityFuncSlice) SetRight(val int32)
SetRight sets the value of Right.
func (*ActivityFuncSlice) UnmarshalJSON ¶
func (s *ActivityFuncSlice) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ActivityFuncSlice) Validate ¶
func (s *ActivityFuncSlice) Validate() error
type ActivityFuncSort ¶
type ActivityFuncSort struct { Kind ActivityFuncKind `json:"kind"` // Ключ сортировки. Key string `json:"key"` // Порядок сортировки. Ordering ActivityFuncSortOrdering `json:"ordering"` }
Ref: #/components/schemas/ActivityFuncSort
func (*ActivityFuncSort) Decode ¶
func (s *ActivityFuncSort) Decode(d *jx.Decoder) error
Decode decodes ActivityFuncSort from json.
func (*ActivityFuncSort) Encode ¶
func (s *ActivityFuncSort) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ActivityFuncSort) GetKey ¶
func (s *ActivityFuncSort) GetKey() string
GetKey returns the value of Key.
func (*ActivityFuncSort) GetKind ¶
func (s *ActivityFuncSort) GetKind() ActivityFuncKind
GetKind returns the value of Kind.
func (*ActivityFuncSort) GetOrdering ¶
func (s *ActivityFuncSort) GetOrdering() ActivityFuncSortOrdering
GetOrdering returns the value of Ordering.
func (*ActivityFuncSort) MarshalJSON ¶
func (s *ActivityFuncSort) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ActivityFuncSort) SetKey ¶
func (s *ActivityFuncSort) SetKey(val string)
SetKey sets the value of Key.
func (*ActivityFuncSort) SetKind ¶
func (s *ActivityFuncSort) SetKind(val ActivityFuncKind)
SetKind sets the value of Kind.
func (*ActivityFuncSort) SetOrdering ¶
func (s *ActivityFuncSort) SetOrdering(val ActivityFuncSortOrdering)
SetOrdering sets the value of Ordering.
func (*ActivityFuncSort) UnmarshalJSON ¶
func (s *ActivityFuncSort) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ActivityFuncSort) Validate ¶
func (s *ActivityFuncSort) Validate() error
type ActivityFuncSortOrdering ¶
type ActivityFuncSortOrdering string
Порядок сортировки.
const ( ActivityFuncSortOrderingAsc ActivityFuncSortOrdering = "asc" ActivityFuncSortOrderingDesc ActivityFuncSortOrdering = "desc" )
func (ActivityFuncSortOrdering) AllValues ¶
func (ActivityFuncSortOrdering) AllValues() []ActivityFuncSortOrdering
AllValues returns all ActivityFuncSortOrdering values.
func (*ActivityFuncSortOrdering) Decode ¶
func (s *ActivityFuncSortOrdering) Decode(d *jx.Decoder) error
Decode decodes ActivityFuncSortOrdering from json.
func (ActivityFuncSortOrdering) Encode ¶
func (s ActivityFuncSortOrdering) Encode(e *jx.Encoder)
Encode encodes ActivityFuncSortOrdering as json.
func (ActivityFuncSortOrdering) MarshalJSON ¶
func (s ActivityFuncSortOrdering) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ActivityFuncSortOrdering) MarshalText ¶
func (s ActivityFuncSortOrdering) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ActivityFuncSortOrdering) UnmarshalJSON ¶
func (s *ActivityFuncSortOrdering) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ActivityFuncSortOrdering) UnmarshalText ¶
func (s *ActivityFuncSortOrdering) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ActivityFuncSortOrdering) Validate ¶
func (s ActivityFuncSortOrdering) Validate() error
type ActivityFuncType ¶
type ActivityFuncType string
ActivityFuncType is oneOf type of ActivityFunc.
const ( ActivityFuncSliceActivityFunc ActivityFuncType = "ActivityFuncSlice" ActivityFuncSortActivityFunc ActivityFuncType = "ActivityFuncSort" ActivityFuncFilterActivityFunc ActivityFuncType = "ActivityFuncFilter" ActivityFuncMapActivityFunc ActivityFuncType = "ActivityFuncMap" )
Possible values for ActivityFuncType.
type ActivityFuncs ¶
type ActivityFuncs []ActivityFunc
func (*ActivityFuncs) Decode ¶
func (s *ActivityFuncs) Decode(d *jx.Decoder) error
Decode decodes ActivityFuncs from json.
func (ActivityFuncs) Encode ¶
func (s ActivityFuncs) Encode(e *jx.Encoder)
Encode encodes ActivityFuncs as json.
func (ActivityFuncs) MarshalJSON ¶
func (s ActivityFuncs) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ActivityFuncs) UnmarshalJSON ¶
func (s *ActivityFuncs) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ActivityFuncs) Validate ¶
func (s ActivityFuncs) Validate() error
type AdminAccessRequired ¶
type AdminAccessRequired struct { // Текстовое описание ошибки. ErrorMessage string `json:"error_message"` }
Ref: #/components/schemas/AdminAccessRequired
func (*AdminAccessRequired) Decode ¶
func (s *AdminAccessRequired) Decode(d *jx.Decoder) error
Decode decodes AdminAccessRequired from json.
func (*AdminAccessRequired) Encode ¶
func (s *AdminAccessRequired) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AdminAccessRequired) GetErrorMessage ¶
func (s *AdminAccessRequired) GetErrorMessage() string
GetErrorMessage returns the value of ErrorMessage.
func (*AdminAccessRequired) MarshalJSON ¶
func (s *AdminAccessRequired) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AdminAccessRequired) SetErrorMessage ¶
func (s *AdminAccessRequired) SetErrorMessage(val string)
SetErrorMessage sets the value of ErrorMessage.
func (*AdminAccessRequired) UnmarshalJSON ¶
func (s *AdminAccessRequired) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ApplicationID ¶
func (*ApplicationID) Decode ¶
func (s *ApplicationID) Decode(d *jx.Decoder) error
Decode decodes ApplicationID from json.
func (ApplicationID) Encode ¶
func (s ApplicationID) Encode(e *jx.Encoder)
Encode encodes ApplicationID as json.
func (ApplicationID) MarshalJSON ¶
func (s ApplicationID) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ApplicationID) UnmarshalJSON ¶
func (s *ApplicationID) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type AwardsListOKHeaders ¶
type AwardsListOKHeaders struct { XCount int64 Response []AwardsListOKItem }
AwardsListOKHeaders wraps []AwardsListOKItem with response headers.
func (*AwardsListOKHeaders) GetResponse ¶
func (s *AwardsListOKHeaders) GetResponse() []AwardsListOKItem
GetResponse returns the value of Response.
func (*AwardsListOKHeaders) GetXCount ¶
func (s *AwardsListOKHeaders) GetXCount() int64
GetXCount returns the value of XCount.
func (*AwardsListOKHeaders) SetResponse ¶
func (s *AwardsListOKHeaders) SetResponse(val []AwardsListOKItem)
SetResponse sets the value of Response.
func (*AwardsListOKHeaders) SetXCount ¶
func (s *AwardsListOKHeaders) SetXCount(val int64)
SetXCount sets the value of XCount.
func (*AwardsListOKHeaders) Validate ¶
func (s *AwardsListOKHeaders) Validate() error
type AwardsListOKItem ¶
type AwardsListOKItem struct { // Идентификатор награды. ID int32 `json:"id"` // Дата создания. CreatedAt time.Time `json:"created_at"` // Дата обновления. UpdatedAt time.Time `json:"updated_at"` TraditionID NilTraditionID `json:"tradition_id"` InstrumentID NilInstrumentID `json:"instrument_id"` // Уровень традиции/инструмента ассоциированный с этой // наградой. AwardLevel int32 `json:"award_level"` // Опциональный уровень зависимой традиции/инструмента, // без которого нельзя получить награду. При отсутствии // зависимости, содержит `0`. DependencyLevel int32 `json:"dependency_level"` // Кол-во баллов необходимое для достижения `award_level` и // получения этой награды. RequiredScores float64 `json:"required_scores"` // Название награды. Name string `json:"name"` // Описание награды. Description string `json:"description"` // URL иконки награды. IconURL string `json:"icon_url"` // Приложения, в которых реализована награда. // Возвращается только при указании параметра // `with_applications`. Applications []ApplicationID `json:"applications"` }
Merged schema.
func (*AwardsListOKItem) Decode ¶
func (s *AwardsListOKItem) Decode(d *jx.Decoder) error
Decode decodes AwardsListOKItem from json.
func (*AwardsListOKItem) Encode ¶
func (s *AwardsListOKItem) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AwardsListOKItem) GetApplications ¶
func (s *AwardsListOKItem) GetApplications() []ApplicationID
GetApplications returns the value of Applications.
func (*AwardsListOKItem) GetAwardLevel ¶
func (s *AwardsListOKItem) GetAwardLevel() int32
GetAwardLevel returns the value of AwardLevel.
func (*AwardsListOKItem) GetCreatedAt ¶
func (s *AwardsListOKItem) GetCreatedAt() time.Time
GetCreatedAt returns the value of CreatedAt.
func (*AwardsListOKItem) GetDependencyLevel ¶
func (s *AwardsListOKItem) GetDependencyLevel() int32
GetDependencyLevel returns the value of DependencyLevel.
func (*AwardsListOKItem) GetDescription ¶
func (s *AwardsListOKItem) GetDescription() string
GetDescription returns the value of Description.
func (*AwardsListOKItem) GetID ¶
func (s *AwardsListOKItem) GetID() int32
GetID returns the value of ID.
func (*AwardsListOKItem) GetIconURL ¶
func (s *AwardsListOKItem) GetIconURL() string
GetIconURL returns the value of IconURL.
func (*AwardsListOKItem) GetInstrumentID ¶
func (s *AwardsListOKItem) GetInstrumentID() NilInstrumentID
GetInstrumentID returns the value of InstrumentID.
func (*AwardsListOKItem) GetName ¶
func (s *AwardsListOKItem) GetName() string
GetName returns the value of Name.
func (*AwardsListOKItem) GetRequiredScores ¶
func (s *AwardsListOKItem) GetRequiredScores() float64
GetRequiredScores returns the value of RequiredScores.
func (*AwardsListOKItem) GetTraditionID ¶
func (s *AwardsListOKItem) GetTraditionID() NilTraditionID
GetTraditionID returns the value of TraditionID.
func (*AwardsListOKItem) GetUpdatedAt ¶
func (s *AwardsListOKItem) GetUpdatedAt() time.Time
GetUpdatedAt returns the value of UpdatedAt.
func (*AwardsListOKItem) MarshalJSON ¶
func (s *AwardsListOKItem) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AwardsListOKItem) SetApplications ¶
func (s *AwardsListOKItem) SetApplications(val []ApplicationID)
SetApplications sets the value of Applications.
func (*AwardsListOKItem) SetAwardLevel ¶
func (s *AwardsListOKItem) SetAwardLevel(val int32)
SetAwardLevel sets the value of AwardLevel.
func (*AwardsListOKItem) SetCreatedAt ¶
func (s *AwardsListOKItem) SetCreatedAt(val time.Time)
SetCreatedAt sets the value of CreatedAt.
func (*AwardsListOKItem) SetDependencyLevel ¶
func (s *AwardsListOKItem) SetDependencyLevel(val int32)
SetDependencyLevel sets the value of DependencyLevel.
func (*AwardsListOKItem) SetDescription ¶
func (s *AwardsListOKItem) SetDescription(val string)
SetDescription sets the value of Description.
func (*AwardsListOKItem) SetID ¶
func (s *AwardsListOKItem) SetID(val int32)
SetID sets the value of ID.
func (*AwardsListOKItem) SetIconURL ¶
func (s *AwardsListOKItem) SetIconURL(val string)
SetIconURL sets the value of IconURL.
func (*AwardsListOKItem) SetInstrumentID ¶
func (s *AwardsListOKItem) SetInstrumentID(val NilInstrumentID)
SetInstrumentID sets the value of InstrumentID.
func (*AwardsListOKItem) SetName ¶
func (s *AwardsListOKItem) SetName(val string)
SetName sets the value of Name.
func (*AwardsListOKItem) SetRequiredScores ¶
func (s *AwardsListOKItem) SetRequiredScores(val float64)
SetRequiredScores sets the value of RequiredScores.
func (*AwardsListOKItem) SetTraditionID ¶
func (s *AwardsListOKItem) SetTraditionID(val NilTraditionID)
SetTraditionID sets the value of TraditionID.
func (*AwardsListOKItem) SetUpdatedAt ¶
func (s *AwardsListOKItem) SetUpdatedAt(val time.Time)
SetUpdatedAt sets the value of UpdatedAt.
func (*AwardsListOKItem) UnmarshalJSON ¶
func (s *AwardsListOKItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AwardsListOKItem) Validate ¶
func (s *AwardsListOKItem) Validate() error
type AwardsListOrderBy ¶
type AwardsListOrderBy string
const ( AwardsListOrderByAwardLevel AwardsListOrderBy = "award_level" AwardsListOrderByCreatedAtDesc AwardsListOrderBy = "created_at_desc" AwardsListOrderByCreatedAtAsc AwardsListOrderBy = "created_at_asc" AwardsListOrderByUpdatedAtDesc AwardsListOrderBy = "updated_at_desc" AwardsListOrderByUpdatedAtAsc AwardsListOrderBy = "updated_at_asc" AwardsListOrderByTraditionID AwardsListOrderBy = "tradition_id" AwardsListOrderByInstrumentID AwardsListOrderBy = "instrument_id" )
func (AwardsListOrderBy) AllValues ¶
func (AwardsListOrderBy) AllValues() []AwardsListOrderBy
AllValues returns all AwardsListOrderBy values.
func (AwardsListOrderBy) MarshalText ¶
func (s AwardsListOrderBy) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*AwardsListOrderBy) UnmarshalText ¶
func (s *AwardsListOrderBy) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (AwardsListOrderBy) Validate ¶
func (s AwardsListOrderBy) Validate() error
type AwardsListParams ¶
type AwardsListParams struct { // Кол-во объектов выборки для пропуска. Offset OptInt32 // Максимум объектов возвращаемых в теле ответа. Limit OptInt32 // Фильтрация по ID традиции. TraditionID OptInt32 // Фильтрация по ID инструмента. InstrumentID OptInt32 // Порядок сортировки. OrderBy OptAwardsListOrderBy // Включить в ответ свойство `applications`. WithApplications OptBool }
AwardsListParams is parameters of AwardsList operation.
type BerlogaJWT ¶
type BerlogaJWT struct {
APIKey string
}
func (*BerlogaJWT) GetAPIKey ¶
func (s *BerlogaJWT) GetAPIKey() string
GetAPIKey returns the value of APIKey.
func (*BerlogaJWT) SetAPIKey ¶
func (s *BerlogaJWT) SetAPIKey(val string)
SetAPIKey sets the value of APIKey.
type ChallengesListOKHeaders ¶
type ChallengesListOKHeaders struct { XCount int64 Response []ChallengesListOKItem }
ChallengesListOKHeaders wraps []ChallengesListOKItem with response headers.
func (*ChallengesListOKHeaders) GetResponse ¶
func (s *ChallengesListOKHeaders) GetResponse() []ChallengesListOKItem
GetResponse returns the value of Response.
func (*ChallengesListOKHeaders) GetXCount ¶
func (s *ChallengesListOKHeaders) GetXCount() int64
GetXCount returns the value of XCount.
func (*ChallengesListOKHeaders) SetResponse ¶
func (s *ChallengesListOKHeaders) SetResponse(val []ChallengesListOKItem)
SetResponse sets the value of Response.
func (*ChallengesListOKHeaders) SetXCount ¶
func (s *ChallengesListOKHeaders) SetXCount(val int64)
SetXCount sets the value of XCount.
func (*ChallengesListOKHeaders) Validate ¶
func (s *ChallengesListOKHeaders) Validate() error
type ChallengesListOKItem ¶
type ChallengesListOKItem struct { ID int32 `json:"id"` Description string `json:"description"` // URL иконки-изображения испытания. IconURL string `json:"icon_url"` // Приложения, активности из которых участвуют в // испытании. Applications []ApplicationID `json:"applications"` }
func (*ChallengesListOKItem) Decode ¶
func (s *ChallengesListOKItem) Decode(d *jx.Decoder) error
Decode decodes ChallengesListOKItem from json.
func (*ChallengesListOKItem) Encode ¶
func (s *ChallengesListOKItem) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ChallengesListOKItem) GetApplications ¶
func (s *ChallengesListOKItem) GetApplications() []ApplicationID
GetApplications returns the value of Applications.
func (*ChallengesListOKItem) GetDescription ¶
func (s *ChallengesListOKItem) GetDescription() string
GetDescription returns the value of Description.
func (*ChallengesListOKItem) GetID ¶
func (s *ChallengesListOKItem) GetID() int32
GetID returns the value of ID.
func (*ChallengesListOKItem) GetIconURL ¶
func (s *ChallengesListOKItem) GetIconURL() string
GetIconURL returns the value of IconURL.
func (*ChallengesListOKItem) MarshalJSON ¶
func (s *ChallengesListOKItem) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ChallengesListOKItem) SetApplications ¶
func (s *ChallengesListOKItem) SetApplications(val []ApplicationID)
SetApplications sets the value of Applications.
func (*ChallengesListOKItem) SetDescription ¶
func (s *ChallengesListOKItem) SetDescription(val string)
SetDescription sets the value of Description.
func (*ChallengesListOKItem) SetID ¶
func (s *ChallengesListOKItem) SetID(val int32)
SetID sets the value of ID.
func (*ChallengesListOKItem) SetIconURL ¶
func (s *ChallengesListOKItem) SetIconURL(val string)
SetIconURL sets the value of IconURL.
func (*ChallengesListOKItem) UnmarshalJSON ¶
func (s *ChallengesListOKItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ChallengesListOKItem) Validate ¶
func (s *ChallengesListOKItem) Validate() error
type ChallengesListParams ¶
type ChallengesListParams struct { // Кол-во объектов выборки для пропуска. Offset OptInt32 // Максимум объектов возвращаемых в теле ответа. Limit OptInt32 }
ChallengesListParams is parameters of ChallengesList operation.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements OAS client.
func NewClient ¶
func NewClient(serverURL string, sec SecuritySource, opts ...ClientOption) (*Client, error)
NewClient initializes new Client defined by OAS.
func (*Client) AwardsList ¶
func (c *Client) AwardsList(ctx context.Context, params AwardsListParams) (*AwardsListOKHeaders, error)
AwardsList invokes AwardsList operation.
Список наград, выдаваемых за достижение уровеней по традициям и инструментам.
GET /awards
func (*Client) ChallengesList ¶
func (c *Client) ChallengesList(ctx context.Context, params ChallengesListParams) (*ChallengesListOKHeaders, error)
ChallengesList invokes ChallengesList operation.
Список испытаний.
GET /challenges
func (*Client) ComplexChallengeCreate ¶
func (c *Client) ComplexChallengeCreate(ctx context.Context, request *ComplexChallengeCreateReq) (ComplexChallengeCreateRes, error)
ComplexChallengeCreate invokes ComplexChallengeCreate operation.
> Достуно только для администрации.
POST /complexch
func (*Client) ComplexChallengeGoalCreate ¶
func (c *Client) ComplexChallengeGoalCreate(ctx context.Context, request *ComplexChallengeGoalCreateReq, params ComplexChallengeGoalCreateParams) (ComplexChallengeGoalCreateRes, error)
ComplexChallengeGoalCreate invokes ComplexChallengeGoalCreate operation.
> Достуно только для администрации.
POST /complexch/{complexch_id}/goals
func (*Client) ComplexChallengeGoalDelete ¶
func (c *Client) ComplexChallengeGoalDelete(ctx context.Context, params ComplexChallengeGoalDeleteParams) (ComplexChallengeGoalDeleteRes, error)
ComplexChallengeGoalDelete invokes ComplexChallengeGoalDelete operation.
> Достуно только для администрации.
DELETE /complexch/goals/{goal_id}
func (*Client) ComplexChallengeGoalRead ¶
func (c *Client) ComplexChallengeGoalRead(ctx context.Context, params ComplexChallengeGoalReadParams) (ComplexChallengeGoalReadRes, error)
ComplexChallengeGoalRead invokes ComplexChallengeGoalRead operation.
> Достуно только для администрации.
GET /complexch/goals/{goal_id}
func (*Client) ComplexChallengeGoalUpdate ¶
func (c *Client) ComplexChallengeGoalUpdate(ctx context.Context, request *ComplexChallengeGoalFields, params ComplexChallengeGoalUpdateParams) (ComplexChallengeGoalUpdateRes, error)
ComplexChallengeGoalUpdate invokes ComplexChallengeGoalUpdate operation.
> Достуно только для администрации.
PATCH /complexch/goals/{goal_id}
func (*Client) ComplexChallengeGoalsList ¶
func (c *Client) ComplexChallengeGoalsList(ctx context.Context, params ComplexChallengeGoalsListParams) (ComplexChallengeGoalsListRes, error)
ComplexChallengeGoalsList invokes ComplexChallengeGoalsList operation.
> Достуно только для администрации.
GET /complexch/{complexch_id}/goals
func (*Client) ComplexChallengePublic ¶
func (c *Client) ComplexChallengePublic(ctx context.Context, params ComplexChallengePublicParams) (ComplexChallengePublicRes, error)
ComplexChallengePublic invokes ComplexChallengePublic operation.
> Достуно только для администрации. Смена состояния на опубликованное требует выполнение валидации испытания и его целей. Подробнее см. в описании операции [ComplexChallengeValidate](#tag/complexch/operation/ComplexChallengeValidate).
PUT /complexch/{complexch_id}/public
func (*Client) ComplexChallengeRead ¶
func (c *Client) ComplexChallengeRead(ctx context.Context, params ComplexChallengeReadParams) (ComplexChallengeReadRes, error)
ComplexChallengeRead invokes ComplexChallengeRead operation.
Наличие полей `score_formula` и `required_score` зависит от наличия административных прав. Для массива `goals` так же требуются административные права, а так же явный запрос этого свойства.
GET /complexch/{complexch_id}
func (*Client) ComplexChallengeUpdate ¶
func (c *Client) ComplexChallengeUpdate(ctx context.Context, request *ComplexChallengeUpdateReq, params ComplexChallengeUpdateParams) (ComplexChallengeUpdateRes, error)
ComplexChallengeUpdate invokes ComplexChallengeUpdate operation.
> Достуно только для администрации.
PATCH /complexch/{complexch_id}
func (*Client) ComplexChallengeValidate ¶
func (c *Client) ComplexChallengeValidate(ctx context.Context, params ComplexChallengeValidateParams) (ComplexChallengeValidateRes, error)
ComplexChallengeValidate invokes ComplexChallengeValidate operation.
> Достуно только для администрации. Ошибки валидации включают в себя массив полей относящихся к ошибке. Эти поля содержат путь до ошибки, в котором точка является разделителем. > К примеру, ошибка связанная с целью `ID=23` будет иметь путь `goals.23`. > > А ошибка с связанная с полем `required_score` цели `ID=23`: `goals.23. required_score`. Поля самого испытания не содержат префиксов, а только имена самих полей.
POST /complexch/{complexch_id}/validate
func (*Client) ComplexChallengesList ¶
func (c *Client) ComplexChallengesList(ctx context.Context, params ComplexChallengesListParams) (*ComplexChallengesListOKHeaders, error)
ComplexChallengesList invokes ComplexChallengesList operation.
Список агрегатных испытаний.
GET /complexch
func (*Client) ComplexChallengesResultsList ¶
func (c *Client) ComplexChallengesResultsList(ctx context.Context, params ComplexChallengesResultsListParams) (*ComplexChallengesResultsListOKHeaders, error)
ComplexChallengesResultsList invokes ComplexChallengesResultsList operation.
Список результатов прохождения агрегатных испытаний.
GET /complexch/results
func (*Client) FormulaParse ¶
func (c *Client) FormulaParse(ctx context.Context, request *FormulaParseReq) (FormulaParseRes, error)
FormulaParse invokes FormulaParse operation.
> Достуно только для администрации. Формула представляется в форме строки последовательности операций, группируемых круглыми скобками в дерево таких последовательностей. Формулы имеют разное назначение, в следствии чего, и разный контекст вычисления. Но все они в результате вычисления имеют только одно числовое значение. В комплексных испытаниях итоговый балл вычисляется формулой для одного кортежа, которая вычисляет итоговый балл на основе переменных полученных в результате агрегаций. А ниже уровнем, в целях испытания, агрегатные формулы вычисляют значения этих переменных. ### Агрегатные формулы для множества кортежей Агрегатные формулы вычисляются в отношении множества кортежей с активностями. Эти формулы могут обращаться к свойствам активностей и их метрикам только через агрегатные функции. Такие формулы используются для вычисления значений переменных, объявленных для целей комплексных испытаний. ### Формулы вычисления из переменных одного кортежа Такие формулы используются для вычисления итогового балла испытания. В рамках вычисления используются числовые переменные из целей. Значение каждой из переменных представлено в единичном числе. В следствии чего, агрегатные функции в такой формуле не имеют смысла, а их упоминание в ней вызовет ошибку валидации.
POST /formula
func (*Client) InstrumentCreate ¶
func (c *Client) InstrumentCreate(ctx context.Context, request *InstrumentCreateRequest) (InstrumentCreateRes, error)
InstrumentCreate invokes InstrumentCreate operation.
Добавление инструмента.
POST /instruments
func (*Client) InstrumentRead ¶
func (c *Client) InstrumentRead(ctx context.Context, params InstrumentReadParams) (InstrumentReadRes, error)
InstrumentRead invokes InstrumentRead operation.
Инструмент.
GET /instruments/{instrument_id}
func (*Client) InstrumentUpdate ¶
func (c *Client) InstrumentUpdate(ctx context.Context, request *InstrumentUpdateRequest, params InstrumentUpdateParams) (InstrumentUpdateRes, error)
InstrumentUpdate invokes InstrumentUpdate operation.
Обновление инструмента.
PATCH /instruments/{instrument_id}
func (*Client) InstrumentsList ¶
func (c *Client) InstrumentsList(ctx context.Context, params InstrumentsListParams) (*InstrumentsListOKHeaders, error)
InstrumentsList invokes InstrumentsList operation.
Список инструментов.
GET /instruments
func (*Client) PassedChallengesList ¶
func (c *Client) PassedChallengesList(ctx context.Context, params PassedChallengesListParams) (*PassedChallengesListOKHeaders, error)
PassedChallengesList invokes PassedChallengesList operation.
Параметры `player_id` и `talent_id` взаимоисключаемы. При аутентификации токеном `TalentOAuth`, предустанавливается параметр `talent_id`. При аутентификации токеном `BerlogaJWT`, предустанавливается параметр `player_id`.
GET /challenges/passed
func (*Client) TraditionCreate ¶
func (c *Client) TraditionCreate(ctx context.Context, request *TraditionCreateRequest) (TraditionCreateRes, error)
TraditionCreate invokes TraditionCreate operation.
Добавление традиции.
POST /traditions
func (*Client) TraditionInstrumentsList ¶
func (c *Client) TraditionInstrumentsList(ctx context.Context, params TraditionInstrumentsListParams) ([]Instrument, error)
TraditionInstrumentsList invokes TraditionInstrumentsList operation.
Список инструментов традиции.
GET /traditions/{tradition_id}/instruments
func (*Client) TraditionRead ¶
func (c *Client) TraditionRead(ctx context.Context, params TraditionReadParams) (TraditionReadRes, error)
TraditionRead invokes TraditionRead operation.
Традиция.
GET /traditions/{tradition_id}
func (*Client) TraditionUpdate ¶
func (c *Client) TraditionUpdate(ctx context.Context, request *TraditionUpdateRequest, params TraditionUpdateParams) (TraditionUpdateRes, error)
TraditionUpdate invokes TraditionUpdate operation.
Обновление традиции.
PATCH /traditions/{tradition_id}
func (*Client) TraditionsList ¶
func (c *Client) TraditionsList(ctx context.Context, params TraditionsListParams) ([]Tradition, error)
TraditionsList invokes TraditionsList operation.
Список традиций.
GET /traditions
func (*Client) UserAwardDisplayed ¶
func (c *Client) UserAwardDisplayed(ctx context.Context, params UserAwardDisplayedParams) error
UserAwardDisplayed invokes UserAwardDisplayed operation.
Отметка награды как продемонстрированной пользователю в приложении.
POST /user-awards/{award_id}/displayed
func (*Client) UserAwardsList ¶
func (c *Client) UserAwardsList(ctx context.Context, params UserAwardsListParams) (*UserAwardsListOKHeaders, error)
UserAwardsList invokes UserAwardsList operation.
Формат возвращаемых объектов в массиве зависит от типа используемой авторизации. Для `BerlogaJWT` возращаются `PlayerAward`, для `TalentOAuth` - `TalentUserAward`.
GET /user-awards
func (*Client) UserProgressList ¶
func (c *Client) UserProgressList(ctx context.Context, params UserProgressListParams) (*UserProgressListOKHeaders, error)
UserProgressList invokes UserProgressList operation.
Прогресс пользователя по традициям и инструментам.
GET /user-progress
type ClientOption ¶
type ClientOption interface {
// contains filtered or unexported methods
}
ClientOption is client config option.
func WithClient ¶
func WithClient(client ht.Client) ClientOption
WithClient specifies http client to use.
type ComplexChallenge ¶
type ComplexChallenge struct { // ID испытания. ID int32 `json:"id"` // Дата создания. CreatedAt time.Time `json:"created_at"` // Дата обновления. UpdatedAt time.Time `json:"updated_at"` // Статус публичности испытания. Public bool `json:"public"` UpdateStrategy ComplexChallengeUpdateStrategy `json:"update_strategy"` // Название испытания. Name string `json:"name"` // Начало периода допускаемых в испытании активностей. PeriodFrom NilDateTime `json:"period_from"` // Завершение периода допускаемых в испытании // активностей. PeriodTo NilDateTime `json:"period_to"` // Формула вычисления балла. ScoreFormula string `json:"score_formula"` // Проходной балл. RequiredScore float64 `json:"required_score"` }
Merged schema. Ref: #/components/schemas/ComplexChallenge
func (*ComplexChallenge) Decode ¶
func (s *ComplexChallenge) Decode(d *jx.Decoder) error
Decode decodes ComplexChallenge from json.
func (*ComplexChallenge) Encode ¶
func (s *ComplexChallenge) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ComplexChallenge) GetCreatedAt ¶
func (s *ComplexChallenge) GetCreatedAt() time.Time
GetCreatedAt returns the value of CreatedAt.
func (*ComplexChallenge) GetID ¶
func (s *ComplexChallenge) GetID() int32
GetID returns the value of ID.
func (*ComplexChallenge) GetName ¶
func (s *ComplexChallenge) GetName() string
GetName returns the value of Name.
func (*ComplexChallenge) GetPeriodFrom ¶
func (s *ComplexChallenge) GetPeriodFrom() NilDateTime
GetPeriodFrom returns the value of PeriodFrom.
func (*ComplexChallenge) GetPeriodTo ¶
func (s *ComplexChallenge) GetPeriodTo() NilDateTime
GetPeriodTo returns the value of PeriodTo.
func (*ComplexChallenge) GetPublic ¶
func (s *ComplexChallenge) GetPublic() bool
GetPublic returns the value of Public.
func (*ComplexChallenge) GetRequiredScore ¶
func (s *ComplexChallenge) GetRequiredScore() float64
GetRequiredScore returns the value of RequiredScore.
func (*ComplexChallenge) GetScoreFormula ¶
func (s *ComplexChallenge) GetScoreFormula() string
GetScoreFormula returns the value of ScoreFormula.
func (*ComplexChallenge) GetUpdateStrategy ¶
func (s *ComplexChallenge) GetUpdateStrategy() ComplexChallengeUpdateStrategy
GetUpdateStrategy returns the value of UpdateStrategy.
func (*ComplexChallenge) GetUpdatedAt ¶
func (s *ComplexChallenge) GetUpdatedAt() time.Time
GetUpdatedAt returns the value of UpdatedAt.
func (*ComplexChallenge) MarshalJSON ¶
func (s *ComplexChallenge) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ComplexChallenge) SetCreatedAt ¶
func (s *ComplexChallenge) SetCreatedAt(val time.Time)
SetCreatedAt sets the value of CreatedAt.
func (*ComplexChallenge) SetID ¶
func (s *ComplexChallenge) SetID(val int32)
SetID sets the value of ID.
func (*ComplexChallenge) SetName ¶
func (s *ComplexChallenge) SetName(val string)
SetName sets the value of Name.
func (*ComplexChallenge) SetPeriodFrom ¶
func (s *ComplexChallenge) SetPeriodFrom(val NilDateTime)
SetPeriodFrom sets the value of PeriodFrom.
func (*ComplexChallenge) SetPeriodTo ¶
func (s *ComplexChallenge) SetPeriodTo(val NilDateTime)
SetPeriodTo sets the value of PeriodTo.
func (*ComplexChallenge) SetPublic ¶
func (s *ComplexChallenge) SetPublic(val bool)
SetPublic sets the value of Public.
func (*ComplexChallenge) SetRequiredScore ¶
func (s *ComplexChallenge) SetRequiredScore(val float64)
SetRequiredScore sets the value of RequiredScore.
func (*ComplexChallenge) SetScoreFormula ¶
func (s *ComplexChallenge) SetScoreFormula(val string)
SetScoreFormula sets the value of ScoreFormula.
func (*ComplexChallenge) SetUpdateStrategy ¶
func (s *ComplexChallenge) SetUpdateStrategy(val ComplexChallengeUpdateStrategy)
SetUpdateStrategy sets the value of UpdateStrategy.
func (*ComplexChallenge) SetUpdatedAt ¶
func (s *ComplexChallenge) SetUpdatedAt(val time.Time)
SetUpdatedAt sets the value of UpdatedAt.
func (*ComplexChallenge) UnmarshalJSON ¶
func (s *ComplexChallenge) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ComplexChallenge) Validate ¶
func (s *ComplexChallenge) Validate() error
type ComplexChallengeBase ¶
type ComplexChallengeBase struct { // ID испытания. ID int32 `json:"id"` // Дата создания. CreatedAt time.Time `json:"created_at"` // Дата обновления. UpdatedAt time.Time `json:"updated_at"` // Статус публичности испытания. Public bool `json:"public"` UpdateStrategy ComplexChallengeUpdateStrategy `json:"update_strategy"` // Название испытания. Name string `json:"name"` // Начало периода допускаемых в испытании активностей. PeriodFrom NilDateTime `json:"period_from"` // Завершение периода допускаемых в испытании // активностей. PeriodTo NilDateTime `json:"period_to"` }
Merged schema. Ref: #/components/schemas/ComplexChallengeBase
func (*ComplexChallengeBase) Decode ¶
func (s *ComplexChallengeBase) Decode(d *jx.Decoder) error
Decode decodes ComplexChallengeBase from json.
func (*ComplexChallengeBase) Encode ¶
func (s *ComplexChallengeBase) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ComplexChallengeBase) GetCreatedAt ¶
func (s *ComplexChallengeBase) GetCreatedAt() time.Time
GetCreatedAt returns the value of CreatedAt.
func (*ComplexChallengeBase) GetID ¶
func (s *ComplexChallengeBase) GetID() int32
GetID returns the value of ID.
func (*ComplexChallengeBase) GetName ¶
func (s *ComplexChallengeBase) GetName() string
GetName returns the value of Name.
func (*ComplexChallengeBase) GetPeriodFrom ¶
func (s *ComplexChallengeBase) GetPeriodFrom() NilDateTime
GetPeriodFrom returns the value of PeriodFrom.
func (*ComplexChallengeBase) GetPeriodTo ¶
func (s *ComplexChallengeBase) GetPeriodTo() NilDateTime
GetPeriodTo returns the value of PeriodTo.
func (*ComplexChallengeBase) GetPublic ¶
func (s *ComplexChallengeBase) GetPublic() bool
GetPublic returns the value of Public.
func (*ComplexChallengeBase) GetUpdateStrategy ¶
func (s *ComplexChallengeBase) GetUpdateStrategy() ComplexChallengeUpdateStrategy
GetUpdateStrategy returns the value of UpdateStrategy.
func (*ComplexChallengeBase) GetUpdatedAt ¶
func (s *ComplexChallengeBase) GetUpdatedAt() time.Time
GetUpdatedAt returns the value of UpdatedAt.
func (*ComplexChallengeBase) MarshalJSON ¶
func (s *ComplexChallengeBase) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ComplexChallengeBase) SetCreatedAt ¶
func (s *ComplexChallengeBase) SetCreatedAt(val time.Time)
SetCreatedAt sets the value of CreatedAt.
func (*ComplexChallengeBase) SetID ¶
func (s *ComplexChallengeBase) SetID(val int32)
SetID sets the value of ID.
func (*ComplexChallengeBase) SetName ¶
func (s *ComplexChallengeBase) SetName(val string)
SetName sets the value of Name.
func (*ComplexChallengeBase) SetPeriodFrom ¶
func (s *ComplexChallengeBase) SetPeriodFrom(val NilDateTime)
SetPeriodFrom sets the value of PeriodFrom.
func (*ComplexChallengeBase) SetPeriodTo ¶
func (s *ComplexChallengeBase) SetPeriodTo(val NilDateTime)
SetPeriodTo sets the value of PeriodTo.
func (*ComplexChallengeBase) SetPublic ¶
func (s *ComplexChallengeBase) SetPublic(val bool)
SetPublic sets the value of Public.
func (*ComplexChallengeBase) SetUpdateStrategy ¶
func (s *ComplexChallengeBase) SetUpdateStrategy(val ComplexChallengeUpdateStrategy)
SetUpdateStrategy sets the value of UpdateStrategy.
func (*ComplexChallengeBase) SetUpdatedAt ¶
func (s *ComplexChallengeBase) SetUpdatedAt(val time.Time)
SetUpdatedAt sets the value of UpdatedAt.
func (*ComplexChallengeBase) UnmarshalJSON ¶
func (s *ComplexChallengeBase) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ComplexChallengeBase) Validate ¶
func (s *ComplexChallengeBase) Validate() error
type ComplexChallengeCreateReq ¶
type ComplexChallengeCreateReq struct {
Name string `json:"name"`
}
func (*ComplexChallengeCreateReq) Decode ¶
func (s *ComplexChallengeCreateReq) Decode(d *jx.Decoder) error
Decode decodes ComplexChallengeCreateReq from json.
func (*ComplexChallengeCreateReq) Encode ¶
func (s *ComplexChallengeCreateReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ComplexChallengeCreateReq) GetName ¶
func (s *ComplexChallengeCreateReq) GetName() string
GetName returns the value of Name.
func (*ComplexChallengeCreateReq) MarshalJSON ¶
func (s *ComplexChallengeCreateReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ComplexChallengeCreateReq) SetName ¶
func (s *ComplexChallengeCreateReq) SetName(val string)
SetName sets the value of Name.
func (*ComplexChallengeCreateReq) UnmarshalJSON ¶
func (s *ComplexChallengeCreateReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ComplexChallengeCreateReq) Validate ¶
func (s *ComplexChallengeCreateReq) Validate() error
type ComplexChallengeCreateRes ¶
type ComplexChallengeCreateRes interface {
// contains filtered or unexported methods
}
type ComplexChallengeGoal ¶
type ComplexChallengeGoal struct { // ID цели. ID int32 `json:"id"` // ID испытания. ComplexchID int32 `json:"complexch_id"` // Дата создания. CreatedAt time.Time `json:"created_at"` // Дата обновления. UpdatedAt time.Time `json:"updated_at"` // Название цели. Name string `json:"name"` // Формула вычисления балла. ScoreFormula string `json:"score_formula"` // Проходной балл для выполнения цели. RequiredScore float64 `json:"required_score"` // Имя переменной для использования балла в итоговой // формуле испытания. VariableName string `json:"variable_name"` // Фильтрация активностей по идентификаторам // контекстов. ContextIds []uuid.UUID `json:"context_ids"` // Фильтр по контекстам имеющим указанные значения // свойств. // Формат записи значения: `ключ+значение`. // В качестве значения можно указать несколько // вариантов разделенных вертикальной чертой. // Пример фильтра по свойству `instrument` с 3 допустимыми // вариантами: `instrument+piano|guitar|drums`. ContextProperties []string `json:"context_properties"` // ID приложения для фильтрации контекстов. ApplicationID OptNilUUID `json:"application_id"` // Максимальное кол-во активностей для использования в // вычислениях. ActivityLimit OptNilInt32 `json:"activity_limit"` ActivityFuncs ActivityFuncs `json:"activity_funcs"` }
Merged schema. Ref: #/components/schemas/ComplexChallengeGoal
func (*ComplexChallengeGoal) Decode ¶
func (s *ComplexChallengeGoal) Decode(d *jx.Decoder) error
Decode decodes ComplexChallengeGoal from json.
func (*ComplexChallengeGoal) Encode ¶
func (s *ComplexChallengeGoal) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ComplexChallengeGoal) GetActivityFuncs ¶
func (s *ComplexChallengeGoal) GetActivityFuncs() ActivityFuncs
GetActivityFuncs returns the value of ActivityFuncs.
func (*ComplexChallengeGoal) GetActivityLimit ¶
func (s *ComplexChallengeGoal) GetActivityLimit() OptNilInt32
GetActivityLimit returns the value of ActivityLimit.
func (*ComplexChallengeGoal) GetApplicationID ¶
func (s *ComplexChallengeGoal) GetApplicationID() OptNilUUID
GetApplicationID returns the value of ApplicationID.
func (*ComplexChallengeGoal) GetComplexchID ¶
func (s *ComplexChallengeGoal) GetComplexchID() int32
GetComplexchID returns the value of ComplexchID.
func (*ComplexChallengeGoal) GetContextIds ¶
func (s *ComplexChallengeGoal) GetContextIds() []uuid.UUID
GetContextIds returns the value of ContextIds.
func (*ComplexChallengeGoal) GetContextProperties ¶
func (s *ComplexChallengeGoal) GetContextProperties() []string
GetContextProperties returns the value of ContextProperties.
func (*ComplexChallengeGoal) GetCreatedAt ¶
func (s *ComplexChallengeGoal) GetCreatedAt() time.Time
GetCreatedAt returns the value of CreatedAt.
func (*ComplexChallengeGoal) GetID ¶
func (s *ComplexChallengeGoal) GetID() int32
GetID returns the value of ID.
func (*ComplexChallengeGoal) GetName ¶
func (s *ComplexChallengeGoal) GetName() string
GetName returns the value of Name.
func (*ComplexChallengeGoal) GetRequiredScore ¶
func (s *ComplexChallengeGoal) GetRequiredScore() float64
GetRequiredScore returns the value of RequiredScore.
func (*ComplexChallengeGoal) GetScoreFormula ¶
func (s *ComplexChallengeGoal) GetScoreFormula() string
GetScoreFormula returns the value of ScoreFormula.
func (*ComplexChallengeGoal) GetUpdatedAt ¶
func (s *ComplexChallengeGoal) GetUpdatedAt() time.Time
GetUpdatedAt returns the value of UpdatedAt.
func (*ComplexChallengeGoal) GetVariableName ¶
func (s *ComplexChallengeGoal) GetVariableName() string
GetVariableName returns the value of VariableName.
func (*ComplexChallengeGoal) MarshalJSON ¶
func (s *ComplexChallengeGoal) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ComplexChallengeGoal) SetActivityFuncs ¶
func (s *ComplexChallengeGoal) SetActivityFuncs(val ActivityFuncs)
SetActivityFuncs sets the value of ActivityFuncs.
func (*ComplexChallengeGoal) SetActivityLimit ¶
func (s *ComplexChallengeGoal) SetActivityLimit(val OptNilInt32)
SetActivityLimit sets the value of ActivityLimit.
func (*ComplexChallengeGoal) SetApplicationID ¶
func (s *ComplexChallengeGoal) SetApplicationID(val OptNilUUID)
SetApplicationID sets the value of ApplicationID.
func (*ComplexChallengeGoal) SetComplexchID ¶
func (s *ComplexChallengeGoal) SetComplexchID(val int32)
SetComplexchID sets the value of ComplexchID.
func (*ComplexChallengeGoal) SetContextIds ¶
func (s *ComplexChallengeGoal) SetContextIds(val []uuid.UUID)
SetContextIds sets the value of ContextIds.
func (*ComplexChallengeGoal) SetContextProperties ¶
func (s *ComplexChallengeGoal) SetContextProperties(val []string)
SetContextProperties sets the value of ContextProperties.
func (*ComplexChallengeGoal) SetCreatedAt ¶
func (s *ComplexChallengeGoal) SetCreatedAt(val time.Time)
SetCreatedAt sets the value of CreatedAt.
func (*ComplexChallengeGoal) SetID ¶
func (s *ComplexChallengeGoal) SetID(val int32)
SetID sets the value of ID.
func (*ComplexChallengeGoal) SetName ¶
func (s *ComplexChallengeGoal) SetName(val string)
SetName sets the value of Name.
func (*ComplexChallengeGoal) SetRequiredScore ¶
func (s *ComplexChallengeGoal) SetRequiredScore(val float64)
SetRequiredScore sets the value of RequiredScore.
func (*ComplexChallengeGoal) SetScoreFormula ¶
func (s *ComplexChallengeGoal) SetScoreFormula(val string)
SetScoreFormula sets the value of ScoreFormula.
func (*ComplexChallengeGoal) SetUpdatedAt ¶
func (s *ComplexChallengeGoal) SetUpdatedAt(val time.Time)
SetUpdatedAt sets the value of UpdatedAt.
func (*ComplexChallengeGoal) SetVariableName ¶
func (s *ComplexChallengeGoal) SetVariableName(val string)
SetVariableName sets the value of VariableName.
func (*ComplexChallengeGoal) UnmarshalJSON ¶
func (s *ComplexChallengeGoal) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ComplexChallengeGoal) Validate ¶
func (s *ComplexChallengeGoal) Validate() error
type ComplexChallengeGoalCreateParams ¶
type ComplexChallengeGoalCreateParams struct {
ComplexchID int32
}
ComplexChallengeGoalCreateParams is parameters of ComplexChallengeGoalCreate operation.
type ComplexChallengeGoalCreateReq ¶
type ComplexChallengeGoalCreateReq struct { // Название цели. Name string `json:"name"` // Формула вычисления балла. ScoreFormula OptString `json:"score_formula"` // Проходной балл для выполнения цели. RequiredScore OptFloat64 `json:"required_score"` // Имя переменной для использования балла в итоговой // формуле испытания. VariableName OptString `json:"variable_name"` // Фильтрация активностей по идентификаторам // контекстов. ContextIds []uuid.UUID `json:"context_ids"` // Фильтр по контекстам имеющим указанные значения // свойств. // Формат записи значения: `ключ+значение`. // В качестве значения можно указать несколько // вариантов разделенных вертикальной чертой. // Пример фильтра по свойству `instrument` с 3 допустимыми // вариантами: `instrument+piano|guitar|drums`. ContextProperties []string `json:"context_properties"` // ID приложения для фильтрации контекстов. ApplicationID OptNilUUID `json:"application_id"` // Максимальное кол-во активностей для использования в // вычислениях. ActivityLimit OptNilInt32 `json:"activity_limit"` ActivityFuncs ActivityFuncs `json:"activity_funcs"` }
Merged schema.
func (*ComplexChallengeGoalCreateReq) Decode ¶
func (s *ComplexChallengeGoalCreateReq) Decode(d *jx.Decoder) error
Decode decodes ComplexChallengeGoalCreateReq from json.
func (*ComplexChallengeGoalCreateReq) Encode ¶
func (s *ComplexChallengeGoalCreateReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ComplexChallengeGoalCreateReq) GetActivityFuncs ¶
func (s *ComplexChallengeGoalCreateReq) GetActivityFuncs() ActivityFuncs
GetActivityFuncs returns the value of ActivityFuncs.
func (*ComplexChallengeGoalCreateReq) GetActivityLimit ¶
func (s *ComplexChallengeGoalCreateReq) GetActivityLimit() OptNilInt32
GetActivityLimit returns the value of ActivityLimit.
func (*ComplexChallengeGoalCreateReq) GetApplicationID ¶
func (s *ComplexChallengeGoalCreateReq) GetApplicationID() OptNilUUID
GetApplicationID returns the value of ApplicationID.
func (*ComplexChallengeGoalCreateReq) GetContextIds ¶
func (s *ComplexChallengeGoalCreateReq) GetContextIds() []uuid.UUID
GetContextIds returns the value of ContextIds.
func (*ComplexChallengeGoalCreateReq) GetContextProperties ¶
func (s *ComplexChallengeGoalCreateReq) GetContextProperties() []string
GetContextProperties returns the value of ContextProperties.
func (*ComplexChallengeGoalCreateReq) GetName ¶
func (s *ComplexChallengeGoalCreateReq) GetName() string
GetName returns the value of Name.
func (*ComplexChallengeGoalCreateReq) GetRequiredScore ¶
func (s *ComplexChallengeGoalCreateReq) GetRequiredScore() OptFloat64
GetRequiredScore returns the value of RequiredScore.
func (*ComplexChallengeGoalCreateReq) GetScoreFormula ¶
func (s *ComplexChallengeGoalCreateReq) GetScoreFormula() OptString
GetScoreFormula returns the value of ScoreFormula.
func (*ComplexChallengeGoalCreateReq) GetVariableName ¶
func (s *ComplexChallengeGoalCreateReq) GetVariableName() OptString
GetVariableName returns the value of VariableName.
func (*ComplexChallengeGoalCreateReq) MarshalJSON ¶
func (s *ComplexChallengeGoalCreateReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ComplexChallengeGoalCreateReq) SetActivityFuncs ¶
func (s *ComplexChallengeGoalCreateReq) SetActivityFuncs(val ActivityFuncs)
SetActivityFuncs sets the value of ActivityFuncs.
func (*ComplexChallengeGoalCreateReq) SetActivityLimit ¶
func (s *ComplexChallengeGoalCreateReq) SetActivityLimit(val OptNilInt32)
SetActivityLimit sets the value of ActivityLimit.
func (*ComplexChallengeGoalCreateReq) SetApplicationID ¶
func (s *ComplexChallengeGoalCreateReq) SetApplicationID(val OptNilUUID)
SetApplicationID sets the value of ApplicationID.
func (*ComplexChallengeGoalCreateReq) SetContextIds ¶
func (s *ComplexChallengeGoalCreateReq) SetContextIds(val []uuid.UUID)
SetContextIds sets the value of ContextIds.
func (*ComplexChallengeGoalCreateReq) SetContextProperties ¶
func (s *ComplexChallengeGoalCreateReq) SetContextProperties(val []string)
SetContextProperties sets the value of ContextProperties.
func (*ComplexChallengeGoalCreateReq) SetName ¶
func (s *ComplexChallengeGoalCreateReq) SetName(val string)
SetName sets the value of Name.
func (*ComplexChallengeGoalCreateReq) SetRequiredScore ¶
func (s *ComplexChallengeGoalCreateReq) SetRequiredScore(val OptFloat64)
SetRequiredScore sets the value of RequiredScore.
func (*ComplexChallengeGoalCreateReq) SetScoreFormula ¶
func (s *ComplexChallengeGoalCreateReq) SetScoreFormula(val OptString)
SetScoreFormula sets the value of ScoreFormula.
func (*ComplexChallengeGoalCreateReq) SetVariableName ¶
func (s *ComplexChallengeGoalCreateReq) SetVariableName(val OptString)
SetVariableName sets the value of VariableName.
func (*ComplexChallengeGoalCreateReq) UnmarshalJSON ¶
func (s *ComplexChallengeGoalCreateReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ComplexChallengeGoalCreateReq) Validate ¶
func (s *ComplexChallengeGoalCreateReq) Validate() error
type ComplexChallengeGoalCreateRes ¶
type ComplexChallengeGoalCreateRes interface {
// contains filtered or unexported methods
}
type ComplexChallengeGoalDeleteNoContent ¶
type ComplexChallengeGoalDeleteNoContent struct{}
ComplexChallengeGoalDeleteNoContent is response for ComplexChallengeGoalDelete operation.
type ComplexChallengeGoalDeleteParams ¶
type ComplexChallengeGoalDeleteParams struct {
GoalID int32
}
ComplexChallengeGoalDeleteParams is parameters of ComplexChallengeGoalDelete operation.
type ComplexChallengeGoalDeleteRes ¶
type ComplexChallengeGoalDeleteRes interface {
// contains filtered or unexported methods
}
type ComplexChallengeGoalFields ¶
type ComplexChallengeGoalFields struct { // Название цели. Name OptString `json:"name"` // Формула вычисления балла. ScoreFormula OptString `json:"score_formula"` // Проходной балл для выполнения цели. RequiredScore OptFloat64 `json:"required_score"` // Имя переменной для использования балла в итоговой // формуле испытания. VariableName OptString `json:"variable_name"` // Фильтрация активностей по идентификаторам // контекстов. ContextIds []uuid.UUID `json:"context_ids"` // Фильтр по контекстам имеющим указанные значения // свойств. // Формат записи значения: `ключ+значение`. // В качестве значения можно указать несколько // вариантов разделенных вертикальной чертой. // Пример фильтра по свойству `instrument` с 3 допустимыми // вариантами: `instrument+piano|guitar|drums`. ContextProperties []string `json:"context_properties"` // ID приложения для фильтрации контекстов. ApplicationID OptNilUUID `json:"application_id"` // Максимальное кол-во активностей для использования в // вычислениях. ActivityLimit OptNilInt32 `json:"activity_limit"` ActivityFuncs ActivityFuncs `json:"activity_funcs"` }
Ref: #/components/schemas/ComplexChallengeGoalFields
func (*ComplexChallengeGoalFields) Decode ¶
func (s *ComplexChallengeGoalFields) Decode(d *jx.Decoder) error
Decode decodes ComplexChallengeGoalFields from json.
func (*ComplexChallengeGoalFields) Encode ¶
func (s *ComplexChallengeGoalFields) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ComplexChallengeGoalFields) GetActivityFuncs ¶
func (s *ComplexChallengeGoalFields) GetActivityFuncs() ActivityFuncs
GetActivityFuncs returns the value of ActivityFuncs.
func (*ComplexChallengeGoalFields) GetActivityLimit ¶
func (s *ComplexChallengeGoalFields) GetActivityLimit() OptNilInt32
GetActivityLimit returns the value of ActivityLimit.
func (*ComplexChallengeGoalFields) GetApplicationID ¶
func (s *ComplexChallengeGoalFields) GetApplicationID() OptNilUUID
GetApplicationID returns the value of ApplicationID.
func (*ComplexChallengeGoalFields) GetContextIds ¶
func (s *ComplexChallengeGoalFields) GetContextIds() []uuid.UUID
GetContextIds returns the value of ContextIds.
func (*ComplexChallengeGoalFields) GetContextProperties ¶
func (s *ComplexChallengeGoalFields) GetContextProperties() []string
GetContextProperties returns the value of ContextProperties.
func (*ComplexChallengeGoalFields) GetName ¶
func (s *ComplexChallengeGoalFields) GetName() OptString
GetName returns the value of Name.
func (*ComplexChallengeGoalFields) GetRequiredScore ¶
func (s *ComplexChallengeGoalFields) GetRequiredScore() OptFloat64
GetRequiredScore returns the value of RequiredScore.
func (*ComplexChallengeGoalFields) GetScoreFormula ¶
func (s *ComplexChallengeGoalFields) GetScoreFormula() OptString
GetScoreFormula returns the value of ScoreFormula.
func (*ComplexChallengeGoalFields) GetVariableName ¶
func (s *ComplexChallengeGoalFields) GetVariableName() OptString
GetVariableName returns the value of VariableName.
func (*ComplexChallengeGoalFields) MarshalJSON ¶
func (s *ComplexChallengeGoalFields) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ComplexChallengeGoalFields) SetActivityFuncs ¶
func (s *ComplexChallengeGoalFields) SetActivityFuncs(val ActivityFuncs)
SetActivityFuncs sets the value of ActivityFuncs.
func (*ComplexChallengeGoalFields) SetActivityLimit ¶
func (s *ComplexChallengeGoalFields) SetActivityLimit(val OptNilInt32)
SetActivityLimit sets the value of ActivityLimit.
func (*ComplexChallengeGoalFields) SetApplicationID ¶
func (s *ComplexChallengeGoalFields) SetApplicationID(val OptNilUUID)
SetApplicationID sets the value of ApplicationID.
func (*ComplexChallengeGoalFields) SetContextIds ¶
func (s *ComplexChallengeGoalFields) SetContextIds(val []uuid.UUID)
SetContextIds sets the value of ContextIds.
func (*ComplexChallengeGoalFields) SetContextProperties ¶
func (s *ComplexChallengeGoalFields) SetContextProperties(val []string)
SetContextProperties sets the value of ContextProperties.
func (*ComplexChallengeGoalFields) SetName ¶
func (s *ComplexChallengeGoalFields) SetName(val OptString)
SetName sets the value of Name.
func (*ComplexChallengeGoalFields) SetRequiredScore ¶
func (s *ComplexChallengeGoalFields) SetRequiredScore(val OptFloat64)
SetRequiredScore sets the value of RequiredScore.
func (*ComplexChallengeGoalFields) SetScoreFormula ¶
func (s *ComplexChallengeGoalFields) SetScoreFormula(val OptString)
SetScoreFormula sets the value of ScoreFormula.
func (*ComplexChallengeGoalFields) SetVariableName ¶
func (s *ComplexChallengeGoalFields) SetVariableName(val OptString)
SetVariableName sets the value of VariableName.
func (*ComplexChallengeGoalFields) UnmarshalJSON ¶
func (s *ComplexChallengeGoalFields) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ComplexChallengeGoalFields) Validate ¶
func (s *ComplexChallengeGoalFields) Validate() error
type ComplexChallengeGoalReadParams ¶
type ComplexChallengeGoalReadParams struct {
GoalID int32
}
ComplexChallengeGoalReadParams is parameters of ComplexChallengeGoalRead operation.
type ComplexChallengeGoalReadRes ¶
type ComplexChallengeGoalReadRes interface {
// contains filtered or unexported methods
}
type ComplexChallengeGoalUpdateParams ¶
type ComplexChallengeGoalUpdateParams struct {
GoalID int32
}
ComplexChallengeGoalUpdateParams is parameters of ComplexChallengeGoalUpdate operation.
type ComplexChallengeGoalUpdateRes ¶
type ComplexChallengeGoalUpdateRes interface {
// contains filtered or unexported methods
}
type ComplexChallengeGoalsListOKHeaders ¶
type ComplexChallengeGoalsListOKHeaders struct { XCount int64 Response []ComplexChallengeGoal }
ComplexChallengeGoalsListOKHeaders wraps []ComplexChallengeGoal with response headers.
func (*ComplexChallengeGoalsListOKHeaders) GetResponse ¶
func (s *ComplexChallengeGoalsListOKHeaders) GetResponse() []ComplexChallengeGoal
GetResponse returns the value of Response.
func (*ComplexChallengeGoalsListOKHeaders) GetXCount ¶
func (s *ComplexChallengeGoalsListOKHeaders) GetXCount() int64
GetXCount returns the value of XCount.
func (*ComplexChallengeGoalsListOKHeaders) SetResponse ¶
func (s *ComplexChallengeGoalsListOKHeaders) SetResponse(val []ComplexChallengeGoal)
SetResponse sets the value of Response.
func (*ComplexChallengeGoalsListOKHeaders) SetXCount ¶
func (s *ComplexChallengeGoalsListOKHeaders) SetXCount(val int64)
SetXCount sets the value of XCount.
func (*ComplexChallengeGoalsListOKHeaders) Validate ¶
func (s *ComplexChallengeGoalsListOKHeaders) Validate() error
type ComplexChallengeGoalsListParams ¶
type ComplexChallengeGoalsListParams struct {
ComplexchID int32
}
ComplexChallengeGoalsListParams is parameters of ComplexChallengeGoalsList operation.
type ComplexChallengeGoalsListRes ¶
type ComplexChallengeGoalsListRes interface {
// contains filtered or unexported methods
}
type ComplexChallengePublicNoContent ¶
type ComplexChallengePublicNoContent struct{}
ComplexChallengePublicNoContent is response for ComplexChallengePublic operation.
type ComplexChallengePublicParams ¶
type ComplexChallengePublicParams struct { ComplexchID int32 // Устанавливаемое значение свойства `public`. Value bool }
ComplexChallengePublicParams is parameters of ComplexChallengePublic operation.
type ComplexChallengePublicRes ¶
type ComplexChallengePublicRes interface {
// contains filtered or unexported methods
}
type ComplexChallengeRead ¶
type ComplexChallengeRead struct { // ID испытания. ID int32 `json:"id"` // Дата создания. CreatedAt time.Time `json:"created_at"` // Дата обновления. UpdatedAt time.Time `json:"updated_at"` // Статус публичности испытания. Public bool `json:"public"` UpdateStrategy ComplexChallengeUpdateStrategy `json:"update_strategy"` // Название испытания. Name string `json:"name"` // Начало периода допускаемых в испытании активностей. PeriodFrom NilDateTime `json:"period_from"` // Завершение периода допускаемых в испытании // активностей. PeriodTo NilDateTime `json:"period_to"` ScoreFormula OptString `json:"score_formula"` // Проходной балл. RequiredScore OptFloat64 `json:"required_score"` Goals []ComplexChallengeGoal `json:"goals"` }
Merged schema. Ref: #/components/schemas/ComplexChallengeRead
func (*ComplexChallengeRead) Decode ¶
func (s *ComplexChallengeRead) Decode(d *jx.Decoder) error
Decode decodes ComplexChallengeRead from json.
func (*ComplexChallengeRead) Encode ¶
func (s *ComplexChallengeRead) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ComplexChallengeRead) GetCreatedAt ¶
func (s *ComplexChallengeRead) GetCreatedAt() time.Time
GetCreatedAt returns the value of CreatedAt.
func (*ComplexChallengeRead) GetGoals ¶
func (s *ComplexChallengeRead) GetGoals() []ComplexChallengeGoal
GetGoals returns the value of Goals.
func (*ComplexChallengeRead) GetID ¶
func (s *ComplexChallengeRead) GetID() int32
GetID returns the value of ID.
func (*ComplexChallengeRead) GetName ¶
func (s *ComplexChallengeRead) GetName() string
GetName returns the value of Name.
func (*ComplexChallengeRead) GetPeriodFrom ¶
func (s *ComplexChallengeRead) GetPeriodFrom() NilDateTime
GetPeriodFrom returns the value of PeriodFrom.
func (*ComplexChallengeRead) GetPeriodTo ¶
func (s *ComplexChallengeRead) GetPeriodTo() NilDateTime
GetPeriodTo returns the value of PeriodTo.
func (*ComplexChallengeRead) GetPublic ¶
func (s *ComplexChallengeRead) GetPublic() bool
GetPublic returns the value of Public.
func (*ComplexChallengeRead) GetRequiredScore ¶
func (s *ComplexChallengeRead) GetRequiredScore() OptFloat64
GetRequiredScore returns the value of RequiredScore.
func (*ComplexChallengeRead) GetScoreFormula ¶
func (s *ComplexChallengeRead) GetScoreFormula() OptString
GetScoreFormula returns the value of ScoreFormula.
func (*ComplexChallengeRead) GetUpdateStrategy ¶
func (s *ComplexChallengeRead) GetUpdateStrategy() ComplexChallengeUpdateStrategy
GetUpdateStrategy returns the value of UpdateStrategy.
func (*ComplexChallengeRead) GetUpdatedAt ¶
func (s *ComplexChallengeRead) GetUpdatedAt() time.Time
GetUpdatedAt returns the value of UpdatedAt.
func (*ComplexChallengeRead) MarshalJSON ¶
func (s *ComplexChallengeRead) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ComplexChallengeRead) SetCreatedAt ¶
func (s *ComplexChallengeRead) SetCreatedAt(val time.Time)
SetCreatedAt sets the value of CreatedAt.
func (*ComplexChallengeRead) SetGoals ¶
func (s *ComplexChallengeRead) SetGoals(val []ComplexChallengeGoal)
SetGoals sets the value of Goals.
func (*ComplexChallengeRead) SetID ¶
func (s *ComplexChallengeRead) SetID(val int32)
SetID sets the value of ID.
func (*ComplexChallengeRead) SetName ¶
func (s *ComplexChallengeRead) SetName(val string)
SetName sets the value of Name.
func (*ComplexChallengeRead) SetPeriodFrom ¶
func (s *ComplexChallengeRead) SetPeriodFrom(val NilDateTime)
SetPeriodFrom sets the value of PeriodFrom.
func (*ComplexChallengeRead) SetPeriodTo ¶
func (s *ComplexChallengeRead) SetPeriodTo(val NilDateTime)
SetPeriodTo sets the value of PeriodTo.
func (*ComplexChallengeRead) SetPublic ¶
func (s *ComplexChallengeRead) SetPublic(val bool)
SetPublic sets the value of Public.
func (*ComplexChallengeRead) SetRequiredScore ¶
func (s *ComplexChallengeRead) SetRequiredScore(val OptFloat64)
SetRequiredScore sets the value of RequiredScore.
func (*ComplexChallengeRead) SetScoreFormula ¶
func (s *ComplexChallengeRead) SetScoreFormula(val OptString)
SetScoreFormula sets the value of ScoreFormula.
func (*ComplexChallengeRead) SetUpdateStrategy ¶
func (s *ComplexChallengeRead) SetUpdateStrategy(val ComplexChallengeUpdateStrategy)
SetUpdateStrategy sets the value of UpdateStrategy.
func (*ComplexChallengeRead) SetUpdatedAt ¶
func (s *ComplexChallengeRead) SetUpdatedAt(val time.Time)
SetUpdatedAt sets the value of UpdatedAt.
func (*ComplexChallengeRead) UnmarshalJSON ¶
func (s *ComplexChallengeRead) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ComplexChallengeRead) Validate ¶
func (s *ComplexChallengeRead) Validate() error
type ComplexChallengeReadParams ¶
type ComplexChallengeReadParams struct { // Вернуть объекты со свойством `goals`. // Доступно только при наличии административных прав. WithGoals OptBool ComplexchID int32 }
ComplexChallengeReadParams is parameters of ComplexChallengeRead operation.
type ComplexChallengeReadRes ¶
type ComplexChallengeReadRes interface {
// contains filtered or unexported methods
}
type ComplexChallengeResult ¶
type ComplexChallengeResult struct { ID int64 `json:"id"` UserID int32 `json:"user_id"` ComplexchID int32 `json:"complexch_id"` Passed bool `json:"passed"` PassedWas bool `json:"passed_was"` Score NilFloat64 `json:"score"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
Ref: #/components/schemas/ComplexChallengeResult
func (*ComplexChallengeResult) Decode ¶
func (s *ComplexChallengeResult) Decode(d *jx.Decoder) error
Decode decodes ComplexChallengeResult from json.
func (*ComplexChallengeResult) Encode ¶
func (s *ComplexChallengeResult) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ComplexChallengeResult) GetComplexchID ¶
func (s *ComplexChallengeResult) GetComplexchID() int32
GetComplexchID returns the value of ComplexchID.
func (*ComplexChallengeResult) GetCreatedAt ¶
func (s *ComplexChallengeResult) GetCreatedAt() time.Time
GetCreatedAt returns the value of CreatedAt.
func (*ComplexChallengeResult) GetID ¶
func (s *ComplexChallengeResult) GetID() int64
GetID returns the value of ID.
func (*ComplexChallengeResult) GetPassed ¶
func (s *ComplexChallengeResult) GetPassed() bool
GetPassed returns the value of Passed.
func (*ComplexChallengeResult) GetPassedWas ¶
func (s *ComplexChallengeResult) GetPassedWas() bool
GetPassedWas returns the value of PassedWas.
func (*ComplexChallengeResult) GetScore ¶
func (s *ComplexChallengeResult) GetScore() NilFloat64
GetScore returns the value of Score.
func (*ComplexChallengeResult) GetUpdatedAt ¶
func (s *ComplexChallengeResult) GetUpdatedAt() time.Time
GetUpdatedAt returns the value of UpdatedAt.
func (*ComplexChallengeResult) GetUserID ¶
func (s *ComplexChallengeResult) GetUserID() int32
GetUserID returns the value of UserID.
func (*ComplexChallengeResult) MarshalJSON ¶
func (s *ComplexChallengeResult) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ComplexChallengeResult) SetComplexchID ¶
func (s *ComplexChallengeResult) SetComplexchID(val int32)
SetComplexchID sets the value of ComplexchID.
func (*ComplexChallengeResult) SetCreatedAt ¶
func (s *ComplexChallengeResult) SetCreatedAt(val time.Time)
SetCreatedAt sets the value of CreatedAt.
func (*ComplexChallengeResult) SetID ¶
func (s *ComplexChallengeResult) SetID(val int64)
SetID sets the value of ID.
func (*ComplexChallengeResult) SetPassed ¶
func (s *ComplexChallengeResult) SetPassed(val bool)
SetPassed sets the value of Passed.
func (*ComplexChallengeResult) SetPassedWas ¶
func (s *ComplexChallengeResult) SetPassedWas(val bool)
SetPassedWas sets the value of PassedWas.
func (*ComplexChallengeResult) SetScore ¶
func (s *ComplexChallengeResult) SetScore(val NilFloat64)
SetScore sets the value of Score.
func (*ComplexChallengeResult) SetUpdatedAt ¶
func (s *ComplexChallengeResult) SetUpdatedAt(val time.Time)
SetUpdatedAt sets the value of UpdatedAt.
func (*ComplexChallengeResult) SetUserID ¶
func (s *ComplexChallengeResult) SetUserID(val int32)
SetUserID sets the value of UserID.
func (*ComplexChallengeResult) UnmarshalJSON ¶
func (s *ComplexChallengeResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ComplexChallengeResult) Validate ¶
func (s *ComplexChallengeResult) Validate() error
type ComplexChallengeUpdateParams ¶
type ComplexChallengeUpdateParams struct {
ComplexchID int32
}
ComplexChallengeUpdateParams is parameters of ComplexChallengeUpdate operation.
type ComplexChallengeUpdateReq ¶
type ComplexChallengeUpdateReq struct { UpdateStrategy OptComplexChallengeUpdateStrategy `json:"update_strategy"` // Название испытания. Name OptString `json:"name"` // Начало периода допускаемых в испытании активностей. PeriodFrom OptNilDateTime `json:"period_from"` // Завершение периода допускаемых в испытании // активностей. PeriodTo OptNilDateTime `json:"period_to"` // Формула вычисления балла. ScoreFormula OptString `json:"score_formula"` // Проходной балл. RequiredScore OptFloat64 `json:"required_score"` }
Merged schema.
func (*ComplexChallengeUpdateReq) Decode ¶
func (s *ComplexChallengeUpdateReq) Decode(d *jx.Decoder) error
Decode decodes ComplexChallengeUpdateReq from json.
func (*ComplexChallengeUpdateReq) Encode ¶
func (s *ComplexChallengeUpdateReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ComplexChallengeUpdateReq) GetName ¶
func (s *ComplexChallengeUpdateReq) GetName() OptString
GetName returns the value of Name.
func (*ComplexChallengeUpdateReq) GetPeriodFrom ¶
func (s *ComplexChallengeUpdateReq) GetPeriodFrom() OptNilDateTime
GetPeriodFrom returns the value of PeriodFrom.
func (*ComplexChallengeUpdateReq) GetPeriodTo ¶
func (s *ComplexChallengeUpdateReq) GetPeriodTo() OptNilDateTime
GetPeriodTo returns the value of PeriodTo.
func (*ComplexChallengeUpdateReq) GetRequiredScore ¶
func (s *ComplexChallengeUpdateReq) GetRequiredScore() OptFloat64
GetRequiredScore returns the value of RequiredScore.
func (*ComplexChallengeUpdateReq) GetScoreFormula ¶
func (s *ComplexChallengeUpdateReq) GetScoreFormula() OptString
GetScoreFormula returns the value of ScoreFormula.
func (*ComplexChallengeUpdateReq) GetUpdateStrategy ¶
func (s *ComplexChallengeUpdateReq) GetUpdateStrategy() OptComplexChallengeUpdateStrategy
GetUpdateStrategy returns the value of UpdateStrategy.
func (*ComplexChallengeUpdateReq) MarshalJSON ¶
func (s *ComplexChallengeUpdateReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ComplexChallengeUpdateReq) SetName ¶
func (s *ComplexChallengeUpdateReq) SetName(val OptString)
SetName sets the value of Name.
func (*ComplexChallengeUpdateReq) SetPeriodFrom ¶
func (s *ComplexChallengeUpdateReq) SetPeriodFrom(val OptNilDateTime)
SetPeriodFrom sets the value of PeriodFrom.
func (*ComplexChallengeUpdateReq) SetPeriodTo ¶
func (s *ComplexChallengeUpdateReq) SetPeriodTo(val OptNilDateTime)
SetPeriodTo sets the value of PeriodTo.
func (*ComplexChallengeUpdateReq) SetRequiredScore ¶
func (s *ComplexChallengeUpdateReq) SetRequiredScore(val OptFloat64)
SetRequiredScore sets the value of RequiredScore.
func (*ComplexChallengeUpdateReq) SetScoreFormula ¶
func (s *ComplexChallengeUpdateReq) SetScoreFormula(val OptString)
SetScoreFormula sets the value of ScoreFormula.
func (*ComplexChallengeUpdateReq) SetUpdateStrategy ¶
func (s *ComplexChallengeUpdateReq) SetUpdateStrategy(val OptComplexChallengeUpdateStrategy)
SetUpdateStrategy sets the value of UpdateStrategy.
func (*ComplexChallengeUpdateReq) UnmarshalJSON ¶
func (s *ComplexChallengeUpdateReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ComplexChallengeUpdateReq) Validate ¶
func (s *ComplexChallengeUpdateReq) Validate() error
type ComplexChallengeUpdateRes ¶
type ComplexChallengeUpdateRes interface {
// contains filtered or unexported methods
}
type ComplexChallengeUpdateStrategy ¶
type ComplexChallengeUpdateStrategy string
Ref: #/components/schemas/ComplexChallengeUpdateStrategy
const ( ComplexChallengeUpdateStrategyInitial ComplexChallengeUpdateStrategy = "initial" ComplexChallengeUpdateStrategyIncrease ComplexChallengeUpdateStrategy = "increase" )
func (ComplexChallengeUpdateStrategy) AllValues ¶
func (ComplexChallengeUpdateStrategy) AllValues() []ComplexChallengeUpdateStrategy
AllValues returns all ComplexChallengeUpdateStrategy values.
func (*ComplexChallengeUpdateStrategy) Decode ¶
func (s *ComplexChallengeUpdateStrategy) Decode(d *jx.Decoder) error
Decode decodes ComplexChallengeUpdateStrategy from json.
func (ComplexChallengeUpdateStrategy) Encode ¶
func (s ComplexChallengeUpdateStrategy) Encode(e *jx.Encoder)
Encode encodes ComplexChallengeUpdateStrategy as json.
func (ComplexChallengeUpdateStrategy) MarshalJSON ¶
func (s ComplexChallengeUpdateStrategy) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ComplexChallengeUpdateStrategy) MarshalText ¶
func (s ComplexChallengeUpdateStrategy) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ComplexChallengeUpdateStrategy) UnmarshalJSON ¶
func (s *ComplexChallengeUpdateStrategy) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ComplexChallengeUpdateStrategy) UnmarshalText ¶
func (s *ComplexChallengeUpdateStrategy) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ComplexChallengeUpdateStrategy) Validate ¶
func (s ComplexChallengeUpdateStrategy) Validate() error
type ComplexChallengeValidateNoContent ¶
type ComplexChallengeValidateNoContent struct{}
ComplexChallengeValidateNoContent is response for ComplexChallengeValidate operation.
type ComplexChallengeValidateParams ¶
type ComplexChallengeValidateParams struct {
ComplexchID int32
}
ComplexChallengeValidateParams is parameters of ComplexChallengeValidate operation.
type ComplexChallengeValidateRes ¶
type ComplexChallengeValidateRes interface {
// contains filtered or unexported methods
}
type ComplexChallengesListOKHeaders ¶
type ComplexChallengesListOKHeaders struct { XCount int64 Response []ComplexChallengeBase }
ComplexChallengesListOKHeaders wraps []ComplexChallengeBase with response headers.
func (*ComplexChallengesListOKHeaders) GetResponse ¶
func (s *ComplexChallengesListOKHeaders) GetResponse() []ComplexChallengeBase
GetResponse returns the value of Response.
func (*ComplexChallengesListOKHeaders) GetXCount ¶
func (s *ComplexChallengesListOKHeaders) GetXCount() int64
GetXCount returns the value of XCount.
func (*ComplexChallengesListOKHeaders) SetResponse ¶
func (s *ComplexChallengesListOKHeaders) SetResponse(val []ComplexChallengeBase)
SetResponse sets the value of Response.
func (*ComplexChallengesListOKHeaders) SetXCount ¶
func (s *ComplexChallengesListOKHeaders) SetXCount(val int64)
SetXCount sets the value of XCount.
func (*ComplexChallengesListOKHeaders) Validate ¶
func (s *ComplexChallengesListOKHeaders) Validate() error
type ComplexChallengesListParams ¶
type ComplexChallengesListParams struct { // Пропуск объектов с идентификатором равном или менее // указанного. After OptInt32 // Кол-во объектов выборки для пропуска. Offset OptInt32 // Максимум объектов возвращаемых в теле ответа. Limit OptInt32 // Фильтр по статусу опубликованности. Public OptBool }
ComplexChallengesListParams is parameters of ComplexChallengesList operation.
type ComplexChallengesResultsListOKHeaders ¶
type ComplexChallengesResultsListOKHeaders struct { XCount int64 Response []ComplexChallengeResult }
ComplexChallengesResultsListOKHeaders wraps []ComplexChallengeResult with response headers.
func (*ComplexChallengesResultsListOKHeaders) GetResponse ¶
func (s *ComplexChallengesResultsListOKHeaders) GetResponse() []ComplexChallengeResult
GetResponse returns the value of Response.
func (*ComplexChallengesResultsListOKHeaders) GetXCount ¶
func (s *ComplexChallengesResultsListOKHeaders) GetXCount() int64
GetXCount returns the value of XCount.
func (*ComplexChallengesResultsListOKHeaders) SetResponse ¶
func (s *ComplexChallengesResultsListOKHeaders) SetResponse(val []ComplexChallengeResult)
SetResponse sets the value of Response.
func (*ComplexChallengesResultsListOKHeaders) SetXCount ¶
func (s *ComplexChallengesResultsListOKHeaders) SetXCount(val int64)
SetXCount sets the value of XCount.
func (*ComplexChallengesResultsListOKHeaders) Validate ¶
func (s *ComplexChallengesResultsListOKHeaders) Validate() error
type ComplexChallengesResultsListOrderBy ¶
type ComplexChallengesResultsListOrderBy string
const ( ComplexChallengesResultsListOrderByIDAsc ComplexChallengesResultsListOrderBy = "id_asc" ComplexChallengesResultsListOrderByIDDesc ComplexChallengesResultsListOrderBy = "id_desc" ComplexChallengesResultsListOrderByUserIDAsc ComplexChallengesResultsListOrderBy = "user_id_asc" ComplexChallengesResultsListOrderByUserIDDesc ComplexChallengesResultsListOrderBy = "user_id_desc" ComplexChallengesResultsListOrderByComplexchIDAsc ComplexChallengesResultsListOrderBy = "complexch_id_asc" ComplexChallengesResultsListOrderByComplexchIDDesc ComplexChallengesResultsListOrderBy = "complexch_id_desc" )
func (ComplexChallengesResultsListOrderBy) AllValues ¶
func (ComplexChallengesResultsListOrderBy) AllValues() []ComplexChallengesResultsListOrderBy
AllValues returns all ComplexChallengesResultsListOrderBy values.
func (ComplexChallengesResultsListOrderBy) MarshalText ¶
func (s ComplexChallengesResultsListOrderBy) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ComplexChallengesResultsListOrderBy) UnmarshalText ¶
func (s *ComplexChallengesResultsListOrderBy) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ComplexChallengesResultsListOrderBy) Validate ¶
func (s ComplexChallengesResultsListOrderBy) Validate() error
type ComplexChallengesResultsListParams ¶
type ComplexChallengesResultsListParams struct { // Пропуск объектов с идентификатором равном или менее // указанного. After OptInt64 // Кол-во объектов выборки для пропуска. Offset OptInt32 // Максимум объектов возвращаемых в теле ответа. Limit OptInt32 // Фильтрация по ID пользователя Таланта. UserID OptInt32 // Порядок сортировки результатов. OrderBy OptComplexChallengesResultsListOrderBy }
ComplexChallengesResultsListParams is parameters of ComplexChallengesResultsList operation.
type ComplexchGoalNotFound ¶
type ComplexchGoalNotFound struct {
ErrorMessage string `json:"error_message"`
}
func (*ComplexchGoalNotFound) Decode ¶
func (s *ComplexchGoalNotFound) Decode(d *jx.Decoder) error
Decode decodes ComplexchGoalNotFound from json.
func (*ComplexchGoalNotFound) Encode ¶
func (s *ComplexchGoalNotFound) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ComplexchGoalNotFound) GetErrorMessage ¶
func (s *ComplexchGoalNotFound) GetErrorMessage() string
GetErrorMessage returns the value of ErrorMessage.
func (*ComplexchGoalNotFound) MarshalJSON ¶
func (s *ComplexchGoalNotFound) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ComplexchGoalNotFound) SetErrorMessage ¶
func (s *ComplexchGoalNotFound) SetErrorMessage(val string)
SetErrorMessage sets the value of ErrorMessage.
func (*ComplexchGoalNotFound) UnmarshalJSON ¶
func (s *ComplexchGoalNotFound) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ComplexchNotFound ¶
type ComplexchNotFound struct {
ErrorMessage string `json:"error_message"`
}
func (*ComplexchNotFound) Decode ¶
func (s *ComplexchNotFound) Decode(d *jx.Decoder) error
Decode decodes ComplexchNotFound from json.
func (*ComplexchNotFound) Encode ¶
func (s *ComplexchNotFound) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ComplexchNotFound) GetErrorMessage ¶
func (s *ComplexchNotFound) GetErrorMessage() string
GetErrorMessage returns the value of ErrorMessage.
func (*ComplexchNotFound) MarshalJSON ¶
func (s *ComplexchNotFound) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ComplexchNotFound) SetErrorMessage ¶
func (s *ComplexchNotFound) SetErrorMessage(val string)
SetErrorMessage sets the value of ErrorMessage.
func (*ComplexchNotFound) UnmarshalJSON ¶
func (s *ComplexchNotFound) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ComplexchNotUpdatable ¶
type ComplexchNotUpdatable struct{}
Ref: #/components/responses/ComplexchNotUpdatable
type Error ¶
type Error struct { // Текстовое описание ошибки. В первую очередь // предназначено для разработчиков. Но в случае // отсуствия `verbose_message` в ответе, можно использовать и // `error_message`. ErrorMessage string `json:"error_message"` // Человеко-понятное описание ошибки. Присуствует // только в некоторых случаях. VerboseMessage OptString `json:"verbose_message"` }
Ref: #/components/schemas/Error
func (*Error) GetErrorMessage ¶
GetErrorMessage returns the value of ErrorMessage.
func (*Error) GetVerboseMessage ¶
GetVerboseMessage returns the value of VerboseMessage.
func (*Error) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Error) SetErrorMessage ¶
SetErrorMessage sets the value of ErrorMessage.
func (*Error) SetVerboseMessage ¶
SetVerboseMessage sets the value of VerboseMessage.
func (*Error) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type FormulaOperand ¶
type FormulaOperand struct { // Тип операнда: группа операторов, числовой литерал, // имя числовой переменной, агрегатная функция. Type FormulaOperandType `json:"type"` // Число литерала. LiteralValue OptFloat64 `json:"literal_value"` // Имя переменной. VariableName OptString `json:"variable_name"` // Имя агрегатной функции. AggFunc OptString `json:"agg_func"` // Аргумент функции (как правило, имя переменной). FuncArgument OptString `json:"func_argument"` // Вектор сгруппированных операций входящих в этот // операнд. Children []FormulaOperation `json:"children"` }
Ref: #/components/schemas/FormulaOperand
func (*FormulaOperand) Decode ¶
func (s *FormulaOperand) Decode(d *jx.Decoder) error
Decode decodes FormulaOperand from json.
func (*FormulaOperand) Encode ¶
func (s *FormulaOperand) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*FormulaOperand) GetAggFunc ¶
func (s *FormulaOperand) GetAggFunc() OptString
GetAggFunc returns the value of AggFunc.
func (*FormulaOperand) GetChildren ¶
func (s *FormulaOperand) GetChildren() []FormulaOperation
GetChildren returns the value of Children.
func (*FormulaOperand) GetFuncArgument ¶
func (s *FormulaOperand) GetFuncArgument() OptString
GetFuncArgument returns the value of FuncArgument.
func (*FormulaOperand) GetLiteralValue ¶
func (s *FormulaOperand) GetLiteralValue() OptFloat64
GetLiteralValue returns the value of LiteralValue.
func (*FormulaOperand) GetType ¶
func (s *FormulaOperand) GetType() FormulaOperandType
GetType returns the value of Type.
func (*FormulaOperand) GetVariableName ¶
func (s *FormulaOperand) GetVariableName() OptString
GetVariableName returns the value of VariableName.
func (*FormulaOperand) MarshalJSON ¶
func (s *FormulaOperand) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FormulaOperand) SetAggFunc ¶
func (s *FormulaOperand) SetAggFunc(val OptString)
SetAggFunc sets the value of AggFunc.
func (*FormulaOperand) SetChildren ¶
func (s *FormulaOperand) SetChildren(val []FormulaOperation)
SetChildren sets the value of Children.
func (*FormulaOperand) SetFuncArgument ¶
func (s *FormulaOperand) SetFuncArgument(val OptString)
SetFuncArgument sets the value of FuncArgument.
func (*FormulaOperand) SetLiteralValue ¶
func (s *FormulaOperand) SetLiteralValue(val OptFloat64)
SetLiteralValue sets the value of LiteralValue.
func (*FormulaOperand) SetType ¶
func (s *FormulaOperand) SetType(val FormulaOperandType)
SetType sets the value of Type.
func (*FormulaOperand) SetVariableName ¶
func (s *FormulaOperand) SetVariableName(val OptString)
SetVariableName sets the value of VariableName.
func (*FormulaOperand) UnmarshalJSON ¶
func (s *FormulaOperand) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*FormulaOperand) Validate ¶
func (s *FormulaOperand) Validate() error
type FormulaOperandType ¶
type FormulaOperandType string
Тип операнда: группа операторов, числовой литерал, имя числовой переменной, агрегатная функция.
const ( FormulaOperandTypeGroup FormulaOperandType = "group" FormulaOperandTypeLiteral FormulaOperandType = "literal" FormulaOperandTypeVariable FormulaOperandType = "variable" FormulaOperandTypeAggFunc FormulaOperandType = "agg_func" )
func (FormulaOperandType) AllValues ¶
func (FormulaOperandType) AllValues() []FormulaOperandType
AllValues returns all FormulaOperandType values.
func (*FormulaOperandType) Decode ¶
func (s *FormulaOperandType) Decode(d *jx.Decoder) error
Decode decodes FormulaOperandType from json.
func (FormulaOperandType) Encode ¶
func (s FormulaOperandType) Encode(e *jx.Encoder)
Encode encodes FormulaOperandType as json.
func (FormulaOperandType) MarshalJSON ¶
func (s FormulaOperandType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (FormulaOperandType) MarshalText ¶
func (s FormulaOperandType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*FormulaOperandType) UnmarshalJSON ¶
func (s *FormulaOperandType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*FormulaOperandType) UnmarshalText ¶
func (s *FormulaOperandType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (FormulaOperandType) Validate ¶
func (s FormulaOperandType) Validate() error
type FormulaOperation ¶
type FormulaOperation struct { Operator FormulaOperationOperator `json:"operator"` Operand FormulaOperand `json:"operand"` }
Ref: #/components/schemas/FormulaOperation
func (*FormulaOperation) Decode ¶
func (s *FormulaOperation) Decode(d *jx.Decoder) error
Decode decodes FormulaOperation from json.
func (*FormulaOperation) Encode ¶
func (s *FormulaOperation) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*FormulaOperation) GetOperand ¶
func (s *FormulaOperation) GetOperand() FormulaOperand
GetOperand returns the value of Operand.
func (*FormulaOperation) GetOperator ¶
func (s *FormulaOperation) GetOperator() FormulaOperationOperator
GetOperator returns the value of Operator.
func (*FormulaOperation) MarshalJSON ¶
func (s *FormulaOperation) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FormulaOperation) SetOperand ¶
func (s *FormulaOperation) SetOperand(val FormulaOperand)
SetOperand sets the value of Operand.
func (*FormulaOperation) SetOperator ¶
func (s *FormulaOperation) SetOperator(val FormulaOperationOperator)
SetOperator sets the value of Operator.
func (*FormulaOperation) UnmarshalJSON ¶
func (s *FormulaOperation) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*FormulaOperation) Validate ¶
func (s *FormulaOperation) Validate() error
type FormulaOperationOperator ¶
type FormulaOperationOperator string
const ( FormulaOperationOperator_Plus FormulaOperationOperator = "+" FormulaOperationOperator_Minus FormulaOperationOperator = "-" FormulaOperationOperator_ FormulaOperationOperator = "*" FormulaOperationOperator_Slash FormulaOperationOperator = "/" )
func (FormulaOperationOperator) AllValues ¶
func (FormulaOperationOperator) AllValues() []FormulaOperationOperator
AllValues returns all FormulaOperationOperator values.
func (*FormulaOperationOperator) Decode ¶
func (s *FormulaOperationOperator) Decode(d *jx.Decoder) error
Decode decodes FormulaOperationOperator from json.
func (FormulaOperationOperator) Encode ¶
func (s FormulaOperationOperator) Encode(e *jx.Encoder)
Encode encodes FormulaOperationOperator as json.
func (FormulaOperationOperator) MarshalJSON ¶
func (s FormulaOperationOperator) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (FormulaOperationOperator) MarshalText ¶
func (s FormulaOperationOperator) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*FormulaOperationOperator) UnmarshalJSON ¶
func (s *FormulaOperationOperator) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*FormulaOperationOperator) UnmarshalText ¶
func (s *FormulaOperationOperator) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (FormulaOperationOperator) Validate ¶
func (s FormulaOperationOperator) Validate() error
type FormulaParseOKApplicationJSON ¶
type FormulaParseOKApplicationJSON []FormulaOperation
func (*FormulaParseOKApplicationJSON) Decode ¶
func (s *FormulaParseOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes FormulaParseOKApplicationJSON from json.
func (FormulaParseOKApplicationJSON) Encode ¶
func (s FormulaParseOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes FormulaParseOKApplicationJSON as json.
func (FormulaParseOKApplicationJSON) MarshalJSON ¶
func (s FormulaParseOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FormulaParseOKApplicationJSON) UnmarshalJSON ¶
func (s *FormulaParseOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (FormulaParseOKApplicationJSON) Validate ¶
func (s FormulaParseOKApplicationJSON) Validate() error
type FormulaParseReq ¶
type FormulaParseReq struct { // Тип формулы: агрегация множества активностей, // вычисление финального балла. Type FormulaParseReqType `json:"type"` // Строка с текстовым представлением формулы. Body string `json:"body"` }
func (*FormulaParseReq) Decode ¶
func (s *FormulaParseReq) Decode(d *jx.Decoder) error
Decode decodes FormulaParseReq from json.
func (*FormulaParseReq) Encode ¶
func (s *FormulaParseReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*FormulaParseReq) GetBody ¶
func (s *FormulaParseReq) GetBody() string
GetBody returns the value of Body.
func (*FormulaParseReq) GetType ¶
func (s *FormulaParseReq) GetType() FormulaParseReqType
GetType returns the value of Type.
func (*FormulaParseReq) MarshalJSON ¶
func (s *FormulaParseReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FormulaParseReq) SetBody ¶
func (s *FormulaParseReq) SetBody(val string)
SetBody sets the value of Body.
func (*FormulaParseReq) SetType ¶
func (s *FormulaParseReq) SetType(val FormulaParseReqType)
SetType sets the value of Type.
func (*FormulaParseReq) UnmarshalJSON ¶
func (s *FormulaParseReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*FormulaParseReq) Validate ¶
func (s *FormulaParseReq) Validate() error
type FormulaParseReqType ¶
type FormulaParseReqType string
Тип формулы: агрегация множества активностей, вычисление финального балла.
const ( FormulaParseReqTypeOne FormulaParseReqType = "one" FormulaParseReqTypeMany FormulaParseReqType = "many" )
func (FormulaParseReqType) AllValues ¶
func (FormulaParseReqType) AllValues() []FormulaParseReqType
AllValues returns all FormulaParseReqType values.
func (*FormulaParseReqType) Decode ¶
func (s *FormulaParseReqType) Decode(d *jx.Decoder) error
Decode decodes FormulaParseReqType from json.
func (FormulaParseReqType) Encode ¶
func (s FormulaParseReqType) Encode(e *jx.Encoder)
Encode encodes FormulaParseReqType as json.
func (FormulaParseReqType) MarshalJSON ¶
func (s FormulaParseReqType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (FormulaParseReqType) MarshalText ¶
func (s FormulaParseReqType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*FormulaParseReqType) UnmarshalJSON ¶
func (s *FormulaParseReqType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*FormulaParseReqType) UnmarshalText ¶
func (s *FormulaParseReqType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (FormulaParseReqType) Validate ¶
func (s FormulaParseReqType) Validate() error
type FormulaParseRes ¶
type FormulaParseRes interface {
// contains filtered or unexported methods
}
type FormulaValidationError ¶
type FormulaValidationError struct { // Текст ошибки валидации. ErrorMessage string `json:"error_message"` // Место в формуле (последовательность символов), // которое привело к ошибке. ErrorPlace string `json:"error_place"` // Левая граница последовательности, в которой возникла // ошибка. PosLeft int `json:"pos_left"` // Правая граница последовательности, в которой // возникла ошибка. PosRight int `json:"pos_right"` }
Ref: #/components/schemas/FormulaValidationError
func (*FormulaValidationError) Decode ¶
func (s *FormulaValidationError) Decode(d *jx.Decoder) error
Decode decodes FormulaValidationError from json.
func (*FormulaValidationError) Encode ¶
func (s *FormulaValidationError) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*FormulaValidationError) GetErrorMessage ¶
func (s *FormulaValidationError) GetErrorMessage() string
GetErrorMessage returns the value of ErrorMessage.
func (*FormulaValidationError) GetErrorPlace ¶
func (s *FormulaValidationError) GetErrorPlace() string
GetErrorPlace returns the value of ErrorPlace.
func (*FormulaValidationError) GetPosLeft ¶
func (s *FormulaValidationError) GetPosLeft() int
GetPosLeft returns the value of PosLeft.
func (*FormulaValidationError) GetPosRight ¶
func (s *FormulaValidationError) GetPosRight() int
GetPosRight returns the value of PosRight.
func (*FormulaValidationError) MarshalJSON ¶
func (s *FormulaValidationError) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FormulaValidationError) SetErrorMessage ¶
func (s *FormulaValidationError) SetErrorMessage(val string)
SetErrorMessage sets the value of ErrorMessage.
func (*FormulaValidationError) SetErrorPlace ¶
func (s *FormulaValidationError) SetErrorPlace(val string)
SetErrorPlace sets the value of ErrorPlace.
func (*FormulaValidationError) SetPosLeft ¶
func (s *FormulaValidationError) SetPosLeft(val int)
SetPosLeft sets the value of PosLeft.
func (*FormulaValidationError) SetPosRight ¶
func (s *FormulaValidationError) SetPosRight(val int)
SetPosRight sets the value of PosRight.
func (*FormulaValidationError) UnmarshalJSON ¶
func (s *FormulaValidationError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Instrument ¶
type Instrument struct { // Идентификатор инструмента. ID int32 `json:"id"` // ID традиции. TraditionID int32 `json:"tradition_id"` // ID компетенции. CompetencyID int32 `json:"competency_id"` // Название инструмента. Name string `json:"name"` // Изображение инструмента. Image url.URL `json:"image"` // Описание инструмента. Description string `json:"description"` // Активен ли инструмент. IsActive bool `json:"is_active"` }
Инструмент традиции. Ref: #/components/schemas/Instrument
func (*Instrument) Decode ¶
func (s *Instrument) Decode(d *jx.Decoder) error
Decode decodes Instrument from json.
func (*Instrument) Encode ¶
func (s *Instrument) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*Instrument) GetCompetencyID ¶
func (s *Instrument) GetCompetencyID() int32
GetCompetencyID returns the value of CompetencyID.
func (*Instrument) GetDescription ¶
func (s *Instrument) GetDescription() string
GetDescription returns the value of Description.
func (*Instrument) GetImage ¶
func (s *Instrument) GetImage() url.URL
GetImage returns the value of Image.
func (*Instrument) GetIsActive ¶
func (s *Instrument) GetIsActive() bool
GetIsActive returns the value of IsActive.
func (*Instrument) GetName ¶
func (s *Instrument) GetName() string
GetName returns the value of Name.
func (*Instrument) GetTraditionID ¶
func (s *Instrument) GetTraditionID() int32
GetTraditionID returns the value of TraditionID.
func (*Instrument) MarshalJSON ¶
func (s *Instrument) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*Instrument) SetCompetencyID ¶
func (s *Instrument) SetCompetencyID(val int32)
SetCompetencyID sets the value of CompetencyID.
func (*Instrument) SetDescription ¶
func (s *Instrument) SetDescription(val string)
SetDescription sets the value of Description.
func (*Instrument) SetImage ¶
func (s *Instrument) SetImage(val url.URL)
SetImage sets the value of Image.
func (*Instrument) SetIsActive ¶
func (s *Instrument) SetIsActive(val bool)
SetIsActive sets the value of IsActive.
func (*Instrument) SetName ¶
func (s *Instrument) SetName(val string)
SetName sets the value of Name.
func (*Instrument) SetTraditionID ¶
func (s *Instrument) SetTraditionID(val int32)
SetTraditionID sets the value of TraditionID.
func (*Instrument) UnmarshalJSON ¶
func (s *Instrument) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type InstrumentCreateConflict ¶
type InstrumentCreateConflict Error
func (*InstrumentCreateConflict) Decode ¶
func (s *InstrumentCreateConflict) Decode(d *jx.Decoder) error
Decode decodes InstrumentCreateConflict from json.
func (*InstrumentCreateConflict) Encode ¶
func (s *InstrumentCreateConflict) Encode(e *jx.Encoder)
Encode encodes InstrumentCreateConflict as json.
func (*InstrumentCreateConflict) MarshalJSON ¶
func (s *InstrumentCreateConflict) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InstrumentCreateConflict) UnmarshalJSON ¶
func (s *InstrumentCreateConflict) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type InstrumentCreateRequest ¶
type InstrumentCreateRequest struct { // ID традиции. TraditionID int32 `json:"tradition_id"` // ID компетенции. CompetencyID int32 `json:"competency_id"` // Название инструмента. Name string `json:"name"` // Изображение инструмента. Image url.URL `json:"image"` // Описание инструмента. Description string `json:"description"` }
Создание инструмента традиции. Ref: #/components/schemas/InstrumentCreateRequest
func (*InstrumentCreateRequest) Decode ¶
func (s *InstrumentCreateRequest) Decode(d *jx.Decoder) error
Decode decodes InstrumentCreateRequest from json.
func (*InstrumentCreateRequest) Encode ¶
func (s *InstrumentCreateRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InstrumentCreateRequest) GetCompetencyID ¶
func (s *InstrumentCreateRequest) GetCompetencyID() int32
GetCompetencyID returns the value of CompetencyID.
func (*InstrumentCreateRequest) GetDescription ¶
func (s *InstrumentCreateRequest) GetDescription() string
GetDescription returns the value of Description.
func (*InstrumentCreateRequest) GetImage ¶
func (s *InstrumentCreateRequest) GetImage() url.URL
GetImage returns the value of Image.
func (*InstrumentCreateRequest) GetName ¶
func (s *InstrumentCreateRequest) GetName() string
GetName returns the value of Name.
func (*InstrumentCreateRequest) GetTraditionID ¶
func (s *InstrumentCreateRequest) GetTraditionID() int32
GetTraditionID returns the value of TraditionID.
func (*InstrumentCreateRequest) MarshalJSON ¶
func (s *InstrumentCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InstrumentCreateRequest) SetCompetencyID ¶
func (s *InstrumentCreateRequest) SetCompetencyID(val int32)
SetCompetencyID sets the value of CompetencyID.
func (*InstrumentCreateRequest) SetDescription ¶
func (s *InstrumentCreateRequest) SetDescription(val string)
SetDescription sets the value of Description.
func (*InstrumentCreateRequest) SetImage ¶
func (s *InstrumentCreateRequest) SetImage(val url.URL)
SetImage sets the value of Image.
func (*InstrumentCreateRequest) SetName ¶
func (s *InstrumentCreateRequest) SetName(val string)
SetName sets the value of Name.
func (*InstrumentCreateRequest) SetTraditionID ¶
func (s *InstrumentCreateRequest) SetTraditionID(val int32)
SetTraditionID sets the value of TraditionID.
func (*InstrumentCreateRequest) UnmarshalJSON ¶
func (s *InstrumentCreateRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type InstrumentCreateRes ¶
type InstrumentCreateRes interface {
// contains filtered or unexported methods
}
type InstrumentCreateUnprocessableEntity ¶
type InstrumentCreateUnprocessableEntity Error
func (*InstrumentCreateUnprocessableEntity) Decode ¶
func (s *InstrumentCreateUnprocessableEntity) Decode(d *jx.Decoder) error
Decode decodes InstrumentCreateUnprocessableEntity from json.
func (*InstrumentCreateUnprocessableEntity) Encode ¶
func (s *InstrumentCreateUnprocessableEntity) Encode(e *jx.Encoder)
Encode encodes InstrumentCreateUnprocessableEntity as json.
func (*InstrumentCreateUnprocessableEntity) MarshalJSON ¶
func (s *InstrumentCreateUnprocessableEntity) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InstrumentCreateUnprocessableEntity) UnmarshalJSON ¶
func (s *InstrumentCreateUnprocessableEntity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type InstrumentID ¶
type InstrumentID int32
func (*InstrumentID) Decode ¶
func (s *InstrumentID) Decode(d *jx.Decoder) error
Decode decodes InstrumentID from json.
func (InstrumentID) Encode ¶
func (s InstrumentID) Encode(e *jx.Encoder)
Encode encodes InstrumentID as json.
func (InstrumentID) MarshalJSON ¶
func (s InstrumentID) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InstrumentID) UnmarshalJSON ¶
func (s *InstrumentID) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type InstrumentReadParams ¶
type InstrumentReadParams struct { // Идентификатор инструмента в адресе. InstrumentID int32 }
InstrumentReadParams is parameters of InstrumentRead operation.
type InstrumentReadRes ¶
type InstrumentReadRes interface {
// contains filtered or unexported methods
}
type InstrumentUpdateConflict ¶
type InstrumentUpdateConflict Error
func (*InstrumentUpdateConflict) Decode ¶
func (s *InstrumentUpdateConflict) Decode(d *jx.Decoder) error
Decode decodes InstrumentUpdateConflict from json.
func (*InstrumentUpdateConflict) Encode ¶
func (s *InstrumentUpdateConflict) Encode(e *jx.Encoder)
Encode encodes InstrumentUpdateConflict as json.
func (*InstrumentUpdateConflict) MarshalJSON ¶
func (s *InstrumentUpdateConflict) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InstrumentUpdateConflict) UnmarshalJSON ¶
func (s *InstrumentUpdateConflict) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type InstrumentUpdateNotFound ¶
type InstrumentUpdateNotFound Error
func (*InstrumentUpdateNotFound) Decode ¶
func (s *InstrumentUpdateNotFound) Decode(d *jx.Decoder) error
Decode decodes InstrumentUpdateNotFound from json.
func (*InstrumentUpdateNotFound) Encode ¶
func (s *InstrumentUpdateNotFound) Encode(e *jx.Encoder)
Encode encodes InstrumentUpdateNotFound as json.
func (*InstrumentUpdateNotFound) MarshalJSON ¶
func (s *InstrumentUpdateNotFound) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InstrumentUpdateNotFound) UnmarshalJSON ¶
func (s *InstrumentUpdateNotFound) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type InstrumentUpdateParams ¶
type InstrumentUpdateParams struct { // Идентификатор инструмента в адресе. InstrumentID int32 }
InstrumentUpdateParams is parameters of InstrumentUpdate operation.
type InstrumentUpdateRequest ¶
type InstrumentUpdateRequest struct { // ID традиции. TraditionID OptInt32 `json:"tradition_id"` // ID компетенции. CompetencyID OptInt32 `json:"competency_id"` // Название инструмента. Name OptString `json:"name"` // Изображение инструмента. Image OptURI `json:"image"` // Описание инструмента. Description OptString `json:"description"` // Признак активности инструмента. Удаление // инструмента не предусмотрено, но его можно скрыть, // поменяв значение этого поля на false. IsActive OptBool `json:"is_active"` }
Обновление инструмента традиции. Ref: #/components/schemas/InstrumentUpdateRequest
func (*InstrumentUpdateRequest) Decode ¶
func (s *InstrumentUpdateRequest) Decode(d *jx.Decoder) error
Decode decodes InstrumentUpdateRequest from json.
func (*InstrumentUpdateRequest) Encode ¶
func (s *InstrumentUpdateRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InstrumentUpdateRequest) GetCompetencyID ¶
func (s *InstrumentUpdateRequest) GetCompetencyID() OptInt32
GetCompetencyID returns the value of CompetencyID.
func (*InstrumentUpdateRequest) GetDescription ¶
func (s *InstrumentUpdateRequest) GetDescription() OptString
GetDescription returns the value of Description.
func (*InstrumentUpdateRequest) GetImage ¶
func (s *InstrumentUpdateRequest) GetImage() OptURI
GetImage returns the value of Image.
func (*InstrumentUpdateRequest) GetIsActive ¶
func (s *InstrumentUpdateRequest) GetIsActive() OptBool
GetIsActive returns the value of IsActive.
func (*InstrumentUpdateRequest) GetName ¶
func (s *InstrumentUpdateRequest) GetName() OptString
GetName returns the value of Name.
func (*InstrumentUpdateRequest) GetTraditionID ¶
func (s *InstrumentUpdateRequest) GetTraditionID() OptInt32
GetTraditionID returns the value of TraditionID.
func (*InstrumentUpdateRequest) MarshalJSON ¶
func (s *InstrumentUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InstrumentUpdateRequest) SetCompetencyID ¶
func (s *InstrumentUpdateRequest) SetCompetencyID(val OptInt32)
SetCompetencyID sets the value of CompetencyID.
func (*InstrumentUpdateRequest) SetDescription ¶
func (s *InstrumentUpdateRequest) SetDescription(val OptString)
SetDescription sets the value of Description.
func (*InstrumentUpdateRequest) SetImage ¶
func (s *InstrumentUpdateRequest) SetImage(val OptURI)
SetImage sets the value of Image.
func (*InstrumentUpdateRequest) SetIsActive ¶
func (s *InstrumentUpdateRequest) SetIsActive(val OptBool)
SetIsActive sets the value of IsActive.
func (*InstrumentUpdateRequest) SetName ¶
func (s *InstrumentUpdateRequest) SetName(val OptString)
SetName sets the value of Name.
func (*InstrumentUpdateRequest) SetTraditionID ¶
func (s *InstrumentUpdateRequest) SetTraditionID(val OptInt32)
SetTraditionID sets the value of TraditionID.
func (*InstrumentUpdateRequest) UnmarshalJSON ¶
func (s *InstrumentUpdateRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type InstrumentUpdateRes ¶
type InstrumentUpdateRes interface {
// contains filtered or unexported methods
}
type InstrumentUpdateUnprocessableEntity ¶
type InstrumentUpdateUnprocessableEntity Error
func (*InstrumentUpdateUnprocessableEntity) Decode ¶
func (s *InstrumentUpdateUnprocessableEntity) Decode(d *jx.Decoder) error
Decode decodes InstrumentUpdateUnprocessableEntity from json.
func (*InstrumentUpdateUnprocessableEntity) Encode ¶
func (s *InstrumentUpdateUnprocessableEntity) Encode(e *jx.Encoder)
Encode encodes InstrumentUpdateUnprocessableEntity as json.
func (*InstrumentUpdateUnprocessableEntity) MarshalJSON ¶
func (s *InstrumentUpdateUnprocessableEntity) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InstrumentUpdateUnprocessableEntity) UnmarshalJSON ¶
func (s *InstrumentUpdateUnprocessableEntity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type InstrumentsListIsActive ¶
type InstrumentsListIsActive string
const ( InstrumentsListIsActiveTrue InstrumentsListIsActive = "true" InstrumentsListIsActiveFalse InstrumentsListIsActive = "false" InstrumentsListIsActiveAll InstrumentsListIsActive = "all" )
func (InstrumentsListIsActive) AllValues ¶
func (InstrumentsListIsActive) AllValues() []InstrumentsListIsActive
AllValues returns all InstrumentsListIsActive values.
func (InstrumentsListIsActive) MarshalText ¶
func (s InstrumentsListIsActive) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*InstrumentsListIsActive) UnmarshalText ¶
func (s *InstrumentsListIsActive) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (InstrumentsListIsActive) Validate ¶
func (s InstrumentsListIsActive) Validate() error
type InstrumentsListOKHeaders ¶
type InstrumentsListOKHeaders struct { XCount int64 Response []Instrument }
InstrumentsListOKHeaders wraps []Instrument with response headers.
func (*InstrumentsListOKHeaders) GetResponse ¶
func (s *InstrumentsListOKHeaders) GetResponse() []Instrument
GetResponse returns the value of Response.
func (*InstrumentsListOKHeaders) GetXCount ¶
func (s *InstrumentsListOKHeaders) GetXCount() int64
GetXCount returns the value of XCount.
func (*InstrumentsListOKHeaders) SetResponse ¶
func (s *InstrumentsListOKHeaders) SetResponse(val []Instrument)
SetResponse sets the value of Response.
func (*InstrumentsListOKHeaders) SetXCount ¶
func (s *InstrumentsListOKHeaders) SetXCount(val int64)
SetXCount sets the value of XCount.
func (*InstrumentsListOKHeaders) Validate ¶
func (s *InstrumentsListOKHeaders) Validate() error
type InstrumentsListOrderBy ¶
type InstrumentsListOrderBy string
const ( InstrumentsListOrderByIDAsc InstrumentsListOrderBy = "id_asc" InstrumentsListOrderByIDDesc InstrumentsListOrderBy = "id_desc" )
func (InstrumentsListOrderBy) AllValues ¶
func (InstrumentsListOrderBy) AllValues() []InstrumentsListOrderBy
AllValues returns all InstrumentsListOrderBy values.
func (InstrumentsListOrderBy) MarshalText ¶
func (s InstrumentsListOrderBy) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*InstrumentsListOrderBy) UnmarshalText ¶
func (s *InstrumentsListOrderBy) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (InstrumentsListOrderBy) Validate ¶
func (s InstrumentsListOrderBy) Validate() error
type InstrumentsListParams ¶
type InstrumentsListParams struct { // Пропуск объектов с идентификатором равном или менее // указанного. After OptInt32 // Кол-во объектов выборки для пропуска. Offset OptInt32 // Максимум объектов возвращаемых в теле ответа. Limit OptInt32 // Фильтрация по признаку активности объектов выборки. // По умолчанию возвращаются только активные. IsActive OptInstrumentsListIsActive // Идентификаторы инструментов. ID []int32 // Фильтрация по ID традиций. TID []int32 // Фильтрация по ID компетенций. CID []int32 // Фильтрация по названию инструмента. Name OptString // Очереднось выдачи. OrderBy OptInstrumentsListOrderBy }
InstrumentsListParams is parameters of InstrumentsList operation.
type Invoker ¶
type Invoker interface { // AwardsList invokes AwardsList operation. // // Список наград, выдаваемых за достижение уровеней по // традициям и инструментам. // // GET /awards AwardsList(ctx context.Context, params AwardsListParams) (*AwardsListOKHeaders, error) // ChallengesList invokes ChallengesList operation. // // Список испытаний. // // GET /challenges ChallengesList(ctx context.Context, params ChallengesListParams) (*ChallengesListOKHeaders, error) // ComplexChallengeCreate invokes ComplexChallengeCreate operation. // // > Достуно только для администрации. // // POST /complexch ComplexChallengeCreate(ctx context.Context, request *ComplexChallengeCreateReq) (ComplexChallengeCreateRes, error) // ComplexChallengeGoalCreate invokes ComplexChallengeGoalCreate operation. // // > Достуно только для администрации. // // POST /complexch/{complexch_id}/goals ComplexChallengeGoalCreate(ctx context.Context, request *ComplexChallengeGoalCreateReq, params ComplexChallengeGoalCreateParams) (ComplexChallengeGoalCreateRes, error) // ComplexChallengeGoalDelete invokes ComplexChallengeGoalDelete operation. // // > Достуно только для администрации. // // DELETE /complexch/goals/{goal_id} ComplexChallengeGoalDelete(ctx context.Context, params ComplexChallengeGoalDeleteParams) (ComplexChallengeGoalDeleteRes, error) // ComplexChallengeGoalRead invokes ComplexChallengeGoalRead operation. // // > Достуно только для администрации. // // GET /complexch/goals/{goal_id} ComplexChallengeGoalRead(ctx context.Context, params ComplexChallengeGoalReadParams) (ComplexChallengeGoalReadRes, error) // ComplexChallengeGoalUpdate invokes ComplexChallengeGoalUpdate operation. // // > Достуно только для администрации. // // PATCH /complexch/goals/{goal_id} ComplexChallengeGoalUpdate(ctx context.Context, request *ComplexChallengeGoalFields, params ComplexChallengeGoalUpdateParams) (ComplexChallengeGoalUpdateRes, error) // ComplexChallengeGoalsList invokes ComplexChallengeGoalsList operation. // // > Достуно только для администрации. // // GET /complexch/{complexch_id}/goals ComplexChallengeGoalsList(ctx context.Context, params ComplexChallengeGoalsListParams) (ComplexChallengeGoalsListRes, error) // ComplexChallengePublic invokes ComplexChallengePublic operation. // // > Достуно только для администрации. // Смена состояния на опубликованное требует // выполнение валидации испытания и его целей. // Подробнее см. в описании операции // [ComplexChallengeValidate](#tag/complexch/operation/ComplexChallengeValidate). // // PUT /complexch/{complexch_id}/public ComplexChallengePublic(ctx context.Context, params ComplexChallengePublicParams) (ComplexChallengePublicRes, error) // ComplexChallengeRead invokes ComplexChallengeRead operation. // // Наличие полей `score_formula` и `required_score` зависит от наличия // административных прав. // Для массива `goals` так же требуются административные // права, а так же явный запрос этого свойства. // // GET /complexch/{complexch_id} ComplexChallengeRead(ctx context.Context, params ComplexChallengeReadParams) (ComplexChallengeReadRes, error) // ComplexChallengeUpdate invokes ComplexChallengeUpdate operation. // // > Достуно только для администрации. // // PATCH /complexch/{complexch_id} ComplexChallengeUpdate(ctx context.Context, request *ComplexChallengeUpdateReq, params ComplexChallengeUpdateParams) (ComplexChallengeUpdateRes, error) // ComplexChallengeValidate invokes ComplexChallengeValidate operation. // // > Достуно только для администрации. // Ошибки валидации включают в себя массив полей // относящихся к ошибке. // Эти поля содержат путь до ошибки, в котором точка // является разделителем. // > К примеру, ошибка связанная с целью `ID=23` будет иметь // путь `goals.23`. // > // > А ошибка с связанная с полем `required_score` цели `ID=23`: `goals.23. // required_score`. // Поля самого испытания не содержат префиксов, а только // имена самих полей. // // POST /complexch/{complexch_id}/validate ComplexChallengeValidate(ctx context.Context, params ComplexChallengeValidateParams) (ComplexChallengeValidateRes, error) // ComplexChallengesList invokes ComplexChallengesList operation. // // Список агрегатных испытаний. // // GET /complexch ComplexChallengesList(ctx context.Context, params ComplexChallengesListParams) (*ComplexChallengesListOKHeaders, error) // ComplexChallengesResultsList invokes ComplexChallengesResultsList operation. // // Список результатов прохождения агрегатных испытаний. // // GET /complexch/results ComplexChallengesResultsList(ctx context.Context, params ComplexChallengesResultsListParams) (*ComplexChallengesResultsListOKHeaders, error) // FormulaParse invokes FormulaParse operation. // // > Достуно только для администрации. // Формула представляется в форме строки // последовательности операций, // группируемых круглыми скобками в дерево таких // последовательностей. // Формулы имеют разное назначение, в следствии чего, и // разный контекст вычисления. // Но все они в результате вычисления имеют только одно // числовое значение. // В комплексных испытаниях итоговый балл вычисляется // формулой для одного кортежа, // которая вычисляет итоговый балл на основе переменных // полученных в результате агрегаций. // А ниже уровнем, в целях испытания, агрегатные формулы // вычисляют значения этих переменных. // ### Агрегатные формулы для множества кортежей // Агрегатные формулы вычисляются в отношении // множества кортежей с активностями. // Эти формулы могут обращаться к свойствам активностей // и их метрикам только через агрегатные функции. // Такие формулы используются для вычисления значений // переменных, // объявленных для целей комплексных испытаний. // ### Формулы вычисления из переменных одного кортежа // Такие формулы используются для вычисления итогового // балла испытания. // В рамках вычисления используются числовые // переменные из целей. // Значение каждой из переменных представлено в // единичном числе. // В следствии чего, агрегатные функции в такой формуле // не имеют смысла, // а их упоминание в ней вызовет ошибку валидации. // // POST /formula FormulaParse(ctx context.Context, request *FormulaParseReq) (FormulaParseRes, error) // InstrumentCreate invokes InstrumentCreate operation. // // Добавление инструмента. // // POST /instruments InstrumentCreate(ctx context.Context, request *InstrumentCreateRequest) (InstrumentCreateRes, error) // InstrumentRead invokes InstrumentRead operation. // // Инструмент. // // GET /instruments/{instrument_id} InstrumentRead(ctx context.Context, params InstrumentReadParams) (InstrumentReadRes, error) // InstrumentUpdate invokes InstrumentUpdate operation. // // Обновление инструмента. // // PATCH /instruments/{instrument_id} InstrumentUpdate(ctx context.Context, request *InstrumentUpdateRequest, params InstrumentUpdateParams) (InstrumentUpdateRes, error) // InstrumentsList invokes InstrumentsList operation. // // Список инструментов. // // GET /instruments InstrumentsList(ctx context.Context, params InstrumentsListParams) (*InstrumentsListOKHeaders, error) // PassedChallengesList invokes PassedChallengesList operation. // // Параметры `player_id` и `talent_id` взаимоисключаемы. // При аутентификации токеном `TalentOAuth`, // предустанавливается параметр `talent_id`. // При аутентификации токеном `BerlogaJWT`, // предустанавливается параметр `player_id`. // // GET /challenges/passed PassedChallengesList(ctx context.Context, params PassedChallengesListParams) (*PassedChallengesListOKHeaders, error) // TraditionCreate invokes TraditionCreate operation. // // Добавление традиции. // // POST /traditions TraditionCreate(ctx context.Context, request *TraditionCreateRequest) (TraditionCreateRes, error) // TraditionInstrumentsList invokes TraditionInstrumentsList operation. // // Список инструментов традиции. // // GET /traditions/{tradition_id}/instruments TraditionInstrumentsList(ctx context.Context, params TraditionInstrumentsListParams) ([]Instrument, error) // TraditionRead invokes TraditionRead operation. // // Традиция. // // GET /traditions/{tradition_id} TraditionRead(ctx context.Context, params TraditionReadParams) (TraditionReadRes, error) // TraditionUpdate invokes TraditionUpdate operation. // // Обновление традиции. // // PATCH /traditions/{tradition_id} TraditionUpdate(ctx context.Context, request *TraditionUpdateRequest, params TraditionUpdateParams) (TraditionUpdateRes, error) // TraditionsList invokes TraditionsList operation. // // Список традиций. // // GET /traditions TraditionsList(ctx context.Context, params TraditionsListParams) ([]Tradition, error) // UserAwardDisplayed invokes UserAwardDisplayed operation. // // Отметка награды как продемонстрированной // пользователю в приложении. // // POST /user-awards/{award_id}/displayed UserAwardDisplayed(ctx context.Context, params UserAwardDisplayedParams) error // UserAwardsList invokes UserAwardsList operation. // // Формат возвращаемых объектов в массиве зависит от // типа используемой авторизации. Для `BerlogaJWT` // возращаются `PlayerAward`, для `TalentOAuth` - `TalentUserAward`. // // GET /user-awards UserAwardsList(ctx context.Context, params UserAwardsListParams) (*UserAwardsListOKHeaders, error) // UserProgressList invokes UserProgressList operation. // // Прогресс пользователя по традициям и инструментам. // // GET /user-progress UserProgressList(ctx context.Context, params UserProgressListParams) (*UserProgressListOKHeaders, error) }
Invoker invokes operations described by OpenAPI v3 specification.
type NilDateTime ¶
NilDateTime is nullable time.Time.
func NewNilDateTime ¶
func NewNilDateTime(v time.Time) NilDateTime
NewNilDateTime returns new NilDateTime with value set to v.
func (NilDateTime) Get ¶
func (o NilDateTime) Get() (v time.Time, ok bool)
Get returns value and boolean that denotes whether value was set.
func (NilDateTime) MarshalJSON ¶
func (s NilDateTime) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (NilDateTime) Or ¶
func (o NilDateTime) Or(d time.Time) time.Time
Or returns value if set, or given parameter if does not.
func (*NilDateTime) UnmarshalJSON ¶
func (s *NilDateTime) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type NilFloat64 ¶
NilFloat64 is nullable float64.
func NewNilFloat64 ¶
func NewNilFloat64(v float64) NilFloat64
NewNilFloat64 returns new NilFloat64 with value set to v.
func (*NilFloat64) Decode ¶
func (o *NilFloat64) Decode(d *jx.Decoder) error
Decode decodes float64 from json.
func (NilFloat64) Encode ¶
func (o NilFloat64) Encode(e *jx.Encoder)
Encode encodes float64 as json.
func (NilFloat64) Get ¶
func (o NilFloat64) Get() (v float64, ok bool)
Get returns value and boolean that denotes whether value was set.
func (NilFloat64) MarshalJSON ¶
func (s NilFloat64) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (NilFloat64) Or ¶
func (o NilFloat64) Or(d float64) float64
Or returns value if set, or given parameter if does not.
func (*NilFloat64) UnmarshalJSON ¶
func (s *NilFloat64) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type NilInstrumentID ¶
type NilInstrumentID struct { Value InstrumentID Null bool }
NilInstrumentID is nullable InstrumentID.
func NewNilInstrumentID ¶
func NewNilInstrumentID(v InstrumentID) NilInstrumentID
NewNilInstrumentID returns new NilInstrumentID with value set to v.
func (*NilInstrumentID) Decode ¶
func (o *NilInstrumentID) Decode(d *jx.Decoder) error
Decode decodes InstrumentID from json.
func (NilInstrumentID) Encode ¶
func (o NilInstrumentID) Encode(e *jx.Encoder)
Encode encodes InstrumentID as json.
func (NilInstrumentID) Get ¶
func (o NilInstrumentID) Get() (v InstrumentID, ok bool)
Get returns value and boolean that denotes whether value was set.
func (NilInstrumentID) IsNull ¶
func (o NilInstrumentID) IsNull() bool
IsSet returns true if value is Null.
func (NilInstrumentID) MarshalJSON ¶
func (s NilInstrumentID) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (NilInstrumentID) Or ¶
func (o NilInstrumentID) Or(d InstrumentID) InstrumentID
Or returns value if set, or given parameter if does not.
func (*NilInstrumentID) SetTo ¶
func (o *NilInstrumentID) SetTo(v InstrumentID)
SetTo sets value to v.
func (*NilInstrumentID) SetToNull ¶
func (o *NilInstrumentID) SetToNull()
SetNull sets value to null.
func (*NilInstrumentID) UnmarshalJSON ¶
func (s *NilInstrumentID) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type NilTraditionID ¶
type NilTraditionID struct { Value TraditionID Null bool }
NilTraditionID is nullable TraditionID.
func NewNilTraditionID ¶
func NewNilTraditionID(v TraditionID) NilTraditionID
NewNilTraditionID returns new NilTraditionID with value set to v.
func (*NilTraditionID) Decode ¶
func (o *NilTraditionID) Decode(d *jx.Decoder) error
Decode decodes TraditionID from json.
func (NilTraditionID) Encode ¶
func (o NilTraditionID) Encode(e *jx.Encoder)
Encode encodes TraditionID as json.
func (NilTraditionID) Get ¶
func (o NilTraditionID) Get() (v TraditionID, ok bool)
Get returns value and boolean that denotes whether value was set.
func (NilTraditionID) IsNull ¶
func (o NilTraditionID) IsNull() bool
IsSet returns true if value is Null.
func (NilTraditionID) MarshalJSON ¶
func (s NilTraditionID) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (NilTraditionID) Or ¶
func (o NilTraditionID) Or(d TraditionID) TraditionID
Or returns value if set, or given parameter if does not.
func (*NilTraditionID) UnmarshalJSON ¶
func (s *NilTraditionID) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptAwardsListOrderBy ¶
type OptAwardsListOrderBy struct { Value AwardsListOrderBy Set bool }
OptAwardsListOrderBy is optional AwardsListOrderBy.
func NewOptAwardsListOrderBy ¶
func NewOptAwardsListOrderBy(v AwardsListOrderBy) OptAwardsListOrderBy
NewOptAwardsListOrderBy returns new OptAwardsListOrderBy with value set to v.
func (OptAwardsListOrderBy) Get ¶
func (o OptAwardsListOrderBy) Get() (v AwardsListOrderBy, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptAwardsListOrderBy) IsSet ¶
func (o OptAwardsListOrderBy) IsSet() bool
IsSet returns true if OptAwardsListOrderBy was set.
func (OptAwardsListOrderBy) Or ¶
func (o OptAwardsListOrderBy) Or(d AwardsListOrderBy) AwardsListOrderBy
Or returns value if set, or given parameter if does not.
func (*OptAwardsListOrderBy) SetTo ¶
func (o *OptAwardsListOrderBy) SetTo(v AwardsListOrderBy)
SetTo sets value to v.
type OptBool ¶
OptBool is optional bool.
func NewOptBool ¶
NewOptBool returns new OptBool with value set to v.
func (OptBool) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptBool) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptComplexChallengeUpdateStrategy ¶
type OptComplexChallengeUpdateStrategy struct { Value ComplexChallengeUpdateStrategy Set bool }
OptComplexChallengeUpdateStrategy is optional ComplexChallengeUpdateStrategy.
func NewOptComplexChallengeUpdateStrategy ¶
func NewOptComplexChallengeUpdateStrategy(v ComplexChallengeUpdateStrategy) OptComplexChallengeUpdateStrategy
NewOptComplexChallengeUpdateStrategy returns new OptComplexChallengeUpdateStrategy with value set to v.
func (*OptComplexChallengeUpdateStrategy) Decode ¶
func (o *OptComplexChallengeUpdateStrategy) Decode(d *jx.Decoder) error
Decode decodes ComplexChallengeUpdateStrategy from json.
func (OptComplexChallengeUpdateStrategy) Encode ¶
func (o OptComplexChallengeUpdateStrategy) Encode(e *jx.Encoder)
Encode encodes ComplexChallengeUpdateStrategy as json.
func (OptComplexChallengeUpdateStrategy) Get ¶
func (o OptComplexChallengeUpdateStrategy) Get() (v ComplexChallengeUpdateStrategy, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptComplexChallengeUpdateStrategy) IsSet ¶
func (o OptComplexChallengeUpdateStrategy) IsSet() bool
IsSet returns true if OptComplexChallengeUpdateStrategy was set.
func (OptComplexChallengeUpdateStrategy) MarshalJSON ¶
func (s OptComplexChallengeUpdateStrategy) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptComplexChallengeUpdateStrategy) Or ¶
func (o OptComplexChallengeUpdateStrategy) Or(d ComplexChallengeUpdateStrategy) ComplexChallengeUpdateStrategy
Or returns value if set, or given parameter if does not.
func (*OptComplexChallengeUpdateStrategy) Reset ¶
func (o *OptComplexChallengeUpdateStrategy) Reset()
Reset unsets value.
func (*OptComplexChallengeUpdateStrategy) SetTo ¶
func (o *OptComplexChallengeUpdateStrategy) SetTo(v ComplexChallengeUpdateStrategy)
SetTo sets value to v.
func (*OptComplexChallengeUpdateStrategy) UnmarshalJSON ¶
func (s *OptComplexChallengeUpdateStrategy) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptComplexChallengesResultsListOrderBy ¶
type OptComplexChallengesResultsListOrderBy struct { Value ComplexChallengesResultsListOrderBy Set bool }
OptComplexChallengesResultsListOrderBy is optional ComplexChallengesResultsListOrderBy.
func NewOptComplexChallengesResultsListOrderBy ¶
func NewOptComplexChallengesResultsListOrderBy(v ComplexChallengesResultsListOrderBy) OptComplexChallengesResultsListOrderBy
NewOptComplexChallengesResultsListOrderBy returns new OptComplexChallengesResultsListOrderBy with value set to v.
func (OptComplexChallengesResultsListOrderBy) Get ¶
func (o OptComplexChallengesResultsListOrderBy) Get() (v ComplexChallengesResultsListOrderBy, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptComplexChallengesResultsListOrderBy) IsSet ¶
func (o OptComplexChallengesResultsListOrderBy) IsSet() bool
IsSet returns true if OptComplexChallengesResultsListOrderBy was set.
func (OptComplexChallengesResultsListOrderBy) Or ¶
func (o OptComplexChallengesResultsListOrderBy) Or(d ComplexChallengesResultsListOrderBy) ComplexChallengesResultsListOrderBy
Or returns value if set, or given parameter if does not.
func (*OptComplexChallengesResultsListOrderBy) Reset ¶
func (o *OptComplexChallengesResultsListOrderBy) Reset()
Reset unsets value.
func (*OptComplexChallengesResultsListOrderBy) SetTo ¶
func (o *OptComplexChallengesResultsListOrderBy) SetTo(v ComplexChallengesResultsListOrderBy)
SetTo sets value to v.
type OptFloat64 ¶
OptFloat64 is optional float64.
func NewOptFloat64 ¶
func NewOptFloat64(v float64) OptFloat64
NewOptFloat64 returns new OptFloat64 with value set to v.
func (*OptFloat64) Decode ¶
func (o *OptFloat64) Decode(d *jx.Decoder) error
Decode decodes float64 from json.
func (OptFloat64) Encode ¶
func (o OptFloat64) Encode(e *jx.Encoder)
Encode encodes float64 as json.
func (OptFloat64) Get ¶
func (o OptFloat64) Get() (v float64, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptFloat64) IsSet ¶
func (o OptFloat64) IsSet() bool
IsSet returns true if OptFloat64 was set.
func (OptFloat64) MarshalJSON ¶
func (s OptFloat64) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptFloat64) Or ¶
func (o OptFloat64) Or(d float64) float64
Or returns value if set, or given parameter if does not.
func (*OptFloat64) UnmarshalJSON ¶
func (s *OptFloat64) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInstrumentsListIsActive ¶
type OptInstrumentsListIsActive struct { Value InstrumentsListIsActive Set bool }
OptInstrumentsListIsActive is optional InstrumentsListIsActive.
func NewOptInstrumentsListIsActive ¶
func NewOptInstrumentsListIsActive(v InstrumentsListIsActive) OptInstrumentsListIsActive
NewOptInstrumentsListIsActive returns new OptInstrumentsListIsActive with value set to v.
func (OptInstrumentsListIsActive) Get ¶
func (o OptInstrumentsListIsActive) Get() (v InstrumentsListIsActive, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptInstrumentsListIsActive) IsSet ¶
func (o OptInstrumentsListIsActive) IsSet() bool
IsSet returns true if OptInstrumentsListIsActive was set.
func (*OptInstrumentsListIsActive) Reset ¶
func (o *OptInstrumentsListIsActive) Reset()
Reset unsets value.
func (*OptInstrumentsListIsActive) SetTo ¶
func (o *OptInstrumentsListIsActive) SetTo(v InstrumentsListIsActive)
SetTo sets value to v.
type OptInstrumentsListOrderBy ¶
type OptInstrumentsListOrderBy struct { Value InstrumentsListOrderBy Set bool }
OptInstrumentsListOrderBy is optional InstrumentsListOrderBy.
func NewOptInstrumentsListOrderBy ¶
func NewOptInstrumentsListOrderBy(v InstrumentsListOrderBy) OptInstrumentsListOrderBy
NewOptInstrumentsListOrderBy returns new OptInstrumentsListOrderBy with value set to v.
func (OptInstrumentsListOrderBy) Get ¶
func (o OptInstrumentsListOrderBy) Get() (v InstrumentsListOrderBy, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptInstrumentsListOrderBy) IsSet ¶
func (o OptInstrumentsListOrderBy) IsSet() bool
IsSet returns true if OptInstrumentsListOrderBy was set.
func (*OptInstrumentsListOrderBy) Reset ¶
func (o *OptInstrumentsListOrderBy) Reset()
Reset unsets value.
func (*OptInstrumentsListOrderBy) SetTo ¶
func (o *OptInstrumentsListOrderBy) SetTo(v InstrumentsListOrderBy)
SetTo sets value to v.
type OptInt32 ¶
OptInt32 is optional int32.
func NewOptInt32 ¶
NewOptInt32 returns new OptInt32 with value set to v.
func (OptInt32) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt32) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInt64 ¶
OptInt64 is optional int64.
func NewOptInt64 ¶
NewOptInt64 returns new OptInt64 with value set to v.
type OptNilDateTime ¶
OptNilDateTime is optional nullable time.Time.
func NewOptNilDateTime ¶
func NewOptNilDateTime(v time.Time) OptNilDateTime
NewOptNilDateTime returns new OptNilDateTime with value set to v.
func (OptNilDateTime) Get ¶
func (o OptNilDateTime) Get() (v time.Time, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilDateTime) IsNull ¶
func (o OptNilDateTime) IsNull() bool
IsSet returns true if value is Null.
func (OptNilDateTime) IsSet ¶
func (o OptNilDateTime) IsSet() bool
IsSet returns true if OptNilDateTime was set.
func (OptNilDateTime) MarshalJSON ¶
func (s OptNilDateTime) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilDateTime) Or ¶
func (o OptNilDateTime) Or(d time.Time) time.Time
Or returns value if set, or given parameter if does not.
func (*OptNilDateTime) UnmarshalJSON ¶
func (s *OptNilDateTime) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilInt32 ¶
OptNilInt32 is optional nullable int32.
func NewOptNilInt32 ¶
func NewOptNilInt32(v int32) OptNilInt32
NewOptNilInt32 returns new OptNilInt32 with value set to v.
func (*OptNilInt32) Decode ¶
func (o *OptNilInt32) Decode(d *jx.Decoder) error
Decode decodes int32 from json.
func (OptNilInt32) Encode ¶
func (o OptNilInt32) Encode(e *jx.Encoder)
Encode encodes int32 as json.
func (OptNilInt32) Get ¶
func (o OptNilInt32) Get() (v int32, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilInt32) IsSet ¶
func (o OptNilInt32) IsSet() bool
IsSet returns true if OptNilInt32 was set.
func (OptNilInt32) MarshalJSON ¶
func (s OptNilInt32) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilInt32) Or ¶
func (o OptNilInt32) Or(d int32) int32
Or returns value if set, or given parameter if does not.
func (*OptNilInt32) UnmarshalJSON ¶
func (s *OptNilInt32) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilUUID ¶
OptNilUUID is optional nullable uuid.UUID.
func NewOptNilUUID ¶
func NewOptNilUUID(v uuid.UUID) OptNilUUID
NewOptNilUUID returns new OptNilUUID with value set to v.
func (*OptNilUUID) Decode ¶
func (o *OptNilUUID) Decode(d *jx.Decoder) error
Decode decodes uuid.UUID from json.
func (OptNilUUID) Encode ¶
func (o OptNilUUID) Encode(e *jx.Encoder)
Encode encodes uuid.UUID as json.
func (OptNilUUID) Get ¶
func (o OptNilUUID) Get() (v uuid.UUID, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilUUID) IsSet ¶
func (o OptNilUUID) IsSet() bool
IsSet returns true if OptNilUUID was set.
func (OptNilUUID) MarshalJSON ¶
func (s OptNilUUID) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilUUID) Or ¶
func (o OptNilUUID) Or(d uuid.UUID) uuid.UUID
Or returns value if set, or given parameter if does not.
func (*OptNilUUID) UnmarshalJSON ¶
func (s *OptNilUUID) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptString ¶
OptString is optional string.
func NewOptString ¶
NewOptString returns new OptString with value set to v.
func (OptString) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptString) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptTraditionsListIsActive ¶
type OptTraditionsListIsActive struct { Value TraditionsListIsActive Set bool }
OptTraditionsListIsActive is optional TraditionsListIsActive.
func NewOptTraditionsListIsActive ¶
func NewOptTraditionsListIsActive(v TraditionsListIsActive) OptTraditionsListIsActive
NewOptTraditionsListIsActive returns new OptTraditionsListIsActive with value set to v.
func (OptTraditionsListIsActive) Get ¶
func (o OptTraditionsListIsActive) Get() (v TraditionsListIsActive, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptTraditionsListIsActive) IsSet ¶
func (o OptTraditionsListIsActive) IsSet() bool
IsSet returns true if OptTraditionsListIsActive was set.
func (*OptTraditionsListIsActive) Reset ¶
func (o *OptTraditionsListIsActive) Reset()
Reset unsets value.
func (*OptTraditionsListIsActive) SetTo ¶
func (o *OptTraditionsListIsActive) SetTo(v TraditionsListIsActive)
SetTo sets value to v.
type OptURI ¶
OptURI is optional url.URL.
func (OptURI) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptURI) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUUID ¶
OptUUID is optional uuid.UUID.
func NewOptUUID ¶
NewOptUUID returns new OptUUID with value set to v.
type OptUserProgressListOrderBy ¶
type OptUserProgressListOrderBy struct { Value UserProgressListOrderBy Set bool }
OptUserProgressListOrderBy is optional UserProgressListOrderBy.
func NewOptUserProgressListOrderBy ¶
func NewOptUserProgressListOrderBy(v UserProgressListOrderBy) OptUserProgressListOrderBy
NewOptUserProgressListOrderBy returns new OptUserProgressListOrderBy with value set to v.
func (OptUserProgressListOrderBy) Get ¶
func (o OptUserProgressListOrderBy) Get() (v UserProgressListOrderBy, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUserProgressListOrderBy) IsSet ¶
func (o OptUserProgressListOrderBy) IsSet() bool
IsSet returns true if OptUserProgressListOrderBy was set.
func (*OptUserProgressListOrderBy) Reset ¶
func (o *OptUserProgressListOrderBy) Reset()
Reset unsets value.
func (*OptUserProgressListOrderBy) SetTo ¶
func (o *OptUserProgressListOrderBy) SetTo(v UserProgressListOrderBy)
SetTo sets value to v.
type Option ¶
type Option interface { ClientOption }
Option is config option.
func WithMeterProvider ¶
func WithMeterProvider(provider metric.MeterProvider) Option
WithMeterProvider specifies a meter provider to use for creating a meter.
If none is specified, the otel.GetMeterProvider() is used.
func WithTracerProvider ¶
func WithTracerProvider(provider trace.TracerProvider) Option
WithTracerProvider specifies a tracer provider to use for creating a tracer.
If none is specified, the global provider is used.
type PassedChallengesListOKHeaders ¶
type PassedChallengesListOKHeaders struct { XCount int64 Response []PassedChallengesListOKItem }
PassedChallengesListOKHeaders wraps []PassedChallengesListOKItem with response headers.
func (*PassedChallengesListOKHeaders) GetResponse ¶
func (s *PassedChallengesListOKHeaders) GetResponse() []PassedChallengesListOKItem
GetResponse returns the value of Response.
func (*PassedChallengesListOKHeaders) GetXCount ¶
func (s *PassedChallengesListOKHeaders) GetXCount() int64
GetXCount returns the value of XCount.
func (*PassedChallengesListOKHeaders) SetResponse ¶
func (s *PassedChallengesListOKHeaders) SetResponse(val []PassedChallengesListOKItem)
SetResponse sets the value of Response.
func (*PassedChallengesListOKHeaders) SetXCount ¶
func (s *PassedChallengesListOKHeaders) SetXCount(val int64)
SetXCount sets the value of XCount.
func (*PassedChallengesListOKHeaders) Validate ¶
func (s *PassedChallengesListOKHeaders) Validate() error
type PassedChallengesListOKItem ¶
type PassedChallengesListOKItem struct { ChallengeID int32 `json:"challenge_id"` // Дата прохождения испытания. PassedAt time.Time `json:"passed_at"` }
func (*PassedChallengesListOKItem) Decode ¶
func (s *PassedChallengesListOKItem) Decode(d *jx.Decoder) error
Decode decodes PassedChallengesListOKItem from json.
func (*PassedChallengesListOKItem) Encode ¶
func (s *PassedChallengesListOKItem) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PassedChallengesListOKItem) GetChallengeID ¶
func (s *PassedChallengesListOKItem) GetChallengeID() int32
GetChallengeID returns the value of ChallengeID.
func (*PassedChallengesListOKItem) GetPassedAt ¶
func (s *PassedChallengesListOKItem) GetPassedAt() time.Time
GetPassedAt returns the value of PassedAt.
func (*PassedChallengesListOKItem) MarshalJSON ¶
func (s *PassedChallengesListOKItem) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PassedChallengesListOKItem) SetChallengeID ¶
func (s *PassedChallengesListOKItem) SetChallengeID(val int32)
SetChallengeID sets the value of ChallengeID.
func (*PassedChallengesListOKItem) SetPassedAt ¶
func (s *PassedChallengesListOKItem) SetPassedAt(val time.Time)
SetPassedAt sets the value of PassedAt.
func (*PassedChallengesListOKItem) UnmarshalJSON ¶
func (s *PassedChallengesListOKItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type PassedChallengesListParams ¶
type PassedChallengesListParams struct { // Испытания пройденные игроками, объединенными // пользователем, привязанным к указанному игроку. // При отсутствии привязанного пользователя, // возвращаются испытания указанного игрока. PlayerID OptUUID // Испытания пройденные игроками указанного // пользователя. TalentID OptInt32 // Кол-во объектов выборки для пропуска. Offset OptInt32 // Максимум объектов возвращаемых в теле ответа. Limit OptInt32 }
PassedChallengesListParams is parameters of PassedChallengesList operation.
type PlayerAward ¶
type PlayerAward struct { // Идентификатор награды. AwardID int32 `json:"award_id"` // Дата выдачи награды системой. AwardedAt time.Time `json:"awarded_at"` // Дата оповещенения игрока о получении награды в // приложении. Содержит null, если награда еще не // демонстрировалась игроку. DisplayedAt NilDateTime `json:"displayed_at"` }
Merged schema. Ref: #/components/schemas/PlayerAward
func (*PlayerAward) Decode ¶
func (s *PlayerAward) Decode(d *jx.Decoder) error
Decode decodes PlayerAward from json.
func (*PlayerAward) Encode ¶
func (s *PlayerAward) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PlayerAward) GetAwardID ¶
func (s *PlayerAward) GetAwardID() int32
GetAwardID returns the value of AwardID.
func (*PlayerAward) GetAwardedAt ¶
func (s *PlayerAward) GetAwardedAt() time.Time
GetAwardedAt returns the value of AwardedAt.
func (*PlayerAward) GetDisplayedAt ¶
func (s *PlayerAward) GetDisplayedAt() NilDateTime
GetDisplayedAt returns the value of DisplayedAt.
func (*PlayerAward) MarshalJSON ¶
func (s *PlayerAward) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PlayerAward) SetAwardID ¶
func (s *PlayerAward) SetAwardID(val int32)
SetAwardID sets the value of AwardID.
func (*PlayerAward) SetAwardedAt ¶
func (s *PlayerAward) SetAwardedAt(val time.Time)
SetAwardedAt sets the value of AwardedAt.
func (*PlayerAward) SetDisplayedAt ¶
func (s *PlayerAward) SetDisplayedAt(val NilDateTime)
SetDisplayedAt sets the value of DisplayedAt.
func (*PlayerAward) UnmarshalJSON ¶
func (s *PlayerAward) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Progress ¶
type Progress struct { TraditionID NilTraditionID `json:"tradition_id"` InstrumentID NilInstrumentID `json:"instrument_id"` // Текущее кол-во баллов. Scores float64 `json:"scores"` // Текущий уровень традиции/инструмента. AwardLevel int32 `json:"award_level"` }
Прогресс пользователя по традиции или инструменту. Ref: #/components/schemas/Progress
func (*Progress) GetAwardLevel ¶
GetAwardLevel returns the value of AwardLevel.
func (*Progress) GetInstrumentID ¶
func (s *Progress) GetInstrumentID() NilInstrumentID
GetInstrumentID returns the value of InstrumentID.
func (*Progress) GetTraditionID ¶
func (s *Progress) GetTraditionID() NilTraditionID
GetTraditionID returns the value of TraditionID.
func (*Progress) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Progress) SetAwardLevel ¶
SetAwardLevel sets the value of AwardLevel.
func (*Progress) SetInstrumentID ¶
func (s *Progress) SetInstrumentID(val NilInstrumentID)
SetInstrumentID sets the value of InstrumentID.
func (*Progress) SetTraditionID ¶
func (s *Progress) SetTraditionID(val NilTraditionID)
SetTraditionID sets the value of TraditionID.
func (*Progress) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type SecuritySource ¶
type SecuritySource interface { // BerlogaJWT provides BerlogaJWT security value. // JWT, полученный эндпоинтом // [issue-token](/berloga-idp/docs/#operation/IssueToken). BerlogaJWT(ctx context.Context, operationName string) (BerlogaJWT, error) // TalentOAuth provides TalentOAuth security value. // JWT, полученный [OAuth провайдером платформы // Талант](/api/docs/). TalentOAuth(ctx context.Context, operationName string) (TalentOAuth, error) }
SecuritySource is provider of security values (tokens, passwords, etc.).
type TalentOAuth ¶
type TalentOAuth struct {
Token string
}
func (*TalentOAuth) GetToken ¶
func (s *TalentOAuth) GetToken() string
GetToken returns the value of Token.
func (*TalentOAuth) SetToken ¶
func (s *TalentOAuth) SetToken(val string)
SetToken sets the value of Token.
type TalentUserAward ¶
type TalentUserAward struct { // Идентификатор награды. AwardID int32 `json:"award_id"` // Дата выдачи награды системой. AwardedAt time.Time `json:"awarded_at"` // Даты отображения награды в приложениях. Displayed []TalentUserAwardDisplayedItem `json:"displayed"` }
Merged schema. Ref: #/components/schemas/TalentUserAward
func (*TalentUserAward) Decode ¶
func (s *TalentUserAward) Decode(d *jx.Decoder) error
Decode decodes TalentUserAward from json.
func (*TalentUserAward) Encode ¶
func (s *TalentUserAward) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*TalentUserAward) GetAwardID ¶
func (s *TalentUserAward) GetAwardID() int32
GetAwardID returns the value of AwardID.
func (*TalentUserAward) GetAwardedAt ¶
func (s *TalentUserAward) GetAwardedAt() time.Time
GetAwardedAt returns the value of AwardedAt.
func (*TalentUserAward) GetDisplayed ¶
func (s *TalentUserAward) GetDisplayed() []TalentUserAwardDisplayedItem
GetDisplayed returns the value of Displayed.
func (*TalentUserAward) MarshalJSON ¶
func (s *TalentUserAward) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*TalentUserAward) SetAwardID ¶
func (s *TalentUserAward) SetAwardID(val int32)
SetAwardID sets the value of AwardID.
func (*TalentUserAward) SetAwardedAt ¶
func (s *TalentUserAward) SetAwardedAt(val time.Time)
SetAwardedAt sets the value of AwardedAt.
func (*TalentUserAward) SetDisplayed ¶
func (s *TalentUserAward) SetDisplayed(val []TalentUserAwardDisplayedItem)
SetDisplayed sets the value of Displayed.
func (*TalentUserAward) UnmarshalJSON ¶
func (s *TalentUserAward) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*TalentUserAward) Validate ¶
func (s *TalentUserAward) Validate() error
type TalentUserAwardDisplayedItem ¶
type TalentUserAwardDisplayedItem struct { ApplicationID ApplicationID `json:"application_id"` DisplayedAt time.Time `json:"displayed_at"` }
func (*TalentUserAwardDisplayedItem) Decode ¶
func (s *TalentUserAwardDisplayedItem) Decode(d *jx.Decoder) error
Decode decodes TalentUserAwardDisplayedItem from json.
func (*TalentUserAwardDisplayedItem) Encode ¶
func (s *TalentUserAwardDisplayedItem) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*TalentUserAwardDisplayedItem) GetApplicationID ¶
func (s *TalentUserAwardDisplayedItem) GetApplicationID() ApplicationID
GetApplicationID returns the value of ApplicationID.
func (*TalentUserAwardDisplayedItem) GetDisplayedAt ¶
func (s *TalentUserAwardDisplayedItem) GetDisplayedAt() time.Time
GetDisplayedAt returns the value of DisplayedAt.
func (*TalentUserAwardDisplayedItem) MarshalJSON ¶
func (s *TalentUserAwardDisplayedItem) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*TalentUserAwardDisplayedItem) SetApplicationID ¶
func (s *TalentUserAwardDisplayedItem) SetApplicationID(val ApplicationID)
SetApplicationID sets the value of ApplicationID.
func (*TalentUserAwardDisplayedItem) SetDisplayedAt ¶
func (s *TalentUserAwardDisplayedItem) SetDisplayedAt(val time.Time)
SetDisplayedAt sets the value of DisplayedAt.
func (*TalentUserAwardDisplayedItem) UnmarshalJSON ¶
func (s *TalentUserAwardDisplayedItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Tradition ¶
type Tradition struct { // Идентификатор традиции. ID int32 `json:"id"` // Название традиции. Name string `json:"name"` // Изображение традиции. Image url.URL `json:"image"` // Описание традиции. Description string `json:"description"` // Активна ли традиция. IsActive bool `json:"is_active"` }
Традиция берлоги. Ref: #/components/schemas/Tradition
func (*Tradition) GetDescription ¶
GetDescription returns the value of Description.
func (*Tradition) GetIsActive ¶
GetIsActive returns the value of IsActive.
func (*Tradition) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Tradition) SetDescription ¶
SetDescription sets the value of Description.
func (*Tradition) SetIsActive ¶
SetIsActive sets the value of IsActive.
func (*Tradition) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type TraditionCreateRequest ¶
type TraditionCreateRequest struct { // Название традиции. Name string `json:"name"` // Изображение традиции. Image url.URL `json:"image"` // Описание традиции. Description string `json:"description"` }
Создание традиции берлоги. Ref: #/components/schemas/TraditionCreateRequest
func (*TraditionCreateRequest) Decode ¶
func (s *TraditionCreateRequest) Decode(d *jx.Decoder) error
Decode decodes TraditionCreateRequest from json.
func (*TraditionCreateRequest) Encode ¶
func (s *TraditionCreateRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*TraditionCreateRequest) GetDescription ¶
func (s *TraditionCreateRequest) GetDescription() string
GetDescription returns the value of Description.
func (*TraditionCreateRequest) GetImage ¶
func (s *TraditionCreateRequest) GetImage() url.URL
GetImage returns the value of Image.
func (*TraditionCreateRequest) GetName ¶
func (s *TraditionCreateRequest) GetName() string
GetName returns the value of Name.
func (*TraditionCreateRequest) MarshalJSON ¶
func (s *TraditionCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*TraditionCreateRequest) SetDescription ¶
func (s *TraditionCreateRequest) SetDescription(val string)
SetDescription sets the value of Description.
func (*TraditionCreateRequest) SetImage ¶
func (s *TraditionCreateRequest) SetImage(val url.URL)
SetImage sets the value of Image.
func (*TraditionCreateRequest) SetName ¶
func (s *TraditionCreateRequest) SetName(val string)
SetName sets the value of Name.
func (*TraditionCreateRequest) UnmarshalJSON ¶
func (s *TraditionCreateRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type TraditionCreateRes ¶
type TraditionCreateRes interface {
// contains filtered or unexported methods
}
type TraditionID ¶
type TraditionID int32
func (*TraditionID) Decode ¶
func (s *TraditionID) Decode(d *jx.Decoder) error
Decode decodes TraditionID from json.
func (TraditionID) Encode ¶
func (s TraditionID) Encode(e *jx.Encoder)
Encode encodes TraditionID as json.
func (TraditionID) MarshalJSON ¶
func (s TraditionID) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*TraditionID) UnmarshalJSON ¶
func (s *TraditionID) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type TraditionInstrumentsListParams ¶
type TraditionInstrumentsListParams struct { // Идентификатор традиции в адресе. TraditionID int32 }
TraditionInstrumentsListParams is parameters of TraditionInstrumentsList operation.
type TraditionReadParams ¶
type TraditionReadParams struct { // Идентификатор традиции в адресе. TraditionID int32 }
TraditionReadParams is parameters of TraditionRead operation.
type TraditionReadRes ¶
type TraditionReadRes interface {
// contains filtered or unexported methods
}
type TraditionUpdateConflict ¶
type TraditionUpdateConflict Error
func (*TraditionUpdateConflict) Decode ¶
func (s *TraditionUpdateConflict) Decode(d *jx.Decoder) error
Decode decodes TraditionUpdateConflict from json.
func (*TraditionUpdateConflict) Encode ¶
func (s *TraditionUpdateConflict) Encode(e *jx.Encoder)
Encode encodes TraditionUpdateConflict as json.
func (*TraditionUpdateConflict) MarshalJSON ¶
func (s *TraditionUpdateConflict) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*TraditionUpdateConflict) UnmarshalJSON ¶
func (s *TraditionUpdateConflict) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type TraditionUpdateNotFound ¶
type TraditionUpdateNotFound Error
func (*TraditionUpdateNotFound) Decode ¶
func (s *TraditionUpdateNotFound) Decode(d *jx.Decoder) error
Decode decodes TraditionUpdateNotFound from json.
func (*TraditionUpdateNotFound) Encode ¶
func (s *TraditionUpdateNotFound) Encode(e *jx.Encoder)
Encode encodes TraditionUpdateNotFound as json.
func (*TraditionUpdateNotFound) MarshalJSON ¶
func (s *TraditionUpdateNotFound) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*TraditionUpdateNotFound) UnmarshalJSON ¶
func (s *TraditionUpdateNotFound) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type TraditionUpdateParams ¶
type TraditionUpdateParams struct { // Идентификатор традиции в адресе. TraditionID int32 }
TraditionUpdateParams is parameters of TraditionUpdate operation.
type TraditionUpdateRequest ¶
type TraditionUpdateRequest struct { // Название традиции. Name OptString `json:"name"` // Изображение традиции. Image OptURI `json:"image"` // Описание традиции. Description OptString `json:"description"` // Признак активности традиции. Удаление традиции не // предусмотрено, но ее можно скрыть, поменяв значение // этого поля на false. IsActive OptBool `json:"is_active"` }
Обновление традиции берлоги. Ref: #/components/schemas/TraditionUpdateRequest
func (*TraditionUpdateRequest) Decode ¶
func (s *TraditionUpdateRequest) Decode(d *jx.Decoder) error
Decode decodes TraditionUpdateRequest from json.
func (*TraditionUpdateRequest) Encode ¶
func (s *TraditionUpdateRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*TraditionUpdateRequest) GetDescription ¶
func (s *TraditionUpdateRequest) GetDescription() OptString
GetDescription returns the value of Description.
func (*TraditionUpdateRequest) GetImage ¶
func (s *TraditionUpdateRequest) GetImage() OptURI
GetImage returns the value of Image.
func (*TraditionUpdateRequest) GetIsActive ¶
func (s *TraditionUpdateRequest) GetIsActive() OptBool
GetIsActive returns the value of IsActive.
func (*TraditionUpdateRequest) GetName ¶
func (s *TraditionUpdateRequest) GetName() OptString
GetName returns the value of Name.
func (*TraditionUpdateRequest) MarshalJSON ¶
func (s *TraditionUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*TraditionUpdateRequest) SetDescription ¶
func (s *TraditionUpdateRequest) SetDescription(val OptString)
SetDescription sets the value of Description.
func (*TraditionUpdateRequest) SetImage ¶
func (s *TraditionUpdateRequest) SetImage(val OptURI)
SetImage sets the value of Image.
func (*TraditionUpdateRequest) SetIsActive ¶
func (s *TraditionUpdateRequest) SetIsActive(val OptBool)
SetIsActive sets the value of IsActive.
func (*TraditionUpdateRequest) SetName ¶
func (s *TraditionUpdateRequest) SetName(val OptString)
SetName sets the value of Name.
func (*TraditionUpdateRequest) UnmarshalJSON ¶
func (s *TraditionUpdateRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type TraditionUpdateRes ¶
type TraditionUpdateRes interface {
// contains filtered or unexported methods
}
type TraditionsListIsActive ¶
type TraditionsListIsActive string
const ( TraditionsListIsActiveTrue TraditionsListIsActive = "true" TraditionsListIsActiveFalse TraditionsListIsActive = "false" TraditionsListIsActiveAll TraditionsListIsActive = "all" )
func (TraditionsListIsActive) AllValues ¶
func (TraditionsListIsActive) AllValues() []TraditionsListIsActive
AllValues returns all TraditionsListIsActive values.
func (TraditionsListIsActive) MarshalText ¶
func (s TraditionsListIsActive) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*TraditionsListIsActive) UnmarshalText ¶
func (s *TraditionsListIsActive) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (TraditionsListIsActive) Validate ¶
func (s TraditionsListIsActive) Validate() error
type TraditionsListParams ¶
type TraditionsListParams struct { // Фильтрация по названию традиции. Name OptString // Фильтрация по признаку активности объектов выборки. // По умолчанию возвращаются только активные. IsActive OptTraditionsListIsActive }
TraditionsListParams is parameters of TraditionsList operation.
type UserAwardDisplayedOK ¶
type UserAwardDisplayedOK struct{}
UserAwardDisplayedOK is response for UserAwardDisplayed operation.
type UserAwardDisplayedParams ¶
type UserAwardDisplayedParams struct {
AwardID int32
}
UserAwardDisplayedParams is parameters of UserAwardDisplayed operation.
type UserAwardsListOKHeaders ¶
type UserAwardsListOKHeaders struct { XCount int64 Response []UserAwardsListOKItem }
UserAwardsListOKHeaders wraps []UserAwardsListOKItem with response headers.
func (*UserAwardsListOKHeaders) GetResponse ¶
func (s *UserAwardsListOKHeaders) GetResponse() []UserAwardsListOKItem
GetResponse returns the value of Response.
func (*UserAwardsListOKHeaders) GetXCount ¶
func (s *UserAwardsListOKHeaders) GetXCount() int64
GetXCount returns the value of XCount.
func (*UserAwardsListOKHeaders) SetResponse ¶
func (s *UserAwardsListOKHeaders) SetResponse(val []UserAwardsListOKItem)
SetResponse sets the value of Response.
func (*UserAwardsListOKHeaders) SetXCount ¶
func (s *UserAwardsListOKHeaders) SetXCount(val int64)
SetXCount sets the value of XCount.
func (*UserAwardsListOKHeaders) Validate ¶
func (s *UserAwardsListOKHeaders) Validate() error
type UserAwardsListOKItem ¶
type UserAwardsListOKItem struct { Type UserAwardsListOKItemType // switch on this field PlayerAward PlayerAward TalentUserAward TalentUserAward }
UserAwardsListOKItem represents sum type.
func NewPlayerAwardUserAwardsListOKItem ¶
func NewPlayerAwardUserAwardsListOKItem(v PlayerAward) UserAwardsListOKItem
NewPlayerAwardUserAwardsListOKItem returns new UserAwardsListOKItem from PlayerAward.
func NewTalentUserAwardUserAwardsListOKItem ¶
func NewTalentUserAwardUserAwardsListOKItem(v TalentUserAward) UserAwardsListOKItem
NewTalentUserAwardUserAwardsListOKItem returns new UserAwardsListOKItem from TalentUserAward.
func (*UserAwardsListOKItem) Decode ¶
func (s *UserAwardsListOKItem) Decode(d *jx.Decoder) error
Decode decodes UserAwardsListOKItem from json.
func (UserAwardsListOKItem) Encode ¶
func (s UserAwardsListOKItem) Encode(e *jx.Encoder)
Encode encodes UserAwardsListOKItem as json.
func (UserAwardsListOKItem) GetPlayerAward ¶
func (s UserAwardsListOKItem) GetPlayerAward() (v PlayerAward, ok bool)
GetPlayerAward returns PlayerAward and true boolean if UserAwardsListOKItem is PlayerAward.
func (UserAwardsListOKItem) GetTalentUserAward ¶
func (s UserAwardsListOKItem) GetTalentUserAward() (v TalentUserAward, ok bool)
GetTalentUserAward returns TalentUserAward and true boolean if UserAwardsListOKItem is TalentUserAward.
func (UserAwardsListOKItem) IsPlayerAward ¶
func (s UserAwardsListOKItem) IsPlayerAward() bool
IsPlayerAward reports whether UserAwardsListOKItem is PlayerAward.
func (UserAwardsListOKItem) IsTalentUserAward ¶
func (s UserAwardsListOKItem) IsTalentUserAward() bool
IsTalentUserAward reports whether UserAwardsListOKItem is TalentUserAward.
func (UserAwardsListOKItem) MarshalJSON ¶
func (s UserAwardsListOKItem) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserAwardsListOKItem) SetPlayerAward ¶
func (s *UserAwardsListOKItem) SetPlayerAward(v PlayerAward)
SetPlayerAward sets UserAwardsListOKItem to PlayerAward.
func (*UserAwardsListOKItem) SetTalentUserAward ¶
func (s *UserAwardsListOKItem) SetTalentUserAward(v TalentUserAward)
SetTalentUserAward sets UserAwardsListOKItem to TalentUserAward.
func (*UserAwardsListOKItem) UnmarshalJSON ¶
func (s *UserAwardsListOKItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (UserAwardsListOKItem) Validate ¶
func (s UserAwardsListOKItem) Validate() error
type UserAwardsListOKItemType ¶
type UserAwardsListOKItemType string
UserAwardsListOKItemType is oneOf type of UserAwardsListOKItem.
const ( PlayerAwardUserAwardsListOKItem UserAwardsListOKItemType = "PlayerAward" TalentUserAwardUserAwardsListOKItem UserAwardsListOKItemType = "TalentUserAward" )
Possible values for UserAwardsListOKItemType.
type UserAwardsListParams ¶
type UserAwardsListParams struct { // Кол-во объектов выборки для пропуска. Offset OptInt32 // Максимум объектов возвращаемых в теле ответа. Limit OptInt32 }
UserAwardsListParams is parameters of UserAwardsList operation.
type UserProgressListOKHeaders ¶
UserProgressListOKHeaders wraps []Progress with response headers.
func (*UserProgressListOKHeaders) GetResponse ¶
func (s *UserProgressListOKHeaders) GetResponse() []Progress
GetResponse returns the value of Response.
func (*UserProgressListOKHeaders) GetXCount ¶
func (s *UserProgressListOKHeaders) GetXCount() int64
GetXCount returns the value of XCount.
func (*UserProgressListOKHeaders) SetResponse ¶
func (s *UserProgressListOKHeaders) SetResponse(val []Progress)
SetResponse sets the value of Response.
func (*UserProgressListOKHeaders) SetXCount ¶
func (s *UserProgressListOKHeaders) SetXCount(val int64)
SetXCount sets the value of XCount.
func (*UserProgressListOKHeaders) Validate ¶
func (s *UserProgressListOKHeaders) Validate() error
type UserProgressListOrderBy ¶
type UserProgressListOrderBy string
const ( UserProgressListOrderByCreatedAtDesc UserProgressListOrderBy = "created_at_desc" UserProgressListOrderByCreatedAtAsc UserProgressListOrderBy = "created_at_asc" UserProgressListOrderByUpdatedAtDesc UserProgressListOrderBy = "updated_at_desc" UserProgressListOrderByUpdatedAtAsc UserProgressListOrderBy = "updated_at_asc" UserProgressListOrderByTraditionID UserProgressListOrderBy = "tradition_id" UserProgressListOrderByInstrumentID UserProgressListOrderBy = "instrument_id" )
func (UserProgressListOrderBy) AllValues ¶
func (UserProgressListOrderBy) AllValues() []UserProgressListOrderBy
AllValues returns all UserProgressListOrderBy values.
func (UserProgressListOrderBy) MarshalText ¶
func (s UserProgressListOrderBy) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UserProgressListOrderBy) UnmarshalText ¶
func (s *UserProgressListOrderBy) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UserProgressListOrderBy) Validate ¶
func (s UserProgressListOrderBy) Validate() error
type UserProgressListParams ¶
type UserProgressListParams struct { // Кол-во объектов выборки для пропуска. Offset OptInt32 // Максимум объектов возвращаемых в теле ответа. Limit OptInt32 // Прогресс только по традициям. TraditionsOnly OptBool // Прогресс по инструментам традиции. TraditionInstruments OptInt32 // Прогресс по определенным традициям. TraditionIds []int32 // Прогресс по определенным инструментам. InstrumentIds []int32 // Порядок сортировки. OrderBy OptUserProgressListOrderBy }
UserProgressListParams is parameters of UserProgressList operation.
type ValidationError ¶
type ValidationError struct { // Текст ошибки. ErrorMessage string `json:"error_message"` // Задействованные поля. Fields []string `json:"fields"` }
Ref: #/components/schemas/ValidationError
func (*ValidationError) Decode ¶
func (s *ValidationError) Decode(d *jx.Decoder) error
Decode decodes ValidationError from json.
func (*ValidationError) Encode ¶
func (s *ValidationError) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ValidationError) GetErrorMessage ¶
func (s *ValidationError) GetErrorMessage() string
GetErrorMessage returns the value of ErrorMessage.
func (*ValidationError) GetFields ¶
func (s *ValidationError) GetFields() []string
GetFields returns the value of Fields.
func (*ValidationError) MarshalJSON ¶
func (s *ValidationError) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ValidationError) SetErrorMessage ¶
func (s *ValidationError) SetErrorMessage(val string)
SetErrorMessage sets the value of ErrorMessage.
func (*ValidationError) SetFields ¶
func (s *ValidationError) SetFields(val []string)
SetFields sets the value of Fields.
func (*ValidationError) UnmarshalJSON ¶
func (s *ValidationError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ValidationError) Validate ¶
func (s *ValidationError) Validate() error
type ValidationErrors ¶
type ValidationErrors []ValidationError
func (*ValidationErrors) Decode ¶
func (s *ValidationErrors) Decode(d *jx.Decoder) error
Decode decodes ValidationErrors from json.
func (ValidationErrors) Encode ¶
func (s ValidationErrors) Encode(e *jx.Encoder)
Encode encodes ValidationErrors as json.
func (ValidationErrors) MarshalJSON ¶
func (s ValidationErrors) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ValidationErrors) UnmarshalJSON ¶
func (s *ValidationErrors) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ValidationErrors) Validate ¶
func (s ValidationErrors) Validate() error