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 ConnectionSliceToJSON

func ConnectionSliceToJSON(e []Connection) json.RawMessage

func ConnectionToJSON

func ConnectionToJSON(e Connection) json.RawMessage

func DbTypeSliceToJSON

func DbTypeSliceToJSON(in []DbType) json.RawMessage

func StatusSliceToJSON

func StatusSliceToJSON(in []Status) json.RawMessage

func TypeSliceToJSON

func TypeSliceToJSON(in []Type) json.RawMessage

Types

type Connection

type Connection struct {
	UUID           uuid.UUID                                   `json:"uuid"`
	Version        int64                                       `json:"version"`
	StoreUUID      uuid.UUID                                   `json:"store_uuid"`
	EnviormentUUID uuid.UUID                                   `json:"enviorment_uuid"`
	Identifier     string                                      `json:"identifier"`
	DbType         DbType                                      `json:"db_type"`
	DbTypeConfig   db_type_config.DbTypeConfig                 `json:"db_type_config"`
	DbVersion      string                                      `json:"db_version"`
	Type           Type                                        `json:"type"`
	TypeConfig     connection_type_config.ConnectionTypeConfig `json:"type_config"`
	Status         Status                                      `json:"status"`
	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 ConnectionFromJSON

func ConnectionFromJSON(data json.RawMessage) Connection

func ConnectionSliceFromJSON

func ConnectionSliceFromJSON(data json.RawMessage) []Connection

func NewConnectionSliceWithRandomValues

func NewConnectionSliceWithRandomValues(n int) []Connection

func NewConnectionWithRandomValues

func NewConnectionWithRandomValues() Connection

func (Connection) ArrayFieldIdentifierToType

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

func (Connection) EntityIdentifier

func (e Connection) EntityIdentifier() string

func (Connection) FieldIdentfierToTypeMap

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

func (Connection) IsDependant

func (e Connection) IsDependant() bool

func (Connection) OrderedFieldIdentifiers added in v1.0.35

func (e Connection) OrderedFieldIdentifiers() []string

func (Connection) String

func (e Connection) String() string

func (Connection) ToJSON

func (e Connection) ToJSON() json.RawMessage

type DbType

type DbType int64
const (
	DB_TYPE_INVALID DbType = iota
	DB_TYPE_MYSQL
	DB_TYPE_POSTGRES
)

func DbTypeFromPointerString

func DbTypeFromPointerString(in *string) DbType

func DbTypeFromString

func DbTypeFromString(in string) DbType

func JSONToDbTypeSlice

func JSONToDbTypeSlice(in json.RawMessage) []DbType

func (DbType) String

func (e DbType) String() string

func (DbType) StringPtr

func (e DbType) StringPtr() *string

func (DbType) ToInt64

func (e DbType) ToInt64() int64

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_TCP_IP
	TYPE_TCP_IP_SSH
)

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