1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00
go-micro/config/source/mucp/util.go
2020-01-17 00:10:15 +08:00

19 lines
359 B
Go

package mucp
import (
"time"
"github.com/micro/go-micro/config/source"
proto "github.com/micro/go-micro/config/source/mucp/proto"
)
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,
}
}