Documentation ¶
Index ¶
- type Data
- type GlobalKVSBucketBuilder
- type LeaderBoardBuilder
- type LeaderBoardScoreBuilder
- type MasterDataBuilder
- func (b MasterDataBuilder) Build() model.MasterData
- func (b *MasterDataBuilder) Comment(v string) *MasterDataBuilder
- func (b *MasterDataBuilder) Content(v []byte) *MasterDataBuilder
- func (b *MasterDataBuilder) CreatedAt(v time.Time) *MasterDataBuilder
- func (b *MasterDataBuilder) IsActive(v bool) *MasterDataBuilder
- type SystemBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { MasterData []model.MasterData GlobalKVSBucket *model.GlobalKVSBucket LeaderBoard []model.LeaderBoard }
type GlobalKVSBucketBuilder ¶
type GlobalKVSBucketBuilder struct {
// contains filtered or unexported fields
}
func NewGlobalKVSBucketBuilder ¶
func NewGlobalKVSBucketBuilder() *GlobalKVSBucketBuilder
func (GlobalKVSBucketBuilder) Build ¶
func (b GlobalKVSBucketBuilder) Build() model.GlobalKVSBucket
func (*GlobalKVSBucketBuilder) Entries ¶
func (b *GlobalKVSBucketBuilder) Entries(v ...model.KVSEntry) *GlobalKVSBucketBuilder
type LeaderBoardBuilder ¶ added in v0.2.0
type LeaderBoardBuilder struct {
// contains filtered or unexported fields
}
func NewLeaderBoardBuilder ¶ added in v0.2.0
func NewLeaderBoardBuilder(id string) *LeaderBoardBuilder
func (LeaderBoardBuilder) Build ¶ added in v0.2.0
func (b LeaderBoardBuilder) Build() model.LeaderBoard
func (*LeaderBoardBuilder) Scores ¶ added in v0.2.0
func (b *LeaderBoardBuilder) Scores(v ...model.LeaderBoardScore) *LeaderBoardBuilder
type LeaderBoardScoreBuilder ¶ added in v0.2.0
type LeaderBoardScoreBuilder struct {
// contains filtered or unexported fields
}
func NewLeaderBoardScoreBuilder ¶ added in v0.2.0
func NewLeaderBoardScoreBuilder(scoreID string) *LeaderBoardScoreBuilder
func (LeaderBoardScoreBuilder) Build ¶ added in v0.2.0
func (b LeaderBoardScoreBuilder) Build() model.LeaderBoardScore
func (*LeaderBoardScoreBuilder) Score ¶ added in v0.2.0
func (b *LeaderBoardScoreBuilder) Score(v int) *LeaderBoardScoreBuilder
func (*LeaderBoardScoreBuilder) Timestamp ¶ added in v0.2.0
func (b *LeaderBoardScoreBuilder) Timestamp(v time.Time) *LeaderBoardScoreBuilder
type MasterDataBuilder ¶ added in v0.4.0
type MasterDataBuilder struct {
// contains filtered or unexported fields
}
func NewMasterDataBuilder ¶ added in v0.4.0
func NewMasterDataBuilder(revision int) *MasterDataBuilder
func (MasterDataBuilder) Build ¶ added in v0.4.0
func (b MasterDataBuilder) Build() model.MasterData
func (*MasterDataBuilder) Comment ¶ added in v0.4.0
func (b *MasterDataBuilder) Comment(v string) *MasterDataBuilder
func (*MasterDataBuilder) Content ¶ added in v0.4.0
func (b *MasterDataBuilder) Content(v []byte) *MasterDataBuilder
func (*MasterDataBuilder) CreatedAt ¶ added in v0.4.0
func (b *MasterDataBuilder) CreatedAt(v time.Time) *MasterDataBuilder
func (*MasterDataBuilder) IsActive ¶ added in v0.4.0
func (b *MasterDataBuilder) IsActive(v bool) *MasterDataBuilder
type SystemBuilder ¶
type SystemBuilder struct {
// contains filtered or unexported fields
}
func New ¶
func New() *SystemBuilder
func (SystemBuilder) Build ¶
func (b SystemBuilder) Build() Data
func (*SystemBuilder) GlobalKVSBucket ¶
func (b *SystemBuilder) GlobalKVSBucket(v model.GlobalKVSBucket) *SystemBuilder
func (*SystemBuilder) LeaderBoard ¶ added in v0.2.0
func (b *SystemBuilder) LeaderBoard(v model.LeaderBoard) *SystemBuilder
func (*SystemBuilder) MasterData ¶ added in v0.4.0
func (b *SystemBuilder) MasterData(v model.MasterData) *SystemBuilder
Click to show internal directories.
Click to hide internal directories.