unixTimestamp returns given time in either unix seconds or unix nanoseconds, depending on the remoteControl/gRPC/timeInNanoSeconds boolean configuration.
(x time.Time)
| 4013 | // unixTimestamp returns given time in either unix seconds or unix nanoseconds, depending |
| 4014 | // on the remoteControl/gRPC/timeInNanoSeconds boolean configuration. |
| 4015 | func (s *RPCServer) unixTimestamp(x time.Time) int64 { |
| 4016 | if s.Config.RemoteControl.GRPC.TimeInNanoSeconds { |
| 4017 | return x.UnixNano() |
| 4018 | } |
| 4019 | return x.Unix() |
| 4020 | } |
| 4021 | |
| 4022 | // SetDataHistoryJobStatus sets a data history job's status |
| 4023 | func (s *RPCServer) SetDataHistoryJobStatus(_ context.Context, r *gctrpc.SetDataHistoryJobStatusRequest) (*gctrpc.GenericResponse, error) { |
no outgoing calls