pbutil

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromProtoTimestamp

func FromProtoTimestamp(t *timestamp.Timestamp) (tt time.Time)

func GetLimit

func GetLimit(n uint32) uint32

func GetLimitFromRequest

func GetLimitFromRequest(req RequestHadLimit) uint32

func GetOffset

func GetOffset(n uint32) uint32

func GetOffsetFromRequest

func GetOffsetFromRequest(req RequestHadOffset) uint32

func GetTime

func GetTime(t *timestamp.Timestamp) (tt time.Time)

func ToProtoBool

func ToProtoBool(bool bool) *wrappers.BoolValue

func ToProtoBytes

func ToProtoBytes(bytes []byte) *wrappers.BytesValue

func ToProtoInt32

func ToProtoInt32(i int32) *wrappers.Int32Value

func ToProtoString

func ToProtoString(str string) *wrappers.StringValue

func ToProtoTimestamp

func ToProtoTimestamp(t time.Time) (tt *timestamp.Timestamp)

func ToProtoUInt32

func ToProtoUInt32(uint32 uint32) *wrappers.UInt32Value

Types

type RequestHadLimit

type RequestHadLimit interface {
	GetLimit() uint32
}

type RequestHadOffset

type RequestHadOffset interface {
	GetOffset() uint32
}

Jump to

Keyboard shortcuts

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