Documentation ¶
Index ¶
- type Client
- func (client *Client) Close()
- func (client *Client) Delete(obj SQLInterface, tableType string)
- func (client *Client) Fetch(obj SQLInterface, tableType string, id int64)
- func (client *Client) FetchAll(asInterface interface{}, tableType string, whereClause string, ...)
- func (client *Client) FetchMany(asInterface interface{}, parentId int64, parentTableName string, ...)
- func (client *Client) Open()
- func (client *Client) Save(obj SQLInterface, tableType string)
- func (client *Client) SaveAll(asInterface interface{}, tableType string)
- func (client *Client) Update(obj SQLInterface, tableType string)
- type ClientInterface
- type ClientMock
- func (client *ClientMock) AddTable_(tablename string)
- func (client *ClientMock) Close()
- func (client *ClientMock) Delete(obj SQLInterface, tableType string)
- func (client *ClientMock) Fetch(obj SQLInterface, tableType string, id int64)
- func (client *ClientMock) FetchAll(asInterface interface{}, tableType string, whereClause string, ...)
- func (client *ClientMock) FetchMany(asInterface interface{}, parentId int64, parentTableName string, ...)
- func (client *ClientMock) Open()
- func (client *ClientMock) Print(tablename string)
- func (client *ClientMock) Save(obj SQLInterface, tableType string)
- func (client *ClientMock) SaveAll(asInterface interface{}, tableType string)
- func (client *ClientMock) Update(obj SQLInterface, tableType string)
- type Job
- type SQLInterface
- type SectorToSystemLink
- type StarClusterToDetailLink
- type SystemToDetailLink
- type SystemToStarClusterLink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Environment string Region string Resource string Secret string // contains filtered or unexported fields }
func (*Client) Delete ¶
func (client *Client) Delete(obj SQLInterface, tableType string)
func (*Client) Save ¶
func (client *Client) Save(obj SQLInterface, tableType string)
func (*Client) Update ¶
func (client *Client) Update(obj SQLInterface, tableType string)
type ClientInterface ¶
type ClientInterface interface { Open() Close() Fetch(obj SQLInterface, tableType string, id int64) FetchAll(asInterface interface{}, tableType string, whereClause string, whereValues ...interface{}) FetchMany(asInterface interface{}, parentId int64, parentTableName string, childTableName string, valueName string, childType string, reverseAccess bool) Save(obj SQLInterface, tableType string) SaveAll(asInterface interface{}, tableType string) Update(obj SQLInterface, tableType string) }
type ClientMock ¶
type ClientMock struct { Environment string Region string Resource string Secret string // contains filtered or unexported fields }
func (*ClientMock) AddTable_ ¶
func (client *ClientMock) AddTable_(tablename string)
func (*ClientMock) Close ¶
func (client *ClientMock) Close()
func (*ClientMock) Delete ¶
func (client *ClientMock) Delete(obj SQLInterface, tableType string)
func (*ClientMock) Fetch ¶
func (client *ClientMock) Fetch(obj SQLInterface, tableType string, id int64)
func (*ClientMock) FetchAll ¶
func (client *ClientMock) FetchAll(asInterface interface{}, tableType string, whereClause string, whereValues ...interface{})
func (*ClientMock) Open ¶
func (client *ClientMock) Open()
func (*ClientMock) Print ¶
func (client *ClientMock) Print(tablename string)
func (*ClientMock) Save ¶
func (client *ClientMock) Save(obj SQLInterface, tableType string)
func (*ClientMock) SaveAll ¶
func (client *ClientMock) SaveAll(asInterface interface{}, tableType string)
func (*ClientMock) Update ¶
func (client *ClientMock) Update(obj SQLInterface, tableType string)
type Job ¶
type Job struct { Id int64 `sql:"id"` PercentComplete int `sql:"percent_complete"` Error sql.NullString `sql:"error"` AssetId sql.NullInt64 `sql:"asset_id"` // contains filtered or unexported fields }
func (*Job) Complete ¶
func (job *Job) Complete(client ClientInterface, assetId int64)
func (*Job) Panic ¶
func (job *Job) Panic(client ClientInterface, msg string)
func (*Job) Step ¶
func (job *Job) Step(client ClientInterface)
type SQLInterface ¶
type SectorToSystemLink ¶
type SectorToSystemLink struct { Id int64 `sql:"id"` ParentId int64 `sql:"asset_sector_id"` ChildId int64 `sql:"asset_system_id"` }
func (*SectorToSystemLink) GetId ¶
func (link *SectorToSystemLink) GetId() *int64
func (*SectorToSystemLink) TableName ¶
func (link *SectorToSystemLink) TableName(linkType string) string
type StarClusterToDetailLink ¶
type StarClusterToDetailLink struct { Id int64 `sql:"id"` ParentId int64 `sql:"asset_star_cluster_id"` ChildId int64 `sql:"detail_id"` }
func (*StarClusterToDetailLink) GetId ¶
func (link *StarClusterToDetailLink) GetId() *int64
func (*StarClusterToDetailLink) TableName ¶
func (link *StarClusterToDetailLink) TableName(linkType string) string
type SystemToDetailLink ¶
type SystemToDetailLink struct { Id int64 `sql:"id"` ParentId int64 `sql:"asset_system_id"` ChildId int64 `sql:"detail_id"` }
func (*SystemToDetailLink) GetId ¶
func (link *SystemToDetailLink) GetId() *int64
func (*SystemToDetailLink) TableName ¶
func (link *SystemToDetailLink) TableName(linkType string) string
type SystemToStarClusterLink ¶
type SystemToStarClusterLink struct { Id int64 `sql:"id"` ParentId int64 `sql:"asset_system_id"` ChildId int64 `sql:"asset_star_cluster_id"` }
func (*SystemToStarClusterLink) GetId ¶
func (link *SystemToStarClusterLink) GetId() *int64
func (*SystemToStarClusterLink) TableName ¶
func (link *SystemToStarClusterLink) TableName(linkType string) string
Click to show internal directories.
Click to hide internal directories.