Documentation
¶
Index ¶
- func ExtensionSliceToJSON(e []Extension) json.RawMessage
- func ExtensionToJSON(e Extension) json.RawMessage
- func ExtensionTypeSliceToJSON(in []ExtensionType) json.RawMessage
- func StatusSliceToJSON(in []Status) json.RawMessage
- type Extension
- func (e Extension) ArrayFieldIdentifierToType() map[string]types.FieldType
- func (e Extension) DependantFieldIdentifierToTypeMap() map[string]map[string]types.FieldType
- func (e Extension) EntityIdentifier() string
- func (e Extension) FieldIdentfierToTypeMap() map[string]types.FieldType
- func (e Extension) IsDependant() bool
- func (e Extension) OrderedFieldIdentifiers() []string
- func (e Extension) PrimaryKeyIdentifier() string
- func (e Extension) PrimaryKeyValue() string
- func (e Extension) String() string
- func (e Extension) ToJSON() json.RawMessage
- type ExtensionType
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtensionSliceToJSON ¶
func ExtensionSliceToJSON(e []Extension) json.RawMessage
func ExtensionToJSON ¶
func ExtensionToJSON(e Extension) json.RawMessage
func ExtensionTypeSliceToJSON ¶
func ExtensionTypeSliceToJSON(in []ExtensionType) json.RawMessage
func StatusSliceToJSON ¶
func StatusSliceToJSON(in []Status) json.RawMessage
Types ¶
type Extension ¶
type Extension struct {
UUID uuid.UUID `json:"uuid"`
Version int64 `json:"version"`
Identifier string `json:"identifier"`
DisplayName *string `json:"display_name"`
DisplayAuthorName *string `json:"display_author_name"`
Description *string `json:"description"`
URL *string `json:"url"`
Verified bool `json:"verified"`
Repository string `json:"repository"`
ExtensionType ExtensionType `json:"extension_type"`
Tags []string `json:"tags"`
Pro bool `json:"pro"`
Public bool `json:"public"`
Visibility []visibility.Visibility `json:"visibility"`
Status Status `json:"status"`
OwnerUUID uuid.UUID `json:"owner_uuid"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
CreatedByUUID uuid.UUID `json:"created_by_uuid"`
UpdatedByUUID uuid.UUID `json:"updated_by_uuid"`
}
func ExtensionFromJSON ¶
func ExtensionFromJSON(data json.RawMessage) Extension
func ExtensionSliceFromJSON ¶
func ExtensionSliceFromJSON(data json.RawMessage) []Extension
func NewExtensionWithRandomValues ¶
func NewExtensionWithRandomValues() Extension
func (Extension) ArrayFieldIdentifierToType ¶
func (Extension) DependantFieldIdentifierToTypeMap ¶
func (Extension) EntityIdentifier ¶
func (Extension) FieldIdentfierToTypeMap ¶
func (Extension) IsDependant ¶
func (Extension) OrderedFieldIdentifiers ¶ added in v1.0.35
func (Extension) PrimaryKeyIdentifier ¶
func (Extension) PrimaryKeyValue ¶
func (Extension) ToJSON ¶
func (e Extension) ToJSON() json.RawMessage
type ExtensionType ¶
type ExtensionType int64
const ( EXTENSION_TYPE_INVALID ExtensionType = iota EXTENSION_TYPE_IMPORTER EXTENSION_TYPE_SYNCHRONIZER EXTENSION_TYPE_GENERATOR )
func ExtensionTypeFromPointerString ¶
func ExtensionTypeFromPointerString(in *string) ExtensionType
func ExtensionTypeFromString ¶
func ExtensionTypeFromString(in string) ExtensionType
func JSONToExtensionTypeSlice ¶
func JSONToExtensionTypeSlice(in json.RawMessage) []ExtensionType
func (ExtensionType) String ¶
func (e ExtensionType) String() string
func (ExtensionType) StringPtr ¶
func (e ExtensionType) StringPtr() *string
func (ExtensionType) ToInt64 ¶
func (e ExtensionType) ToInt64() int64
type Status ¶
type Status int64
func JSONToStatusSlice ¶
func JSONToStatusSlice(in json.RawMessage) []Status
func StatusFromPointerString ¶
func StatusFromString ¶
Click to show internal directories.
Click to hide internal directories.