Documentation ¶
Overview ¶
Package timestamp is a generated protocol buffer package.
It is generated from these files:
timestamp.proto
It has these top-level messages:
Timestamp
Index ¶
- type Timestamp
- func (*Timestamp) Descriptor() ([]byte, []int)
- func (m *Timestamp) GetIsNotNull() bool
- func (m *Timestamp) GetMilliseconds() int64
- func (ts *Timestamp) ImplementsGraphQLType(name string) bool
- func (ts *Timestamp) IsNull() bool
- func (ts Timestamp) MarshalJSON() ([]byte, error)
- func (*Timestamp) ProtoMessage()
- func (m *Timestamp) Reset()
- func (ts *Timestamp) Scan(value interface{}) error
- func (ts *Timestamp) Set(value time.Time)
- func (ts *Timestamp) SetNull()
- func (m *Timestamp) String() string
- func (ts *Timestamp) Time() time.Time
- func (ts *Timestamp) UnmarshalGraphQL(input interface{}) error
- func (ts *Timestamp) UnmarshalJSON(input []byte) error
- func (ts Timestamp) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Timestamp ¶
type Timestamp struct { // Represents seconds of UTC time since Unix epoch // 1970-01-01T00:00:00Z Milliseconds int64 `protobuf:"varint,1,opt,name=milliseconds" json:"milliseconds,omitempty"` // is set to true if the timestamp is null IsNotNull bool `protobuf:"varint,2,opt,name=is_not_null,json=isNotNull" json:"is_not_null,omitempty"` }
Timestamp ...
func (*Timestamp) Descriptor ¶
func (*Timestamp) GetIsNotNull ¶
func (*Timestamp) GetMilliseconds ¶
func (*Timestamp) ImplementsGraphQLType ¶
ImplementsGraphQLType is required by the graphql custom scalar interface this defines the name used in the schema to declare a null time type
func (Timestamp) MarshalJSON ¶
MarshalJSON will return the content as json value, this is also called by graphql to generate the response
func (*Timestamp) ProtoMessage ¶
func (*Timestamp) ProtoMessage()
func (*Timestamp) UnmarshalGraphQL ¶
UnmarshalGraphQL is required by the graphql custom scalar interface this wraps the null time
func (*Timestamp) UnmarshalJSON ¶
UnmarshalJSON is used to convert the json representation into a timestamp
Click to show internal directories.
Click to hide internal directories.