rawoptional

package
v3.95.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool struct {
	Value    bool
	HasValue bool
}

func (*Bool) ToProto

func (b *Bool) ToProto() *bool

type Duration

type Duration struct {
	Value    time.Duration
	HasValue bool
}

func (*Duration) MustFromProto added in v3.85.0

func (v *Duration) MustFromProto(proto *durationpb.Duration)

func (*Duration) ToDuration added in v3.85.0

func (v *Duration) ToDuration() *time.Duration

func (*Duration) ToProto

func (v *Duration) ToProto() *durationpb.Duration

type Int64

type Int64 struct {
	Value    int64
	HasValue bool
}

func (*Int64) ToProto

func (v *Int64) ToProto() *int64

type Time

type Time struct {
	Value    time.Time
	HasValue bool
}

func (*Time) MustFromProto

func (v *Time) MustFromProto(proto *timestamppb.Timestamp)

func (*Time) ToProto

func (v *Time) ToProto() *timestamppb.Timestamp

func (*Time) ToTime added in v3.85.0

func (v *Time) ToTime() *time.Time

Jump to

Keyboard shortcuts

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