2020-01-17 18:53:33 +03:00
|
|
|
package service
|
2020-01-16 19:10:15 +03:00
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/micro/go-micro/config/source"
|
2020-01-17 18:53:33 +03:00
|
|
|
proto "github.com/micro/go-micro/config/source/service/proto"
|
2020-01-16 19:10:15 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
func toChangeSet(c *proto.ChangeSet) *source.ChangeSet {
|
|
|
|
return &source.ChangeSet{
|
|
|
|
Data: c.Data,
|
|
|
|
Checksum: c.Checksum,
|
|
|
|
Format: c.Format,
|
|
|
|
Timestamp: time.Unix(c.Timestamp, 0),
|
|
|
|
Source: c.Source,
|
|
|
|
}
|
|
|
|
}
|