user_connection

package
v1.0.43 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StatusSliceToJSON

func StatusSliceToJSON(in []Status) json.RawMessage

func TypeSliceToJSON

func TypeSliceToJSON(in []Type) json.RawMessage

func UserConnectionSliceToJSON

func UserConnectionSliceToJSON(e []UserConnection) json.RawMessage

func UserConnectionToJSON

func UserConnectionToJSON(e UserConnection) json.RawMessage

Types

type Status

type Status int64
const (
	STATUS_INVALID Status = iota
	STATUS_ACTIVE
	STATUS_DISABLED
)

func JSONToStatusSlice

func JSONToStatusSlice(in json.RawMessage) []Status

func StatusFromPointerString

func StatusFromPointerString(in *string) Status

func StatusFromString

func StatusFromString(in string) Status

func (Status) String

func (e Status) String() string

func (Status) StringPtr

func (e Status) StringPtr() *string

func (Status) ToInt64

func (e Status) ToInt64() int64

type Type

type Type int64
const (
	TYPE_INVALID Type = iota
	TYPE_LOCAL
	TYPE_REMOTE
)

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

type UserConnection

type UserConnection struct {
	UUID               uuid.UUID                                            `json:"uuid"`
	UserUUID           uuid.UUID                                            `json:"user_uuid"`
	ProjectUUID        uuid.UUID                                            `json:"project_uuid"`
	ProjectVersionUUID uuid.UUID                                            `json:"project_version_uuid"`
	Type               Type                                                 `json:"type"`
	TypeConfig         user_connection_type_config.UserConnectionTypeConfig `json:"type_config"`
	DbSchema           string                                               `json:"db_schema"`
	Executions         []user_connection_execution.UserConnectionExecution  `json:"executions"`
	Status             Status                                               `json:"status"`
	CreatedAt          time.Time                                            `json:"created_at"`
	UpdatedAt          time.Time                                            `json:"updated_at"`
}

func NewUserConnectionSliceWithRandomValues

func NewUserConnectionSliceWithRandomValues(n int) []UserConnection

func NewUserConnectionWithRandomValues

func NewUserConnectionWithRandomValues() UserConnection

func UserConnectionFromJSON

func UserConnectionFromJSON(data json.RawMessage) UserConnection

func UserConnectionSliceFromJSON

func UserConnectionSliceFromJSON(data json.RawMessage) []UserConnection

func (UserConnection) ArrayFieldIdentifierToType

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

func (UserConnection) DependantFieldIdentifierToTypeMap

func (e UserConnection) DependantFieldIdentifierToTypeMap() map[string]map[string]types.FieldType

func (UserConnection) EntityIdentifier

func (e UserConnection) EntityIdentifier() string

func (UserConnection) FieldIdentfierToTypeMap

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

func (UserConnection) IsDependant

func (e UserConnection) IsDependant() bool

func (UserConnection) OrderedFieldIdentifiers added in v1.0.35

func (e UserConnection) OrderedFieldIdentifiers() []string

func (UserConnection) PrimaryKeyIdentifier

func (e UserConnection) PrimaryKeyIdentifier() string

func (UserConnection) PrimaryKeyValue

func (e UserConnection) PrimaryKeyValue() string

func (UserConnection) String

func (e UserConnection) String() string

func (UserConnection) ToJSON

func (e UserConnection) ToJSON() json.RawMessage

Jump to

Keyboard shortcuts

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