Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ADTClient ¶
type ADTClient interface {
// Core object retrieval methods
GetProgram(name string) (*ADTSourceCode, error)
GetClass(name string) (*ADTSourceCode, error)
GetFunction(name, functionGroup string) (*ADTSourceCode, error)
GetInclude(name string) (*ADTSourceCode, error)
GetInterface(name string) (*ADTSourceCode, error)
GetStructure(name string) (*ADTSourceCode, error)
GetTable(name string) (*ADTSourceCode, error)
GetFunctionGroup(name string) (*ADTSourceCode, error)
// Package and search operations
GetPackageContents(name string) (*ADTPackage, error)
SearchObjects(pattern string, objectTypes []string) (*ADTSearchResult, error)
ListPackages(pattern string) ([]ADTPackage, error)
// Connection and session management
TestConnection() error
IsAuthenticated() bool
Authenticate() error
SetSessionType(sessionType SessionType)
// Extended operations (optional implementations)
GetTypeInfo(typeName string) (*ADTTypeInfo, error)
GetTransaction(transactionName string) (*ADTTransactionInfo, error)
GetTableContents(tableName string, maxRows int) (*ADTTableData, error)
GetTransports() ([]ADTTransport, error)
CreateProgram(name, description, source string) error
}
ADTClient interface - shared contract
type ADTConfig ¶
type ADTConfig struct {
Host string `json:"host"`
Client string `json:"client"`
Username string `json:"username"`
Password string `json:"password"`
Language string `json:"language"`
AllowSelfSigned bool `json:"allow_self_signed"`
ConnectTimeout int `json:"connect_timeout"`
RequestTimeout int `json:"request_timeout"`
Debug bool `json:"debug"`
}
ADT Configuration
type ADTObject ¶
type ADTObject struct {
Name string `json:"name" xml:"name"`
Type string `json:"type" xml:"type"`
Description string `json:"description" xml:"description"`
Package string `json:"package" xml:"package"`
Responsible string `json:"responsible" xml:"responsible"`
CreatedBy string `json:"created_by" xml:"createdBy"`
CreatedOn string `json:"created_on" xml:"createdOn"`
ChangedBy string `json:"changed_by" xml:"changedBy"`
ChangedOn string `json:"changed_on" xml:"changedOn"`
}
ADT Response structures - shared between CLI and REST
type ADTPackage ¶
type ADTSearchResult ¶
type ADTSourceCode ¶
type ADTTableColumn ¶
type ADTTableData ¶
type ADTTableData struct {
TableName string `json:"table_name"`
RowCount int `json:"row_count"`
Columns []ADTTableColumn `json:"columns"`
Rows []map[string]interface{} `json:"rows"`
}
type ADTTransactionInfo ¶
type ADTTransactionInfo struct {
TransactionCode string `json:"transaction_code"`
Description string `json:"description"`
Package string `json:"package"`
Application string `json:"application"`
Program string `json:"program"`
Properties map[string]string `json:"properties"`
}
Additional data structures for extended services
type ADTTransport ¶
type ADTTypeInfo ¶
type SessionType ¶
type SessionType string
Session management
const ( SessionStateful SessionType = "stateful" SessionStateless SessionType = "stateless" )
Click to show internal directories.
Click to hide internal directories.