Files
mostlymatter/vendor/github.com/splitio/go-split-commons/v3/dtos/segment.go
Joram Wilander aba00a3cfd Update split SDK to 6.0.2 to fix sync bug (#17060)
* Update split SDK to 6.0.2 to fix sync bug

* Vendor and tidy
2021-03-04 11:16:08 -05:00

23 строки
577 B
Go

package dtos
// SegmentChangesDTO struct to map a segment change message.
type SegmentChangesDTO struct {
Name string `json:"name"`
Added []string `json:"added"`
Removed []string `json:"removed"`
Since int64 `json:"since"`
Till int64 `json:"till"`
}
// SegmentKeyDTO maps key data
type SegmentKeyDTO struct {
Name string `json:"name"`
LastModified int64 `json:"lastModified"`
Removed bool `json:"removed"`
}
// MySegmentDTO struct mapping segment data for mySegments endpoint
type MySegmentDTO struct {
Name string `json:"name"`
}