Documentation ¶
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 (ts *Timestamp) MarshalJSONPB(_ *jsonpb.Marshaler) ([]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) UnmarshalJSONPB(_ *jsonpb.Unmarshaler, input []byte) error
- func (ts Timestamp) Value() (driver.Value, error)
- func (m *Timestamp) XXX_DiscardUnknown()
- func (m *Timestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Timestamp) XXX_Merge(src proto.Message)
- func (m *Timestamp) XXX_Size() int
- func (m *Timestamp) XXX_Unmarshal(b []byte) 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,proto3" json:"milliseconds,omitempty"` // is set to true if the timestamp is null IsNotNull bool `protobuf:"varint,2,opt,name=is_not_null,json=isNotNull,proto3" json:"is_not_null,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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) MarshalJSONPB ¶
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
func (*Timestamp) UnmarshalJSONPB ¶
func (ts *Timestamp) UnmarshalJSONPB(_ *jsonpb.Unmarshaler, input []byte) error
func (*Timestamp) XXX_DiscardUnknown ¶
func (m *Timestamp) XXX_DiscardUnknown()
func (*Timestamp) XXX_Marshal ¶
func (*Timestamp) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.