Documentation ¶
Index ¶
- type Duration
- func (*Duration) Descriptor() ([]byte, []int)
- func (m *Duration) Duration() time.Duration
- func (m *Duration) GetIsNotNull() bool
- func (m *Duration) GetNanos() int64
- func (m *Duration) ImplementsGraphQLType(name string) bool
- func (m *Duration) IsNull() bool
- func (m Duration) MarshalJSON() ([]byte, error)
- func (m *Duration) MarshalJSONPB(_ *jsonpb.Marshaler) ([]byte, error)
- func (*Duration) ProtoMessage()
- func (m *Duration) Reset()
- func (m *Duration) Scan(value interface{}) error
- func (m *Duration) Set(value time.Duration)
- func (m *Duration) SetNull()
- func (m *Duration) String() string
- func (m *Duration) UnmarshalGraphQL(input interface{}) error
- func (m *Duration) UnmarshalJSON(input []byte) error
- func (m *Duration) UnmarshalJSONPB(_ *jsonpb.Unmarshaler, input []byte) error
- func (m Duration) Value() (driver.Value, error)
- func (m *Duration) XXX_DiscardUnknown()
- func (m *Duration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Duration) XXX_Merge(src proto.Message)
- func (m *Duration) XXX_Size() int
- func (m *Duration) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Duration ¶
type Duration struct { // Signed nanoseconds of the span of time. Must be from -315,576,000,000,000 // to +315,576,000,000,000 inclusive. Note: these bounds are computed from: // 1000 ms/sec * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years Nanos int64 `protobuf:"varint,1,opt,name=nanos,proto3" json:"nanos,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:"-"` }
Duration ...
func (*Duration) Descriptor ¶
func (*Duration) GetIsNotNull ¶
func (*Duration) ImplementsGraphQLType ¶
ImplementsGraphQLType is required by the graphql custom scalar interface this defines the name used in the schema to declare a null duration type
func (Duration) MarshalJSON ¶
MarshalJSON will return the content as json value, this is also called by graphql to generate the response
func (*Duration) MarshalJSONPB ¶
func (*Duration) ProtoMessage ¶
func (*Duration) ProtoMessage()
func (*Duration) UnmarshalGraphQL ¶
UnmarshalGraphQL is required by the graphql custom scalar interface this wraps the null duration
func (*Duration) UnmarshalJSON ¶
UnmarshalJSON is used to convert the json representation into a duration
func (*Duration) UnmarshalJSONPB ¶
func (m *Duration) UnmarshalJSONPB(_ *jsonpb.Unmarshaler, input []byte) error
func (*Duration) XXX_DiscardUnknown ¶
func (m *Duration) XXX_DiscardUnknown()
func (*Duration) XXX_Marshal ¶
func (*Duration) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.