Documentation ¶
Index ¶
- Variables
- type Duration
- func (d *Duration) Add(delta time.Duration)
- func (d *Duration) Clear()
- func (*Duration) Descriptor() ([]byte, []int)
- func (d Duration) HasValue() bool
- func (m *Duration) Marshal() (dAtA []byte, err error)
- func (m *Duration) MarshalTo(dAtA []byte) (int, error)
- func (m *Duration) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (d *Duration) MaybeAdd(other Duration)
- func (*Duration) ProtoMessage()
- func (m *Duration) Reset()
- func (d *Duration) Set(value time.Duration)
- func (m *Duration) Size() (n int)
- func (d Duration) String() string
- func (m *Duration) Unmarshal(dAtA []byte) error
- func (d Duration) Value() time.Duration
- 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
- type Uint
- func (i *Uint) Add(delta int64)
- func (i *Uint) Clear()
- func (*Uint) Descriptor() ([]byte, []int)
- func (i Uint) HasValue() bool
- func (m *Uint) Marshal() (dAtA []byte, err error)
- func (m *Uint) MarshalTo(dAtA []byte) (int, error)
- func (m *Uint) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (i *Uint) MaybeAdd(other Uint)
- func (*Uint) ProtoMessage()
- func (m *Uint) Reset()
- func (i *Uint) Set(value uint64)
- func (m *Uint) Size() (n int)
- func (i Uint) String() string
- func (m *Uint) Unmarshal(dAtA []byte) error
- func (i Uint) Value() uint64
- func (m *Uint) XXX_DiscardUnknown()
- func (m *Uint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Uint) XXX_Merge(src proto.Message)
- func (m *Uint) XXX_Size() int
- func (m *Uint) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Duration ¶
type Duration struct { // ValuePlusOne is the logical value plus 1, so that zero remains the special // case of having no value. // DO NOT ACCESS THIS DIRECTLY. Use HasValue and Value instead. ValuePlusOne time.Duration `protobuf:"bytes,1,opt,name=value_plus_one,json=valuePlusOne,proto3,stdduration" json:"value_plus_one"` }
Duration stores an optional time.Duration. Optional means that it may not be set, and one can differentiate between being unset and having a value of zero.
func MakeTimeValue ¶
MakeTimeValue returns an Duration with a set value.
func (*Duration) Descriptor ¶
func (*Duration) MarshalToSizedBuffer ¶
func (*Duration) MaybeAdd ¶
MaybeAdd adds the given value, if it is set. Does nothing if other is not set.
func (*Duration) ProtoMessage ¶
func (*Duration) ProtoMessage()
func (*Duration) XXX_DiscardUnknown ¶
func (m *Duration) XXX_DiscardUnknown()
func (*Duration) XXX_Marshal ¶
func (*Duration) XXX_Unmarshal ¶
type Uint ¶
type Uint struct { // The underlying value is the logical value plus 1, so that zero remains the // special case of having no value. ValuePlusOne uint64 `protobuf:"varint,1,opt,name=value_plus_one,json=valuePlusOne,proto3" json:"value_plus_one,omitempty"` }
Uint stores an optional unsigned integer value. Optional means that it may not be set, and one can differentiate between being unset and having a value of zero.
func MakeUint ¶
MakeUint returns an Uint with a set value. The maximum value that can be represented is (MaxUint64-1).
func (*Uint) Descriptor ¶
func (*Uint) MaybeAdd ¶
MaybeAdd adds the given value, if it is set. Does nothing if other is not set.
func (*Uint) ProtoMessage ¶
func (*Uint) ProtoMessage()
func (*Uint) XXX_DiscardUnknown ¶
func (m *Uint) XXX_DiscardUnknown()
func (*Uint) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.