mirror of
https://github.com/go-micro/go-micro.git
synced 2025-06-12 22:07:47 +02:00
19 lines
373 B
Go
19 lines
373 B
Go
![]() |
package mucp
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
|
||
|
"github.com/micro/go-micro/v2/config/source"
|
||
|
proto "github.com/micro/go-micro/plugins/config/source/mucp/v2/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,
|
||
|
}
|
||
|
}
|