Documentation ¶
Overview ¶
Package util defines util functions for IAM platform.
Index ¶
Constants ¶
View Source
const ( DefaultOffset = 0 DefaultLimit = 1000 )
Variables ¶
This section is empty.
Functions ¶
func GetInstanceID ¶
GetInstanceID returns id format like: secret-2v69o5
func RandString ¶ added in v0.1.3
RandString returns a random string of a specified length.
Types ¶
type OffsetLimit ¶ added in v0.1.5
OffsetLimit is used to retrieve the records in the db by page.
func NewOffsetLimit ¶ added in v0.1.5
func NewOffsetLimit(offset *int, limit *int) *OffsetLimit
NewOffsetLimit uses offset/DefaultOffset and limit/DefaultLimit to generate an OffsetLimit.
Click to show internal directories.
Click to hide internal directories.