Documentation ¶
Overview ¶
Copyright 2020 Matt Ho
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- type Seconds
- func (s Seconds) Add(d time.Duration) Seconds
- func (s Seconds) Int64() int64
- func (s Seconds) MarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error
- func (s Seconds) MarshalJSON() ([]byte, error)
- func (s Seconds) Time() time.Time
- func (s Seconds) TimeInLocation(loc *time.Location) time.Time
- func (s *Seconds) UnmarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error
- func (s *Seconds) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Seconds ¶
type Seconds int64
Seconds represents seconds since unix epoch
func (Seconds) MarshalDynamoDBAttributeValue ¶
func (s Seconds) MarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error
MarshalDynamoDBAttributeValue implements dynamodbattribute.Marshaler
func (Seconds) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (Seconds) TimeInLocation ¶
TimeInLocation returns time in specified location
func (*Seconds) UnmarshalDynamoDBAttributeValue ¶
func (s *Seconds) UnmarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error
UnmarshalDynamoDBAttributeValue implements dynamodbattribute.Unmarshaler
func (*Seconds) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler