util

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromOptBool

func FromOptBool(o OptValue[bool]) types.Bool

func FromOptDateTime

func FromOptDateTime(o OptValue[time.Time]) timetypes.RFC3339

func FromOptInt

func FromOptInt(o OptValue[int]) types.Int32

func FromOptInt64

func FromOptInt64(o OptValue[int64]) types.Int64

func FromOptString

func FromOptString(o OptValue[string]) types.String

func ToPhoneOptBool added in v0.0.2

func ToPhoneOptBool(o types.Bool) zoomphone.OptBool

func ToPhoneOptDateTime added in v0.0.2

func ToPhoneOptDateTime(o timetypes.RFC3339) zoomphone.OptDateTime

func ToPhoneOptInt added in v0.0.2

func ToPhoneOptInt(o types.Int32) zoomphone.OptInt

func ToPhoneOptInt64 added in v0.0.2

func ToPhoneOptInt64(o types.Int64) zoomphone.OptInt64

func ToPhoneOptString added in v0.0.2

func ToPhoneOptString(o types.String) zoomphone.OptString

func ToUserOptBool added in v0.0.2

func ToUserOptBool(o types.Bool) zoomuser.OptBool

func ToUserOptDateTime added in v0.0.2

func ToUserOptDateTime(o timetypes.RFC3339) zoomuser.OptDateTime

func ToUserOptInt added in v0.0.2

func ToUserOptInt(o types.Int32) zoomuser.OptInt

func ToUserOptInt64 added in v0.0.2

func ToUserOptInt64(o types.Int64) zoomuser.OptInt64

func ToUserOptString added in v0.0.2

func ToUserOptString(o types.String) zoomuser.OptString

func WaitForDeletion

func WaitForDeletion(ctx context.Context, f ChangeFunc) error

func WaitForUpdate

func WaitForUpdate(ctx context.Context, f ChangeFunc) error

func WaitForUpdateWithTimeout

func WaitForUpdateWithTimeout(ctx context.Context, timeout time.Duration, f ChangeFunc) (bool, error)

Types

type ChangeFunc

type ChangeFunc func(ctx context.Context) (*bool, error)

type OptValue

type OptValue[A any] interface {
	Get() (v A, ok bool)
}

Jump to

Keyboard shortcuts

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