Documentation ¶
Index ¶
- Constants
- func ChalkMarshal(attrs map[string]any) ([]byte, error)
- func ChalkUnmarshal(body []byte) (map[string]any, error)
- func ConvertBytesToTable(byteArr []byte) (result arrow.Table, err error)
- func CreateOnlineQueryBulkBody(inputs map[string]any, header FeatherRequestHeader) ([]byte, error)
- func CreateUploadFeaturesBody(inputs map[string]any) ([]byte, error)
- func ExpandTilde(path string) (string, error)
- func FileExists(path string) bool
- func FormatBucketDuration(duration int) string
- func GenerateGetEnumFunction[K comparable](valueToEnum map[string]K, enumName string) func(string) (*K, error)
- func GetReflectValue(value any, elemType reflect.Type) (reflect.Value, error)
- func IsDataclass(field reflect.Value) bool
- func IsDataclassPointer(field reflect.Value) bool
- func ParseBucketDuration(durationStr string) (int, error)
- func StringOrNil(value string) *string
- type BufferWriteSeeker
- type FeatherRequestHeader
- type Numbers
Constants ¶
View Source
const ApiServerEnvVarKey = "CHALK_API_SERVER"
View Source
const ClientIdEnvVarKey = "CHALK_CLIENT_ID"
View Source
const ClientSecretEnvVarKey = "CHALK_CLIENT_SECRET"
View Source
const EnvironmentEnvVarKey = "CHALK_ACTIVE_ENVIRONMENT"
Variables ¶
This section is empty.
Functions ¶
func ChalkMarshal ¶ added in v0.3.13
ChalkMarshal converts a map to a byte array. Follows the byte-packing format as described in the Chalk Python repo's `byte_transmit.serialize()` function.
func ConvertBytesToTable ¶ added in v0.3.7
func CreateOnlineQueryBulkBody ¶ added in v0.3.6
func CreateOnlineQueryBulkBody(inputs map[string]any, header FeatherRequestHeader) ([]byte, error)
func CreateUploadFeaturesBody ¶ added in v0.3.13
func ExpandTilde ¶ added in v0.3.3
func FileExists ¶
func FormatBucketDuration ¶
FormatBucketDuration takes an integer number of seconds and returns a string representation that satisfies these conditions:
- the largest possible unit of time (e.g. "10m" instead of "600s")
- a single unit of time (e.g. "601s" instead of "10m1s")
func GenerateGetEnumFunction ¶
func GenerateGetEnumFunction[K comparable](valueToEnum map[string]K, enumName string) func(string) (*K, error)
func GetReflectValue ¶ added in v0.3.6
func IsDataclass ¶ added in v0.3.6
func IsDataclassPointer ¶ added in v0.3.6
func ParseBucketDuration ¶
ParseBucketDuration parses a bucket duration string and returns the duration in seconds. The input string must be of the form "Nunit" where N is a positive integer and unit is one of "s", "m", "h", "d", or "w".
func StringOrNil ¶
Types ¶
type BufferWriteSeeker ¶ added in v0.3.7
type BufferWriteSeeker struct {
// contains filtered or unexported fields
}
func (*BufferWriteSeeker) Bytes ¶ added in v0.3.7
func (b *BufferWriteSeeker) Bytes() []byte
type FeatherRequestHeader ¶ added in v0.4.7
Source Files ¶
Click to show internal directories.
Click to hide internal directories.