vttime

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2021 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthVttime        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowVttime          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupVttime = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Duration added in v0.10.0

type Duration struct {
	Seconds              int64    `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"`
	Nanos                int32    `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Duration) Descriptor added in v0.10.0

func (*Duration) Descriptor() ([]byte, []int)

func (*Duration) GetNanos added in v0.10.0

func (m *Duration) GetNanos() int32

func (*Duration) GetSeconds added in v0.10.0

func (m *Duration) GetSeconds() int64

func (*Duration) Marshal added in v0.10.0

func (m *Duration) Marshal() (dAtA []byte, err error)

func (*Duration) MarshalTo added in v0.10.0

func (m *Duration) MarshalTo(dAtA []byte) (int, error)

func (*Duration) MarshalToSizedBuffer added in v0.10.0

func (m *Duration) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Duration) ProtoMessage added in v0.10.0

func (*Duration) ProtoMessage()

func (*Duration) Reset added in v0.10.0

func (m *Duration) Reset()

func (*Duration) Size added in v0.10.0

func (m *Duration) Size() (n int)

func (*Duration) String added in v0.10.0

func (m *Duration) String() string

func (*Duration) Unmarshal added in v0.10.0

func (m *Duration) Unmarshal(dAtA []byte) error

func (*Duration) XXX_DiscardUnknown added in v0.10.0

func (m *Duration) XXX_DiscardUnknown()

func (*Duration) XXX_Marshal added in v0.10.0

func (m *Duration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Duration) XXX_Merge added in v0.10.0

func (m *Duration) XXX_Merge(src proto.Message)

func (*Duration) XXX_Size added in v0.10.0

func (m *Duration) XXX_Size() int

func (*Duration) XXX_Unmarshal added in v0.10.0

func (m *Duration) XXX_Unmarshal(b []byte) error

type Time

type Time struct {
	Seconds              int64    `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"`
	Nanoseconds          int32    `protobuf:"varint,2,opt,name=nanoseconds,proto3" json:"nanoseconds,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Time represents a time stamp in nanoseconds. In go, use logutil library to convert times.

func (*Time) Descriptor

func (*Time) Descriptor() ([]byte, []int)

func (*Time) GetNanoseconds

func (m *Time) GetNanoseconds() int32

func (*Time) GetSeconds

func (m *Time) GetSeconds() int64

func (*Time) Marshal added in v0.10.0

func (m *Time) Marshal() (dAtA []byte, err error)

func (*Time) MarshalTo added in v0.10.0

func (m *Time) MarshalTo(dAtA []byte) (int, error)

func (*Time) MarshalToSizedBuffer added in v0.10.0

func (m *Time) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Time) ProtoMessage

func (*Time) ProtoMessage()

func (*Time) Reset

func (m *Time) Reset()

func (*Time) Size added in v0.10.0

func (m *Time) Size() (n int)

func (*Time) String

func (m *Time) String() string

func (*Time) Unmarshal added in v0.10.0

func (m *Time) Unmarshal(dAtA []byte) error

func (*Time) XXX_DiscardUnknown

func (m *Time) XXX_DiscardUnknown()

func (*Time) XXX_Marshal

func (m *Time) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Time) XXX_Merge

func (m *Time) XXX_Merge(src proto.Message)

func (*Time) XXX_Size

func (m *Time) XXX_Size() int

func (*Time) XXX_Unmarshal

func (m *Time) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL