Documentation ¶
Index ¶
- Constants
- func FromProtoTimestamp(t *timestamp.Timestamp) (tt time.Time)
- func GetLimitFromRequest(req RequestHadLimit) uint64
- func GetOffsetFromRequest(req RequestHadOffset) uint64
- func ToProtoBool(bool bool) *wrappers.BoolValue
- func ToProtoString(str string) *wrappers.StringValue
- func ToProtoTimestamp(t time.Time) (tt *timestamp.Timestamp)
- func ToProtoUInt32(uint32 uint32) *wrappers.UInt32Value
- type RequestHadLimit
- type RequestHadOffset
Constants ¶
View Source
const ( DefaultOffset = uint64(0) DefaultLimit = uint64(20) )
Variables ¶
This section is empty.
Functions ¶
func GetLimitFromRequest ¶
func GetLimitFromRequest(req RequestHadLimit) uint64
func GetOffsetFromRequest ¶
func GetOffsetFromRequest(req RequestHadOffset) uint64
func ToProtoBool ¶
func ToProtoString ¶
func ToProtoString(str string) *wrappers.StringValue
func ToProtoUInt32 ¶
func ToProtoUInt32(uint32 uint32) *wrappers.UInt32Value
Types ¶
type RequestHadLimit ¶
type RequestHadLimit interface {
GetLimit() uint32
}
type RequestHadOffset ¶
type RequestHadOffset interface {
GetOffset() uint32
}
Click to show internal directories.
Click to hide internal directories.