relationship_node

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RelationshipNodeSliceToJSON

func RelationshipNodeSliceToJSON(e []RelationshipNode) json.RawMessage

func RelationshipNodeToJSON

func RelationshipNodeToJSON(e RelationshipNode) json.RawMessage

func TypeSliceToJSON

func TypeSliceToJSON(in []Type) json.RawMessage

Types

type RelationshipNode

type RelationshipNode struct {
	UUID          uuid.UUID                                                `json:"uuid"`
	Type          Type                                                     `json:"type"`
	TypeConfig    relationship_node_type_config.RelationshipNodeTypeConfig `json:"type_config"`
	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 NewRelationshipNodeSliceWithRandomValues

func NewRelationshipNodeSliceWithRandomValues(n int) []RelationshipNode

func NewRelationshipNodeWithRandomValues

func NewRelationshipNodeWithRandomValues() RelationshipNode

func RelationshipNodeFromJSON

func RelationshipNodeFromJSON(data json.RawMessage) RelationshipNode

func RelationshipNodeSliceFromJSON

func RelationshipNodeSliceFromJSON(data json.RawMessage) []RelationshipNode

func (RelationshipNode) ArrayFieldIdentifierToType

func (e RelationshipNode) ArrayFieldIdentifierToType() map[string]types.FieldType

func (RelationshipNode) EntityIdentifier

func (e RelationshipNode) EntityIdentifier() string

func (RelationshipNode) FieldIdentfierToTypeMap

func (e RelationshipNode) FieldIdentfierToTypeMap() map[string]types.FieldType

func (RelationshipNode) IsDependant

func (e RelationshipNode) IsDependant() bool

func (RelationshipNode) String

func (e RelationshipNode) String() string

func (RelationshipNode) ToJSON

func (e RelationshipNode) ToJSON() json.RawMessage

type Type

type Type int64
const (
	TYPE_INVALID Type = iota
	TYPE_ENTITY
	TYPE_SERVICE
)

func JSONToTypeSlice

func JSONToTypeSlice(in json.RawMessage) []Type

func TypeFromPointerString

func TypeFromPointerString(in *string) Type

func TypeFromString

func TypeFromString(in string) Type

func (Type) String

func (e Type) String() string

func (Type) StringPtr

func (e Type) StringPtr() *string

func (Type) ToInt64

func (e Type) ToInt64() int64

Jump to

Keyboard shortcuts

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