Back to godoc.org

Package common

v0.13.4
Latest Go to latest

The highest tagged major version is .

Published: Jul 28, 2020 | License: MIT | Module: go.uber.org/cadence

Index

func BoolPtr

func BoolPtr(v bool) *bool

BoolPtr makes a copy and returns the pointer to a string.

func DecisionTypePtr

func DecisionTypePtr(t s.DecisionType) *s.DecisionType

DecisionTypePtr makes a copy and returns the pointer to a DecisionType.

func EventTypePtr

func EventTypePtr(t s.EventType) *s.EventType

EventTypePtr makes a copy and returns the pointer to a EventType.

func Float64Ptr

func Float64Ptr(v float64) *float64

Float64Ptr makes a copy and returns the pointer to a float64.

func Int32Ceil

func Int32Ceil(v float64) int32

Int32Ceil return the int32 ceil of a float64

func Int32Ptr

func Int32Ptr(v int32) *int32

Int32Ptr makes a copy and returns the pointer to an int32.

func Int64Ceil

func Int64Ceil(v float64) int64

Int64Ceil return the int64 ceil of a float64

func Int64Ptr

func Int64Ptr(v int64) *int64

Int64Ptr makes a copy and returns the pointer to an int64.

func IsThriftType

func IsThriftType(v interface{}) bool

IsThriftType checks whether the object passed in is a thrift encoded object.

func IsUseThriftDecoding

func IsUseThriftDecoding(objs []interface{}) bool

IsUseThriftDecoding checks if the objects passed in are all de-serializable using thrift.

func IsUseThriftEncoding

func IsUseThriftEncoding(objs []interface{}) bool

IsUseThriftEncoding checks if the objects passed in are all encoded using thrift.

func QueryResultTypePtr

func QueryResultTypePtr(t s.QueryResultType) *s.QueryResultType

QueryResultTypePtr makes a copy and returns the pointer to a QueryResultType.

func QueryTaskCompletedTypePtr

func QueryTaskCompletedTypePtr(t s.QueryTaskCompletedType) *s.QueryTaskCompletedType

QueryTaskCompletedTypePtr makes a copy and returns the pointer to a QueryTaskCompletedType.

func StringPtr

func StringPtr(v string) *string

StringPtr makes a copy and returns the pointer to a string.

func TDeserialize

func TDeserialize(t thrift.TStruct, b []byte) (err error)

TDeserialize is used to deserialize []byte to thrift TStruct

func TListDeserialize

func TListDeserialize(ts []thrift.TStruct, b []byte) (err error)

TListDeserialize is used to deserialize []byte to list of thrift TStruct

func TListSerialize

func TListSerialize(ts []thrift.TStruct) (b []byte, err error)

TListSerialize is used to serialize list of thrift TStruct to []byte

func TSerialize

func TSerialize(t thrift.TStruct) (b []byte, err error)

TSerialize is used to serialize thrift TStruct to []byte

func TaskListKindPtr

func TaskListKindPtr(t s.TaskListKind) *s.TaskListKind

TaskListKindPtr makes a copy and returns the pointer to a TaskListKind.

func TaskListPtr

func TaskListPtr(v s.TaskList) *s.TaskList

TaskListPtr makes a copy and returns the pointer to a TaskList.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier