Versions in this module Expand all Collapse all v1 v1.6.3 Jul 1, 2026 v1.6.2 Jun 29, 2026 v1.6.1 Jun 26, 2026 v1.6.0 Jun 26, 2026 Changes in this version + const FFStringArrayStandardMax + const FFStringNameItemsMax + const MaxFFBigIntHexLength + const NullString + const ShortIDalphabet + var DeleteRecordNotFound = i18n.NewError(context.Background(), i18n.Msg404NotFound) + var HashMismatch = i18n.NewError(context.Background(), i18n.MsgHashMismatch) + var IDMismatch = i18n.NewError(context.Background(), i18n.MsgIDMismatch) + func FFEnumValid(ctx context.Context, t string, val FFEnum) bool + func FFEnumValues(t string) []interface + func IsNil(v interface{}) bool + func JSONScan(src, target interface{}) error + func JSONValue(target interface{}) (driver.Value, error) + func NewFFISchemaCompiler() *jsonschema.Compiler + func NewNamespacedUUIDString(_ context.Context, namespace string, uuid *UUID) string + func ParseToByteSize(byteString string) int64 + func ParseToDuration(durationString string) time.Duration + func SafeHashCompare(h1 *Bytes32, h2 *Bytes32) bool + func ShortID() string + func ToStringArray(unknown interface{}) ([]string, bool) + func TypeNamespaceNameTopicHash(objType string, ns string, name string) string + func ValidateFFNameField(ctx context.Context, str string, fieldName string) error + func ValidateFFNameFieldNoUUID(ctx context.Context, str string, fieldName string) error + func ValidateLength(ctx context.Context, str string, fieldName string, maxLen int) error + func ValidateSafeCharsOnly(ctx context.Context, str string, fieldName string) error + type AuthReq struct + Header http.Header + Method string + Namespace string + URL *url.URL + type BaseFFIParamValidator struct + func (v *BaseFFIParamValidator) GetExtensionName() string + func (v *BaseFFIParamValidator) GetMetaSchema() *jsonschema.Schema + func (v BaseFFIParamValidator) Compile(_ jsonschema.CompilerContext, _ map[string]interface{}) (jsonschema.ExtSchema, error) + type Bytes32 [32]byte + func HashResult(hash hash.Hash) *Bytes32 + func HashString(s string) *Bytes32 + func MustParseBytes32(hexStr string) *Bytes32 + func NewRandB32() *Bytes32 + func ParseBytes32(_ context.Context, hexStr string) (*Bytes32, error) + func UUIDBytes(u *UUID) *Bytes32 + func (b32 *Bytes32) Equals(b2 *Bytes32) bool + func (b32 *Bytes32) Scan(src interface{}) error + func (b32 *Bytes32) String() string + func (b32 *Bytes32) UnmarshalText(b []byte) error + func (b32 *Bytes32) Value() (driver.Value, error) + func (b32 Bytes32) MarshalText() ([]byte, error) + type ConfigRecord struct + Key string + Value *JSONAny + type FFBigInt big.Int + func NewFFBigInt(x int64) *FFBigInt + func (i *FFBigInt) Equals(i2 *FFBigInt) bool + func (i *FFBigInt) Int() *big.Int + func (i *FFBigInt) Int64() int64 + func (i *FFBigInt) Scan(src interface{}) error + func (i *FFBigInt) String() string + func (i *FFBigInt) Uint64() uint64 + func (i *FFBigInt) UnmarshalJSON(b []byte) error + func (i FFBigInt) MarshalText() ([]byte, error) + func (i FFBigInt) Value() (driver.Value, error) + type FFDuration time.Duration + func ParseDurationString(durationString string, def time.Duration) (FFDuration, error) + func (fd *FFDuration) MarshalJSON() ([]byte, error) + func (fd *FFDuration) Scan(src interface{}) error + func (fd *FFDuration) String() string + func (fd *FFDuration) UnmarshalJSON(b []byte) error + func (fd *FFDuration) Value() (driver.Value, error) + type FFEnum string + func FFEnumParseString(ctx context.Context, t, val string) (FFEnum, error) + func FFEnumValue(t string, val string) FFEnum + func (ts *FFEnum) UnmarshalText(b []byte) error + func (ts FFEnum) Equals(ts2 FFEnum) bool + func (ts FFEnum) Lower() FFEnum + func (ts FFEnum) String() string + func (ts FFEnum) Value() (driver.Value, error) + type FFI struct + Description string + Errors []*FFIError + Events []*FFIEvent + ID *UUID + Message *UUID + Methods []*FFIMethod + Name string + Namespace string + NetworkName string + Published bool + Version string + func (f *FFI) SetBroadcastMessage(msgID *UUID) + func (f *FFI) Topic() string + func (f *FFI) Validate(ctx context.Context) (err error) + type FFIError struct + ID *UUID + Interface *UUID + Namespace string + Pathname string + Signature string + type FFIErrorDefinition struct + Description string + Name string + Params FFIParams + type FFIEvent struct + ID *UUID + Interface *UUID + Namespace string + Pathname string + Signature string + type FFIEventDefinition struct + Description string + Details JSONObject + Name string + Params FFIParams + type FFIGenerationRequest struct + Description string + Input *JSONAny + Name string + Namespace string + Version string + type FFIMethod struct + Description string + Details JSONObject + ID *UUID + Interface *UUID + Name string + Namespace string + Params FFIParams + Pathname string + Returns FFIParams + type FFIParam struct + Name string + Schema *JSONAny + type FFIParamValidator interface + Compile func(ctx jsonschema.CompilerContext, m map[string]interface{}) (jsonschema.ExtSchema, error) + GetExtensionName func() string + GetMetaSchema func() *jsonschema.Schema + type FFIParams []*FFIParam + func (p *FFIParams) Scan(src interface{}) error + func (p FFIParams) Value() (driver.Value, error) + type FFIReference struct + ID *UUID + Name string + Version string + type FFStringArray []string + func NewFFStringArray(initialContent ...string) FFStringArray + func (sa *FFStringArray) Scan(src interface{}) error + func (sa FFStringArray) AddToSortedSet(newValues ...string) (res FFStringArray, changed bool) + func (sa FFStringArray) String() string + func (sa FFStringArray) Validate(ctx context.Context, fieldName string, isName bool, maxItems int) error + func (sa FFStringArray) Value() (driver.Value, error) + type FFTime time.Time + func Now() *FFTime + func ParseTimeString(str string) (*FFTime, error) + func UnixTime(unixTime int64) *FFTime + func ZeroTime() FFTime + func (ft *FFTime) Equal(ft2 *FFTime) bool + func (ft *FFTime) MarshalJSON() ([]byte, error) + func (ft *FFTime) Scan(src interface{}) error + func (ft *FFTime) Time() *time.Time + func (ft *FFTime) UnixNano() int64 + func (ft *FFTime) UnmarshalText(b []byte) error + func (ft *FFTime) Value() (driver.Value, error) + func (ft FFTime) String() string + type FFint64 int64 + func (i *FFint64) Int64() int64 + func (i *FFint64) UnmarshalJSON(b []byte) error + func (i FFint64) MarshalText() ([]byte, error) + type FFuint64 uint64 + func (i *FFuint64) Uint64() uint64 + func (i *FFuint64) UnmarshalJSON(b []byte) error + func (i FFuint64) MarshalText() ([]byte, error) + type HexUUID = Bytes32 + type JSONAny string + func JSONAnyPtr(str string) *JSONAny + func JSONAnyPtrBytes(b []byte) *JSONAny + func (h *JSONAny) AsString() string + func (h *JSONAny) Bytes() []byte + func (h *JSONAny) Hash() *Bytes32 + func (h *JSONAny) IsNil() bool + func (h *JSONAny) JSONObject() JSONObject + func (h *JSONAny) JSONObjectArray() JSONObjectArray + func (h *JSONAny) JSONObjectArrayOk(noWarn ...bool) (JSONObjectArray, bool) + func (h *JSONAny) JSONObjectNowarn() JSONObject + func (h *JSONAny) JSONObjectOk(noWarn ...bool) (JSONObject, bool) + func (h *JSONAny) Length() int64 + func (h *JSONAny) Scan(src interface{}) error + func (h *JSONAny) String() string + func (h *JSONAny) Unmarshal(ctx context.Context, v interface{}) error + func (h *JSONAny) UnmarshalJSON(b []byte) error + func (h *JSONAny) Value() (driver.Value, error) + func (h JSONAny) MarshalJSON() ([]byte, error) + type JSONObject map[string]interface + func (jd *JSONObject) Scan(src interface{}) error + func (jd JSONObject) DeepCopy() JSONObject + func (jd JSONObject) GetBool(key string) bool + func (jd JSONObject) GetInt64(key string) int64 + func (jd JSONObject) GetInteger(key string) *big.Int + func (jd JSONObject) GetObject(key string) JSONObject + func (jd JSONObject) GetObjectArray(key string) JSONObjectArray + func (jd JSONObject) GetObjectArrayOk(key string) (JSONObjectArray, bool) + func (jd JSONObject) GetObjectOk(key string) (JSONObject, bool) + func (jd JSONObject) GetString(key string) string + func (jd JSONObject) GetStringArray(key string) []string + func (jd JSONObject) GetStringArrayOk(key string) ([]string, bool) + func (jd JSONObject) GetStringOk(key string) (string, bool) + func (jd JSONObject) Hash(jsonDesc string) (*Bytes32, error) + func (jd JSONObject) String() string + func (jd JSONObject) Value() (driver.Value, error) + type JSONObjectArray []JSONObject + func ToJSONObjectArray(unknown interface{}) (JSONObjectArray, bool) + func (jd *JSONObjectArray) Scan(src interface{}) error + func (jd JSONObjectArray) Hash(jsonDesc string) (*Bytes32, error) + func (jd JSONObjectArray) String() string + func (jd JSONObjectArray) Value() (driver.Value, error) + type RESTError struct + Error string + type UUID uuid.UUID + func MustParseUUID(uuidStr string) *UUID + func NewUUID() *UUID + func ParseNamespacedUUID(ctx context.Context, nsIDStr string) (namespace string, uuid *UUID, err error) + func ParseUUID(ctx context.Context, uuidStr string) (*UUID, error) + func (u *UUID) Equals(u2 *UUID) bool + func (u *UUID) HashBucket(buckets int) int + func (u *UUID) Scan(src interface{}) error + func (u *UUID) String() string + func (u *UUID) UnmarshalBinary(b []byte) error + func (u *UUID) UnmarshalText(b []byte) error + func (u *UUID) Value() (driver.Value, error) + func (u UUID) MarshalBinary() ([]byte, error) + func (u UUID) MarshalText() ([]byte, error) + type UpsertOptimization int + const UpsertOptimizationExisting + const UpsertOptimizationNew + const UpsertOptimizationSkip