logpush_convert.go 436 B

1234567891011121314151617
  1. package server
  2. import (
  3. "cfTest/cloudflareApi/logPush"
  4. "github.com/cloudflare/cloudflare-go"
  5. )
  6. func Go2ProtoLogPushJob(goJob cloudflare.LogpushJob) *logPush.LogPushJobEntity {
  7. return &logPush.LogPushJobEntity{
  8. Id: int64(goJob.ID),
  9. DataSet: goJob.Dataset,
  10. DestinationConf: goJob.DestinationConf,
  11. Enabled: goJob.Enabled,
  12. ErrorMessage: goJob.ErrorMessage,
  13. Name: goJob.Name,
  14. }
  15. }