Struct: eventstream.TimestampValue

import "../ibm-cos-sdk-go-v2/aws/protocol/eventstream"

Overview

Get returns the underlying value.

Implemented Interfaces

types.AnalyticsFilter, v4.HTTPPresigner, s3.HTTPPresignerV4, types.MetricsFilter, s3.PresignPost, arn.S3ObjectLambdaARN, types.SelectObjectContentEventStream, eventstream.Value

Method Summary collapse

Method Details

func (v TimestampValue) Get() interface{}



423
424
425
// File 'aws/protocol/eventstream/header_value.go', line 423

func (v TimestampValue) Get() interface{} { return time.Time(v) }

func (v TimestampValue) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface



465
466
467
// File 'aws/protocol/eventstream/header_value.go', line 465

func (v TimestampValue) MarshalJSON() ([]byte, error) { return []byte(v.String()), nil }

func (v TimestampValue) String() string



438
439
440
441
// File 'aws/protocol/eventstream/header_value.go', line 438

func (v TimestampValue) String() string { msec := v.epochMilli() return strconv.FormatInt(msec, 10) }